[CRIU] [PATCH 1/6] zdtm: Add ability just to start the test
Pavel Emelyanov
xemul at parallels.com
Thu Jun 5 09:14:03 PDT 2014
When running test with ns/ prefix zdth.sh does complex preparations.
Make it possible to make them and let started process ready for
manual investigation.
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
test/zdtm.sh | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/test/zdtm.sh b/test/zdtm.sh
index f2a7e7a..7486fd8 100755
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -189,6 +189,7 @@ CLEANUP=0
PAGE_SERVER=0
PS_PORT=12345
COMPILE_ONLY=0
+START_ONLY=0
BATCH_TEST=0
SPECIFIED_NAME_USED=0
@@ -449,6 +450,11 @@ run_test()
start_test $tdir $tname || return 1
+ if [ $START_ONLY -eq 1 ]; then
+ echo "Test is started"
+ return 0
+ fi
+
local ddump
if ! kill -s 0 "$PID"; then
echo "Got a wrong pid '$PID'"
@@ -709,6 +715,7 @@ Options:
-t : mount tmpfs for dump files
-a <FILE>.tar.gz : save archive with dump files and logs
-g : Generate executables only
+ -S : Only start the test
-n : Batch test
-r : Run test with specified name directly without match or check
-v : Verbose mode
@@ -797,6 +804,10 @@ while :; do
COMPILE_ONLY=1
shift
;;
+ -S)
+ START_ONLY=1
+ shift
+ ;;
-n)
BATCH_TEST=1
shift
--
1.8.4.2
More information about the CRIU
mailing list