s3-selftest convert tests.sh to python
[samba.git] / source3 / script / tests / test_net_misc.sh
index 5257830030b1cee3090a5d293238cf21f2995174..015b5026a7f2a8d9bf9267ca7abdcc8ed98d943e 100755 (executable)
@@ -2,6 +2,17 @@
 
 # various tests for the "net" command
 
+if [ $# -lt 3 ]; then
+cat <<EOF
+Usage: test_net_misc.sh SCRIPTDIR SERVERCONFFILE CONFIGURATION
+EOF
+exit 1;
+fi
+
+SCRIPTDIR="$1"
+SERVERCONFFILE="$2"
+CONFIGURATION="$3"
+
 NET="$VALGRIND ${NET:-$BINDIR/net} $CONFIGURATION"
 
 NETTIME="${NET} time"