Add '--' option to runtest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This option makes it possible to pass extra arguments to the test. See the next patch of an example...


Changelog:

Francois Gouget <fgouget@codeweavers.com>

* tools/runtest

Add '--' option for passing extra arguments to the test
Simplify wineserver existence test

--
Francois Gouget
fgouget@codeweavers.com


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

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux