diff --git a/test/zdtm/live/Makefile b/test/zdtm/live/Makefile index 0640bb4d9..87c0e7ef4 100644 --- a/test/zdtm/live/Makefile +++ b/test/zdtm/live/Makefile @@ -1,4 +1,4 @@ -SUBDIRS = streaming transition static +SUBDIRS = transition static default: all .PHONY: default diff --git a/test/zdtm/live/streaming/Makefile b/test/zdtm/live/streaming/Makefile deleted file mode 100644 index e65e3fde6..000000000 --- a/test/zdtm/live/streaming/Makefile +++ /dev/null @@ -1,91 +0,0 @@ -include ../../Makefile.inc - -LIBDIR = ../../lib -LIB = $(LIBDIR)/libzdtmtst.a -override CPPFLAGS += -I$(LIBDIR) -CFLAGS = -g -O2 -Wall -Werror -fno-strict-aliasing -CFLAGS += $(USERCFLAGS) - -TST_NOFILE = \ - pipe_loop00 \ - pipe_shared00 \ - socket_loop00 \ - netlink00 \ - file_aio \ - socket-tcp \ - socket-tcp6 \ - -TST_FILE = \ - unix_sock \ - fifo_dyn \ - fifo_loop \ - -TST = $(TST_NOFILE) $(TST_FILE) -SRC = $(TST:%=%.c) -OBJ = $(SRC:%.c=%.o) -DEP = $(SRC:%.c=%.d) -PID = $(TST:%=%.pid) -OUT = $(TST:%=%.out) - -DEPEND.c = $(COMPILE.c) -MM -MP -%.d: %.c - $(DEPEND.c) $(OUTPUT_OPTION) $< - -all: $(TST) -install: all -.PHONY: all install - -$(TST_NOFILE:%=%.pid): %.pid: % - $(/dev/null` 2>/dev/null || break; \ - sleep 1; \ - done - -$(TST): $(LIB) - -file_aio: override LDLIBS += -lrt -pthread -socket-tcp: override CFLAGS += -D STREAM -socket-tcp6: override CFLAGS += -D ZDTM_IPV6 -D STREAM - -$(LIB): force - $(Q) $(MAKE) -C $(LIBDIR) - -clean: - $(RM) -f $(OBJ) $(TST) *~ - -cleandep: clean - $(RM) -f $(DEP) - -%.cleanout: % - $(Q) $(RM) -f -r $<.pid $<.init.pid $<.out* $<.test - -cleanout: - $(RM) -f *.pid *.out* *.test* - -realclean: cleandep cleanout - -.PHONY: force clean cleandep cleanout realclean start check_start stop wait_stop - -ifeq ($(filter-out no-deps-targets, $(MAKECMDGOALS)),) --include $(DEP) -endif diff --git a/test/zdtm/live/transition/Makefile b/test/zdtm/live/transition/Makefile index c791e6248..256d1161d 100644 --- a/test/zdtm/live/transition/Makefile +++ b/test/zdtm/live/transition/Makefile @@ -3,7 +3,7 @@ include ../../Makefile.inc LIBDIR = ../../lib LIB = $(LIBDIR)/libzdtmtst.a override CPPFLAGS += -I$(LIBDIR) -CFLAGS = -g -O2 -Wall -Werror +CFLAGS = -g -O2 -Wall -Werror -fno-strict-aliasing CFLAGS += $(USERCFLAGS) TST_NOFILE = \ @@ -14,9 +14,21 @@ TST_NOFILE = \ fork2 \ thread-bomb \ maps007 \ + pipe_loop00 \ + pipe_shared00 \ + socket_loop00 \ + netlink00 \ + file_aio \ + socket-tcp \ + socket-tcp6 \ + TST_FILE = \ file_read \ + unix_sock \ + fifo_dyn \ + fifo_loop \ + TST = $(TST_NOFILE) $(TST_FILE) SRC = $(TST:%=%.c) @@ -61,11 +73,14 @@ wait_stop: $(TST): $(LIB) +file_aio: override LDLIBS += -lrt -pthread +socket-tcp: override CFLAGS += -D STREAM +socket-tcp6: override CFLAGS += -D ZDTM_IPV6 -D STREAM ptrace.o: override CFLAGS += -pthread ptrace: override LDFLAGS += -pthread fork2: override CFLAGS += -D FORK2 -thread-bomb.o: override CFLAGS += -pthread -thread-bomb: override LDFLAGS += -pthread +thread-bomb.o: override CFLAGS += -pthread +thread-bomb: override LDFLAGS += -pthread %: %.sh cp $< $@ diff --git a/test/zdtm/live/streaming/fifo_dyn.c b/test/zdtm/live/transition/fifo_dyn.c similarity index 100% rename from test/zdtm/live/streaming/fifo_dyn.c rename to test/zdtm/live/transition/fifo_dyn.c diff --git a/test/zdtm/live/streaming/fifo_dyn.desc b/test/zdtm/live/transition/fifo_dyn.desc similarity index 100% rename from test/zdtm/live/streaming/fifo_dyn.desc rename to test/zdtm/live/transition/fifo_dyn.desc diff --git a/test/zdtm/live/streaming/fifo_loop.c b/test/zdtm/live/transition/fifo_loop.c similarity index 100% rename from test/zdtm/live/streaming/fifo_loop.c rename to test/zdtm/live/transition/fifo_loop.c diff --git a/test/zdtm/live/streaming/fifo_loop.desc b/test/zdtm/live/transition/fifo_loop.desc similarity index 100% rename from test/zdtm/live/streaming/fifo_loop.desc rename to test/zdtm/live/transition/fifo_loop.desc diff --git a/test/zdtm/live/streaming/file_aio.c b/test/zdtm/live/transition/file_aio.c similarity index 100% rename from test/zdtm/live/streaming/file_aio.c rename to test/zdtm/live/transition/file_aio.c diff --git a/test/zdtm/live/streaming/file_aio.desc b/test/zdtm/live/transition/file_aio.desc similarity index 100% rename from test/zdtm/live/streaming/file_aio.desc rename to test/zdtm/live/transition/file_aio.desc diff --git a/test/zdtm/live/streaming/netlink00.c b/test/zdtm/live/transition/netlink00.c similarity index 100% rename from test/zdtm/live/streaming/netlink00.c rename to test/zdtm/live/transition/netlink00.c diff --git a/test/zdtm/live/streaming/netlink00.desc b/test/zdtm/live/transition/netlink00.desc similarity index 100% rename from test/zdtm/live/streaming/netlink00.desc rename to test/zdtm/live/transition/netlink00.desc diff --git a/test/zdtm/live/streaming/pipe_loop00.c b/test/zdtm/live/transition/pipe_loop00.c similarity index 100% rename from test/zdtm/live/streaming/pipe_loop00.c rename to test/zdtm/live/transition/pipe_loop00.c diff --git a/test/zdtm/live/streaming/pipe_shared00.c b/test/zdtm/live/transition/pipe_shared00.c similarity index 100% rename from test/zdtm/live/streaming/pipe_shared00.c rename to test/zdtm/live/transition/pipe_shared00.c diff --git a/test/zdtm/live/streaming/socket-tcp.c b/test/zdtm/live/transition/socket-tcp.c similarity index 100% rename from test/zdtm/live/streaming/socket-tcp.c rename to test/zdtm/live/transition/socket-tcp.c diff --git a/test/zdtm/live/streaming/socket-tcp.desc b/test/zdtm/live/transition/socket-tcp.desc similarity index 100% rename from test/zdtm/live/streaming/socket-tcp.desc rename to test/zdtm/live/transition/socket-tcp.desc diff --git a/test/zdtm/live/streaming/socket-tcp.opts b/test/zdtm/live/transition/socket-tcp.opts similarity index 100% rename from test/zdtm/live/streaming/socket-tcp.opts rename to test/zdtm/live/transition/socket-tcp.opts diff --git a/test/zdtm/live/streaming/socket-tcp6.c b/test/zdtm/live/transition/socket-tcp6.c similarity index 100% rename from test/zdtm/live/streaming/socket-tcp6.c rename to test/zdtm/live/transition/socket-tcp6.c diff --git a/test/zdtm/live/streaming/socket-tcp6.desc b/test/zdtm/live/transition/socket-tcp6.desc similarity index 100% rename from test/zdtm/live/streaming/socket-tcp6.desc rename to test/zdtm/live/transition/socket-tcp6.desc diff --git a/test/zdtm/live/streaming/socket-tcp6.opts b/test/zdtm/live/transition/socket-tcp6.opts similarity index 100% rename from test/zdtm/live/streaming/socket-tcp6.opts rename to test/zdtm/live/transition/socket-tcp6.opts diff --git a/test/zdtm/live/streaming/socket_loop00.c b/test/zdtm/live/transition/socket_loop00.c similarity index 100% rename from test/zdtm/live/streaming/socket_loop00.c rename to test/zdtm/live/transition/socket_loop00.c diff --git a/test/zdtm/live/streaming/socket_loop00.desc b/test/zdtm/live/transition/socket_loop00.desc similarity index 100% rename from test/zdtm/live/streaming/socket_loop00.desc rename to test/zdtm/live/transition/socket_loop00.desc diff --git a/test/zdtm/live/streaming/unix_sock.c b/test/zdtm/live/transition/unix_sock.c similarity index 100% rename from test/zdtm/live/streaming/unix_sock.c rename to test/zdtm/live/transition/unix_sock.c diff --git a/test/zdtm/live/streaming/unix_sock.desc b/test/zdtm/live/transition/unix_sock.desc similarity index 100% rename from test/zdtm/live/streaming/unix_sock.desc rename to test/zdtm/live/transition/unix_sock.desc