forked from Imagelibrary/rtems
2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* runtest.in: Update to support .exe or .ralf extension.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
* runtest.in: Update to support .exe or .ralf extension.
|
||||||
|
|
||||||
2008-07-31 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2008-07-31 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* runtest.in: Make attempt to detect memory exceptions and abort
|
* runtest.in: Make attempt to detect memory exceptions and abort
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USAGE=\
|
|||||||
-s -- generate script file (as 'test'.ss) and exit
|
-s -- generate script file (as 'test'.ss) and exit
|
||||||
-l logdir -- specify log directory (default is 'logdir')
|
-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.
|
All multiprocessing tests *must* be specified simply as 'mp01', etc.
|
||||||
"
|
"
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ args=$*
|
|||||||
tests="$args"
|
tests="$args"
|
||||||
if [ ! "$tests" ]
|
if [ ! "$tests" ]
|
||||||
then
|
then
|
||||||
set -- `echo *.exe`
|
set -- `echo *.exe *.ralf`
|
||||||
tests="$*"
|
tests="$*"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -127,7 +127,13 @@ trap "test_exit" 1 2 3 13 14 15
|
|||||||
for tfile in $tests
|
for tfile in $tests
|
||||||
do
|
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"
|
TEST_TYPE="single"
|
||||||
|
|
||||||
case $tname in
|
case $tname in
|
||||||
@@ -144,7 +150,7 @@ do
|
|||||||
continue;;
|
continue;;
|
||||||
*-node1*)
|
*-node1*)
|
||||||
warn "Running both nodes associated with $tname"
|
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.*//'`
|
tname=`echo $tname | sed 's/-node.*//'`
|
||||||
TEST_TYPE="mp"
|
TEST_TYPE="mp"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user