From a88cd36e7bc104e8c986b24d84e2ae13f47db11c Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Tue, 24 Jan 2012 19:37:44 +0400 Subject: [PATCH] make: Move legacy tests to test/legacy and use "make test" to run zdtm tests Signed-off-by: Cyrill Gorcunov Acked-by: Pavel Emelyanov --- Makefile | 15 ++++++++++++--- test/{ => legacy}/Makefile | 0 test/{ => legacy}/test-counter.c | 0 test/{ => legacy}/test-pipe-async.c | 0 test/{ => legacy}/test-pthreads.c | 0 test/{ => legacy}/test-rnd-from-file.c | 0 test/{ => legacy}/test-shmem-async.c | 0 test/{ => legacy}/test-shmem-three-async.c | 0 test/{ => legacy}/test-sigaction.c | 0 test/{ => legacy}/test-unixsocket.c | 0 test/{ => legacy}/test-vdso.c | 0 11 files changed, 12 insertions(+), 3 deletions(-) rename test/{ => legacy}/Makefile (100%) rename test/{ => legacy}/test-counter.c (100%) rename test/{ => legacy}/test-pipe-async.c (100%) rename test/{ => legacy}/test-pthreads.c (100%) rename test/{ => legacy}/test-rnd-from-file.c (100%) rename test/{ => legacy}/test-shmem-async.c (100%) rename test/{ => legacy}/test-shmem-three-async.c (100%) rename test/{ => legacy}/test-sigaction.c (100%) rename test/{ => legacy}/test-unixsocket.c (100%) rename test/{ => legacy}/test-vdso.c (100%) diff --git a/Makefile b/Makefile index 32be494d3..59c921d71 100644 --- a/Makefile +++ b/Makefile @@ -153,8 +153,16 @@ $(DEPS_GEN): $(HEAD-BLOB-GEN) $(RHEAD-BLOB-GEN) %.d: %.c $(Q) $(CC) -M -MT $(patsubst %.d,%.o,$@) $(CFLAGS) $< -o $@ -test: - $(Q) $(MAKE) -C test all +test-legacy: + $(Q) $(MAKE) -C test/legacy all +.PHONY: test-legacy + +zdtm: + $(Q) $(MAKE) -C test/zdtm all +.PHONY: zdtm + +test: zdtm + $(Q) $(sh) test/zdtm.sh .PHONY: test rebuild: @@ -176,7 +184,8 @@ clean: $(Q) $(RM) -f ./$(PROGRAM) $(Q) $(RM) -f ./$(HEAD-BLOB-GEN) $(Q) $(RM) -f ./$(RHEAD-BLOB-GEN) - $(Q) $(MAKE) -C test clean + $(Q) $(MAKE) -C test/legacy clean + $(Q) $(MAKE) -C test/zdtm clean .PHONY: clean tags: diff --git a/test/Makefile b/test/legacy/Makefile similarity index 100% rename from test/Makefile rename to test/legacy/Makefile diff --git a/test/test-counter.c b/test/legacy/test-counter.c similarity index 100% rename from test/test-counter.c rename to test/legacy/test-counter.c diff --git a/test/test-pipe-async.c b/test/legacy/test-pipe-async.c similarity index 100% rename from test/test-pipe-async.c rename to test/legacy/test-pipe-async.c diff --git a/test/test-pthreads.c b/test/legacy/test-pthreads.c similarity index 100% rename from test/test-pthreads.c rename to test/legacy/test-pthreads.c diff --git a/test/test-rnd-from-file.c b/test/legacy/test-rnd-from-file.c similarity index 100% rename from test/test-rnd-from-file.c rename to test/legacy/test-rnd-from-file.c diff --git a/test/test-shmem-async.c b/test/legacy/test-shmem-async.c similarity index 100% rename from test/test-shmem-async.c rename to test/legacy/test-shmem-async.c diff --git a/test/test-shmem-three-async.c b/test/legacy/test-shmem-three-async.c similarity index 100% rename from test/test-shmem-three-async.c rename to test/legacy/test-shmem-three-async.c diff --git a/test/test-sigaction.c b/test/legacy/test-sigaction.c similarity index 100% rename from test/test-sigaction.c rename to test/legacy/test-sigaction.c diff --git a/test/test-unixsocket.c b/test/legacy/test-unixsocket.c similarity index 100% rename from test/test-unixsocket.c rename to test/legacy/test-unixsocket.c diff --git a/test/test-vdso.c b/test/legacy/test-vdso.c similarity index 100% rename from test/test-vdso.c rename to test/legacy/test-vdso.c