diff options
-rwxr-xr-x | xts5/src/bin/scripts/pt | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/xts5/src/bin/scripts/pt b/xts5/src/bin/scripts/pt index 0e0f8db3..05f59a62 100755 --- a/xts5/src/bin/scripts/pt +++ b/xts5/src/bin/scripts/pt @@ -19,13 +19,6 @@ trap "rm -f CONFIG" 0 -PROG=./Test -if [ ! -f $PROG ]; then - # If there isn't a ./Test then try for the space saving name. - THISDIR=`pwd` - PROG=./`basename $THISDIR` -fi - ICS= echo > CONFIG @@ -66,10 +59,19 @@ do -m) PROG=./MTest ;; + *) + PROG=$1 + ;; esac shift done +if [ ! -f "$PROG" ]; then + echo "Cannot find test run '$PROG'"; + exit 1 +fi + + # config=${TET_CONFIG:-$TET_ROOT/xts5/tetexec.cfg} # Since :- is not universal, and I really want that functionality. if [ x"$TET_CONFIG" = x"" ]; then @@ -78,6 +80,11 @@ else config=$TET_CONFIG fi +if [ -z "$TEST_RESFILE" ]; then + TET_RESFILE=$PROG.log + export TET_RESFILE +fi + cat $config >> CONFIG echo "junk=junk" >> CONFIG # TEMP |