From 943da2c2b876c40ad76e7e963b1ec04b4b231913 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 8 Sep 2008 19:29:21 +0000 Subject: 2008-09-08 Joel Sherrill * runtest.in: Update to support .exe or .ralf extension. --- c/src/lib/libbsp/sparc/erc32/tools/runtest.in | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'c/src/lib/libbsp/sparc/erc32/tools/runtest.in') diff --git a/c/src/lib/libbsp/sparc/erc32/tools/runtest.in b/c/src/lib/libbsp/sparc/erc32/tools/runtest.in index 8c26f24fa6..6d7f954a16 100644 --- a/c/src/lib/libbsp/sparc/erc32/tools/runtest.in +++ b/c/src/lib/libbsp/sparc/erc32/tools/runtest.in @@ -18,7 +18,7 @@ USAGE=\ -s -- generate script file (as 'test'.ss) and exit -l logdir -- specify log directory (default is 'logdir') - Specify test as 'test' or 'test.exe'. + Specify test as 'test' or 'test.exe' or 'test.ralf'. All multiprocessing tests *must* be specified simply as 'mp01', etc. " @@ -109,7 +109,7 @@ args=$* tests="$args" if [ ! "$tests" ] then - set -- `echo *.exe` + set -- `echo *.exe *.ralf` tests="$*" fi @@ -127,7 +127,13 @@ trap "test_exit" 1 2 3 13 14 15 for tfile in $tests do - tname=`basename $tfile .exe` + echo $tfile | grep "exe$" >/dev/null + if [ $? -eq 0 ] ; then + ext=.exe + else + ext=.ralf + fi + tname=`basename $tfile ${ext}` TEST_TYPE="single" case $tname in @@ -144,7 +150,7 @@ do continue;; *-node1*) warn "Running both nodes associated with $tname" - variant=`echo $tname | sed 's/.*-node[12]//' | sed 's/\.exe//'` + variant=`echo $tname | sed 's/.*-node[12]//' | sed "s/${ext}/"` tname=`echo $tname | sed 's/-node.*//'` TEST_TYPE="mp" ;; -- cgit v1.2.3