summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/erc32/tools/runtest.in
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-08 19:29:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-08 19:29:21 +0000
commit943da2c2b876c40ad76e7e963b1ec04b4b231913 (patch)
tree0ce189fe06a7aad5f59fbadcf55e9d05512629e7 /c/src/lib/libbsp/sparc/erc32/tools/runtest.in
parent2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-943da2c2b876c40ad76e7e963b1ec04b4b231913.tar.bz2
2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* runtest.in: Update to support .exe or .ralf extension.
Diffstat (limited to 'c/src/lib/libbsp/sparc/erc32/tools/runtest.in')
-rw-r--r--c/src/lib/libbsp/sparc/erc32/tools/runtest.in14
1 files changed, 10 insertions, 4 deletions
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"
;;