Remove NET_2_0
[mono.git] / eglib / test / test-both
index fd3322d3a2bd51e6bb9a9df2b8d317a325a05370..038c927eb258f20a998739c1473e7789a6674d0b 100755 (executable)
@@ -1,5 +1,33 @@
 #!/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 "./test-glib" -o ! -x "./test-eglib" ]; then
+       make
+fi
+
 if [ "x$1" = "x--speed-compare" ]; then
        ITERATIONS=100000
        if [ ! -z "$2" ]; then