3 #Tests if the --fullname parameter passed to smbtorture is working as expected.
7 Usage: test_smbtorture_test_names.sh SMBTORTURE
14 . $
(dirname $0)/subunit.sh
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)