mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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>
This commit is contained in:
1 parent
c86032d118
commit
b4ff7e6103
1 file changed
+3
@@ -33,7 +33,10 @@ run_test()
|
||||
fi
|
||||
}
|
||||
|
||||
MATCH=${1:-"*"}
|
||||
for f in testsuite/[0-9]*.sh; do
|
||||
case `basename $f` in $MATCH) RUN=1;; esac
|
||||
[ -n "$RUN" ] || continue
|
||||
if run_test $f; then
|
||||
echo Test $f passed...
|
||||
else
|
||||
|
||||