ia64/xen-unstable
changeset 5874:2ae19537f615
Allow test.sh to take arg: name of test to start with
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author | cl349@firebug.cl.cam.ac.uk |
---|---|
date | Tue Jul 26 15:21:32 2005 +0000 (2005-07-26) |
parents | 6f4d50000179 |
children | 052208a34902 |
files | tools/xenstore/testsuite/test.sh |
line diff
1.1 --- a/tools/xenstore/testsuite/test.sh Tue Jul 26 15:21:00 2005 +0000 1.2 +++ b/tools/xenstore/testsuite/test.sh Tue Jul 26 15:21:32 2005 +0000 1.3 @@ -33,7 +33,10 @@ run_test() 1.4 fi 1.5 } 1.6 1.7 +MATCH=${1:-"*"} 1.8 for f in testsuite/[0-9]*.sh; do 1.9 + case `basename $f` in $MATCH) RUN=1;; esac 1.10 + [ -n "$RUN" ] || continue 1.11 if run_test $f; then 1.12 echo Test $f passed... 1.13 else