<div dir="ltr">Hi Andrew,<div><br></div><div>I write this patch to fix running test that is not in TEST_LIST.</div><div>But I am not sure whether it reaches your expect.</div><div>May you check it?</div><div><br></div><div>
Thx!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 20, 2013 at 11:27 AM, Yicheng Qin <span dir="ltr"><<a href="mailto:yichengq@google.com" target="_blank">yichengq@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The option can run test with specified name directly without check<br>
or match.<br>
<br>
It can be used to run experimental test that is not in TEST_LIST.<br>
<br>
Signed-off-by: Yicheng Qin <<a href="mailto:yichengq@google.com">yichengq@google.com</a>><br>
---<br>
test/zdtm.sh | 13 +++++++++++++<br>
1 file changed, 13 insertions(+)<br>
<br>
diff --git a/test/zdtm.sh b/test/zdtm.sh<br>
index 275cc8d..7f34c8d 100755<br>
--- a/test/zdtm.sh<br>
+++ b/test/zdtm.sh<br>
@@ -158,6 +158,7 @@ PS_PORT=12345<br>
TCPDUMP_PID=<br>
COMPILE_ONLY=0<br>
BATCH_TEST=0<br>
+SPECIFIED_NAME_USED=0<br>
<br>
check_criu()<br>
{<br>
@@ -658,6 +659,11 @@ while :; do<br>
shift<br>
continue<br>
fi<br>
+ if [ "$1" = "-r" ]; then<br>
+ SPECIFIED_NAME_USED=1<br>
+ shift<br>
+ continue<br>
+ fi<br>
break;<br>
done<br>
<br>
@@ -685,9 +691,16 @@ Options:<br>
-a <FILE>.tar.gz : save archive with dump files and logs<br>
-g : Generate executables only<br>
-n : Batch test<br>
+ -r : Run test with specified name directly without match or check<br>
EOF<br>
elif [ "${1:0:1}" = '-' ]; then<br>
echo "unrecognized option $1"<br>
+elif [ $SPECIFIED_NAME_USED -eq 1 ]; then<br>
+ if [ $# -eq 0 ]; then<br>
+ echo "test name should be provided"<br>
+ exit 1<br>
+ fi<br>
+ run_test $1 || case_error $t<br>
else<br>
if [ $COMPILE_ONLY -eq 0 ]; then<br>
check_mainstream || exit 1<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.3<br>
<br>
</font></span></blockquote></div><br></div>