s3:smbd: call apply_new_nt_acl() already in mkdir_internals()
[samba4-gss.git] / testprogs / blackbox / test_smbtorture_test_names.sh
blob19c747d4081feca7256cfb6a0d753198f95c023a
1 #!/bin/sh
3 #Tests if the --fullname parameter passed to smbtorture is working as expected.
5 if [ $# -ne 1 ]; then
6 cat <<EOF
7 Usage: test_smbtorture_test_names.sh SMBTORTURE
8 EOF
9 exit 1
12 SMBTORTURE="$1 //a/b"
14 . $(dirname $0)/subunit.sh
16 failed=0
18 testit_grep "with_shortname local.smbtorture.level1.level2.level3.always_pass" \
19 '^success: always_pass$' \
20 $SMBTORTURE local.smbtorture.level1.level2.level3.always_pass || failed=$(expr $failed + 1)
21 testit_grep "with_shortname local.smbtorture.level1.level2.level3" \
22 '^success: always_pass$' \
23 $SMBTORTURE local.smbtorture.level1.level2.level3 || failed=$(expr $failed + 1)
24 testit_grep "with_shortname local.smbtorture.level1.level2" \
25 '^success: level3.always_pass$' \
26 $SMBTORTURE local.smbtorture.level1.level2 || failed=$(expr $failed + 1)
27 testit_grep "with_shortname local.smbtorture.level1" \
28 '^success: level2.level3.always_pass$' \
29 $SMBTORTURE local.smbtorture.level1 || failed=$(expr $failed + 1)
30 testit_grep "with_fullname local.smbtorture.level1.level2.level3.always_pass" \
31 '^success: local.smbtorture.level1.level2.level3.always_pass$' \
32 $SMBTORTURE --fullname local.smbtorture.level1.level2.level3.always_pass || failed=$(expr $failed + 1)
33 testit_grep "with_fullname local.smbtorture.level1.level2.level3" \
34 '^success: local.smbtorture.level1.level2.level3.always_pass$' \
35 $SMBTORTURE --fullname local.smbtorture.level1.level2.level3 || failed=$(expr $failed + 1)
36 testit_grep "with_fullname local.smbtorture.level1.level2" \
37 '^success: local.smbtorture.level1.level2.level3.always_pass$' \
38 $SMBTORTURE --fullname local.smbtorture.level1.level2 || failed=$(expr $failed + 1)
39 testit_grep "with_fullname local.smbtorture.level1" \
40 '^success: local.smbtorture.level1.level2.level3.always_pass$' \
41 $SMBTORTURE --fullname local.smbtorture.level1 || failed=$(expr $failed + 1)
43 testok $0 $failed