diff --git a/tools/runtest b/tools/runtest index b21aa96..519cfd9 100755 --- a/tools/runtest +++ b/tools/runtest @@ -85,9 +85,6 @@ while [ "$#" != 0 ]; do esac shift done - -# we must have found an input file -if [ ! -f "$infile" ]; then usage; fi if [ -z "$program" ]; then workingpath=`pwd` @@ -136,5 +133,8 @@ export WINETEST_PLATFORM WINETEST_DEBUG # would give data about how long each test takes, and # WINETEST_WRAPPER=valgrind # would run the tests under valgrind to look for memory errors. - -exec $WINETEST_WRAPPER "$topobjdir/wine" "$program" "$infile" "$@" +if [ -z "$infile" ]; then + exec $WINETEST_WRAPPER "$topobjdir/wine" "$program" +else + exec $WINETEST_WRAPPER "$topobjdir/wine" "$program" "$infile" "$@" +fi