summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2020-11-16 06:10:47 -0500
committerEric S. Raymond <esr@thyrsus.com>2020-11-16 06:10:47 -0500
commita67532dd5799676b9e1629b8fd2dc9f526383e09 (patch)
treecd83771f2b1f4d2c96a7ceb4e4c61a337be633e7
parent22b9ea63bdc0a7ac1f9b8593cf19887cbe1d22fc (diff)
downloadflex-git-a67532dd5799676b9e1629b8fd2dc9f526383e09.tar.gz
Remove now-unused parts of test/testwrapper.sh.
-rwxr-xr-xtests/testwrapper.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/testwrapper.sh b/tests/testwrapper.sh
index d20fba4..f07f798 100755
--- a/tests/testwrapper.sh
+++ b/tests/testwrapper.sh
@@ -13,7 +13,7 @@ INPUT_COUNT=0
USE_REDIRECT=0
DO_COMPARISON=0
-while getopts :d:i:r OPTION ; do
+while getopts d:i:r OPTION ; do
case $OPTION in
d) INPUT_DIRECTORY=$OPTARG ;;
i)
@@ -25,7 +25,7 @@ while getopts :d:i:r OPTION ; do
INPUT_COUNT=$((INPUT_COUNT+1))
;;
r) USE_REDIRECT=1 ;;
- *) echo "Usage: ${0} [-d INPUT_DIRECTORY] [-i INPUT_NAME] [-r] [-t] TESTNAME"
+ *) echo "Usage: ${0} [-d INPUT_DIRECTORY] [-i INPUT_NAME] [-r] TESTNAME"
exit 1
;;
esac
@@ -68,6 +68,7 @@ if [ $INPUT_COUNT -gt 1 ] ; then
exit $?
fi
+# Set up input redirection as required
if [ -f "${INPUT_NAME}" ] ; then
if [ $USE_REDIRECT = 1 ] ; then
$TESTNAME ${USE_TABLES:+${INPUT_DIRECTORY}/${TESTNAME%.exe}.tables} < "$INPUT_NAME"