]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Make net command available in sharesec test
authorChristof Schmitt <cs@samba.org>
Tue, 26 Nov 2019 16:58:32 +0000 (09:58 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 26 Nov 2019 21:28:31 +0000 (21:28 +0000)
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/script/tests/test_sharesec.sh
source3/selftest/tests.py

index 8165a58ee68611a0d57ebd32731e23906e55e6ea..06df3774f639fe65a57db4495ab7839e8de1a09b 100755 (executable)
 # Copyright (C) 2015 Christof Schmitt
 
 if [ $# -lt 3 ]; then
-       echo Usage: test_sharesec.sh SERVERCONFFILE SHARESEC SHARE
+       echo Usage: test_sharesec.sh SERVERCONFFILE SHARESEC NET SHARE
 exit 1
 fi
 
 CONF=$1
 SHARESEC=$2
-SHARE=$3
+NET=$3
+SHARE=$4
 
 CMD="$SHARESEC $CONF $SHARE"
+NET_CMD="$NET $CONF"
 
 incdir=$(dirname $0)/../../../testprogs/blackbox
 . $incdir/subunit.sh
index a4851004fa717e6fcb2a51e9f0440997c64ce6ec..49d88d54be4cb9f9425faa8325d8ab94ef3af318 100755 (executable)
@@ -769,7 +769,8 @@ plantestsuite("samba3.blackbox.rpcclient_samlogon", "ad_member:local", [os.path.
                                                                         "$DC_USERNAME", "$DC_PASSWORD", "ncacn_np:$DC_SERVER", configuration])
 plantestsuite("samba3.blackbox.sharesec", "simpleserver:local",
               [os.path.join(samba3srcdir, "script/tests/test_sharesec.sh"),
-               configuration, os.path.join(bindir(), "sharesec"), "tmp"])
+               configuration, os.path.join(bindir(), "sharesec"),
+               os.path.join(bindir(), "net"), "tmp"])
 
 plantestsuite("samba3.blackbox.net_tdb", "simpleserver:local",
               [os.path.join(samba3srcdir, "script/tests/test_net_tdb.sh"),