[CRIU] [PATCH 5/5] test: add ability to execute tests in parallel
Andrey Vagin
avagin at openvz.org
Fri Jan 18 06:05:20 EST 2013
All tests which executed in pid namespaces can be executed in parallel.
$ make zdtm_ns
real 0m54.806s
user 0m2.779s
sys 0m4.338s
$ make -j zdtm_ns
real 0m11.587s
user 0m3.361s
sys 0m5.134s
Another feature of this patch is that the subset of parallel tests is
executed before the subset of sequential tests.
If a first subset are not failed, the second one has a small chance to
fail, so a most part of bugs will be found in a few first seconds.
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
test/Makefile | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 test/Makefile
diff --git a/test/Makefile b/test/Makefile
new file mode 100644
index 0000000..3b64a19
--- /dev/null
+++ b/test/Makefile
@@ -0,0 +1,14 @@
+TST = $(shell ./zdtm.sh -l)
+EXP = '^ns/(?!.*(tty|pty))'
+
+.FORCE:
+
+zdtm: .FORCE
+ $(MAKE) zdtm_ns
+ for t in $(shell echo "$(TST)" | tr ' ' '\n' | grep -Pv $(EXP)); do \
+ $(MAKE) $$t; \
+ done
+
+zdtm_ns: $(shell echo "$(TST)" | tr ' ' '\n' | grep -P $(EXP))
+$(TST):
+ ./zdtm.sh $(@) &> $(subst /,_,$@).log
--
1.7.11.7
More information about the CRIU
mailing list