[CRIU] [PATCH 2/5] zdtm: add ablitiy to execute cleanout per test

Andrey Vagin avagin at openvz.org
Fri Jan 18 06:05:17 EST 2013


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/zdtm/live/static/Makefile     | 3 +++
 test/zdtm/live/streaming/Makefile  | 3 +++
 test/zdtm/live/transition/Makefile | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/test/zdtm/live/static/Makefile b/test/zdtm/live/static/Makefile
index a063c95..f859ff6 100644
--- a/test/zdtm/live/static/Makefile
+++ b/test/zdtm/live/static/Makefile
@@ -234,6 +234,9 @@ cleandep:	clean
 cleanout:
 	$(RM) -r *.pid *.out* *.test* *.state
 
+%.cleanout: %
+	$(RM) -r $<.pid $<.out* $<.test* $<.*.test $<.state
+
 realclean:	cleandep cleanout
 
 .PHONY:	force clean cleandep cleanout realclean start check_start stop wait_stop
diff --git a/test/zdtm/live/streaming/Makefile b/test/zdtm/live/streaming/Makefile
index 24b96a2..ad110ad 100644
--- a/test/zdtm/live/streaming/Makefile
+++ b/test/zdtm/live/streaming/Makefile
@@ -72,6 +72,9 @@ clean:
 cleandep:	clean
 	$(RM) $(DEP)
 
+%.cleanout: %
+	$(RM) -r $<.pid $<.out* $<.test
+
 cleanout:
 	$(RM) *.pid *.out* *.test*
 
diff --git a/test/zdtm/live/transition/Makefile b/test/zdtm/live/transition/Makefile
index 5ac40b0..9b6f740 100644
--- a/test/zdtm/live/transition/Makefile
+++ b/test/zdtm/live/transition/Makefile
@@ -71,6 +71,9 @@ clean:
 cleandep:	clean
 	$(RM) $(DEP)
 
+%.cleanout: %
+	$(RM) -r $<.pid $<.out* $<.test
+
 cleanout:
 	$(RM) *.pid *.out* *.test chew*
 
-- 
1.7.11.7



More information about the CRIU mailing list