cr_tests: epoll: Add two testcases for epoll checkpoint/restart.
PATCH 3/7 cr_tests: epoll: Add two testcases for epoll checkpoint/restart.
The first, "empty" creates an empty epoll set, waits for checkpoint, and closes it afterwards.
The second test creates and epoll set, adds the write end of a pipe, waits for EPOLLOUT (writability) with epoll, writes, adds the read end, removes the write end, waits for EPOLLIN (readability), reads, and closes the epoll set.
Finally the patch adds a run.sh script much like the one for futexes. This one contains modifications which run all of the "subtests" of the pipe test as well.
Signed-off-by Matt Helsley <matthltc-r/[email protected]>
--- Makefile | 2 +- epoll/Makefile | 21 ++++ epoll/empty.c | 83 ++++++++++++++ epoll/pipe.c | 346 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ epoll/run.sh | 132 +++++++++++++++++++++ 5 files changed, 583 insertions(+), 1 deletions(-) create mode 100644 epoll/Makefile create mode 100644 epoll/empty.c create mode 100644 epoll/pipe.c create mode 100755 epoll/run.sh
Makefile +1 -1
@@ -1,5 +1,5 @@ SUBDIRS = libcrtest counterloop fileio simple cr-ipc-test userns ipc \ - sleep process-tree futex + sleep process-tree futex epoll targets = ns_exec
epoll/Makefile new file +21 -0
@@ -0,0 +1,21 @@ +.PHONY: clean all + +LIBS := ../libcrtest/libcrtest.a +CFLAGS := -Wall $(ARCHOPTS) -I../ -I../libcrtest + +PROGS=empty pipe + +.PHONY: all clean + +all: $(PROGS) + +../libcrtest/libcrtest.a: ../libcrtest/libcrtest.h ../libcrtest/common.c + $(MAKE) -C ../libcrtest libcrtest.a + +$(PROGS): %: %.c $(LIBS) + gcc -Wall $(CFLAGS) -o $@ $< $(LIBS) + +clean: + rm -f $(PROGS) + rm -rf log.* checkpoint-* + $(MAKE) -C ../libcrtest clean
epoll/empty.c new file +83 -0
83 lines not on this page · raw message
epoll/pipe.c new file +346 -0
346 lines not on this page · raw message
epoll/run.sh new file +132 -0
132 lines not on this page · raw message
Signature · 1 line
1.5.6.3