1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00
samba-mirror/testsuite/build_farm/torture_setup.fns

20 lines
484 B
Plaintext

. basicsmb.fns
test_torture() {
torture_test=$1
password=samba
security=USER
(test_smb_conf_setup && test_smbpasswd $password ) || return 1
echo $pwd/$tree/source/bin/smbtorture //localhost/test -U$whoami%$password $torture_test
$pwd/$tree/source/bin/smbtorture //localhost/test -U$whoami%$password $torture_test
status=$?
if [ $status = 0 ]; then
echo "smbtorture test $torture_test worked"
else
echo "smbtorture test $torture_test FAILED!"
return 1
fi
return 0
}