summaryrefslogtreecommitdiff
path: root/testsuite/build_farm/torture_setup.fns
blob: 3d9abbcd79b3322ec5fb192bec6e50e8ac1079b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
. 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
}