2006-08-19 Aaron Bockover <abockover@novell.com>
authorAaron Bockover <abockover@novell.com>
Sat, 19 Aug 2006 21:21:54 +0000 (21:21 -0000)
committerAaron Bockover <abockover@novell.com>
Sat, 19 Aug 2006 21:21:54 +0000 (21:21 -0000)
    * test/test-both: added --help

svn path=/trunk/mono/; revision=64057

eglib/ChangeLog
eglib/test/test-both

index fb3bf118cef84cead6d388bf445c71b64f66775d..535adb59f46ae5e06e63258ee7c6b05a954a9e0e 100644 (file)
@@ -1,3 +1,7 @@
+2006-08-19  Aaron Bockover  <abockover@novell.com>
+
+       * test/test-both: added --help
+
 2006-08-19  Aaron Bockover  <abockover@novell.com>
 
        * test/driver.c: added -n mode to show only raw global run times,
index fd3322d3a2bd51e6bb9a9df2b8d317a325a05370..cd357c4ae86535c0899aea36fd2d3acc47b4814b 100755 (executable)
@@ -1,5 +1,29 @@
 #!/bin/sh
 
+for arg in $@; do 
+       if [ "x$arg" = "x--help" ]; then
+               echo "Usage: $0 [OPTION]... [ITERATIONS] [TESTGROUP]..."
+               echo ""
+               echo "Works the same as test-eglib or test-glib with the following"
+               echo "exception. Run test-eglib --help for details on normal testing"
+               echo ""
+               echo "If the first OPTION is --speed-compare, the following is"
+               echo "applicable to this program:"
+               echo ""
+               echo "  --speed-compare    run drivers in -qtni mode and report"
+               echo "                     speed comparison information"
+               echo ""
+               echo "After --speed-compare, the number of iterations "
+               echo "(optional, default is 100000) can be specified, followed "
+               echo "by specific tests to run (or none to run all)"
+               echo ""
+               echo "If --speed-compare is not the first argument, all arguments are"
+               echo "passed on directly to each driver"
+               echo ""
+               exit 1
+       fi
+done
+
 if [ "x$1" = "x--speed-compare" ]; then
        ITERATIONS=100000
        if [ ! -z "$2" ]; then