blob: a4513101b60ba1111ab907c41504f9aab0ed65e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#!/bin/sh
#Tests if the --fullname parameter passed to smbtorture is working as expected.
if [ $# -ne 1 ]; then
cat <<EOF
Usage: test_smbtorture_test_names.sh SMBTORTURE
EOF
exit 1;
fi
SMBTORTURE="$1 //a/b"
. `dirname $0`/subunit.sh
failed=0
testit_grep "with_shortname local.smbtorture.level1.level2.level3.always_pass" \
'^success: always_pass$' \
$SMBTORTURE local.smbtorture.level1.level2.level3.always_pass || failed=`expr $failed + 1`
testit_grep "with_shortname local.smbtorture.level1.level2.level3" \
'^success: always_pass$' \
$SMBTORTURE local.smbtorture.level1.level2.level3 || failed=`expr $failed + 1`
testit_grep "with_shortname local.smbtorture.level1.level2"\
'^success: level3.always_pass$' \
$SMBTORTURE local.smbtorture.level1.level2 || failed=`expr $failed + 1`
testit_grep "with_shortname local.smbtorture.level1" \
'^success: level2.level3.always_pass$' \
$SMBTORTURE local.smbtorture.level1 || failed=`expr $failed + 1`
testit_grep "with_fullname local.smbtorture.level1.level2.level3.always_pass" \
'^success: local.smbtorture.level1.level2.level3.always_pass$' \
$SMBTORTURE --fullname local.smbtorture.level1.level2.level3.always_pass || failed=`expr $failed + 1`
testit_grep "with_fullname local.smbtorture.level1.level2.level3" \
'^success: local.smbtorture.level1.level2.level3.always_pass$' \
$SMBTORTURE --fullname local.smbtorture.level1.level2.level3 || failed=`expr $failed + 1`
testit_grep "with_fullname local.smbtorture.level1.level2" \
'^success: local.smbtorture.level1.level2.level3.always_pass$' \
$SMBTORTURE --fullname local.smbtorture.level1.level2 || failed=`expr $failed + 1`
testit_grep "with_fullname local.smbtorture.level1" \
'^success: local.smbtorture.level1.level2.level3.always_pass$' \
$SMBTORTURE --fullname local.smbtorture.level1 || failed=`expr $failed + 1`
testok $0 $failed
|