Add '--' option to runtest
Francois Gouget
fgouget at codeweavers.com
Mon Dec 16 12:13:50 CST 2002
This option makes it possible to pass extra arguments to the test. See
the next patch of an example...
Changelog:
Francois Gouget <fgouget at codeweavers.com>
* tools/runtest
Add '--' option for passing extra arguments to the test
Simplify wineserver existence test
--
Francois Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: tools/runtest
===================================================================
RCS file: /home/wine/wine/tools/runtest,v
retrieving revision 1.2
diff -u -r1.2 runtest
--- tools/runtest 11 Dec 2002 00:18:11 -0000 1.2
+++ tools/runtest 16 Dec 2002 18:01:12 -0000
@@ -72,10 +72,14 @@
;;
-T)
shift; topobjdir="$1"
- if [ -d "$topobjdir" ]; then :; else usage; fi
+ if [ ! -d "$topobjdir" ]; then usage; fi
+ ;;
+ --)
+ break
;;
*)
infile="$1"
+ ;;
esac
shift
done
@@ -90,9 +94,8 @@
# check/detect topobjdir
if [ -n "$topobjdir" ]; then
- if [ -f "$topobjdir/server/wineserver" ]
- then :
- else
+ if [ ! -f "$topobjdir/server/wineserver" ]
+ then
echo "Wrong -T argument, $topobjdir/server/wineserver does not exist" 2>&1
usage
fi
More information about the wine-patches
mailing list