1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

testprogs: Reformat test_smbtorture_test_names.sh

shfmt -w -p -i 0 -fn testprogs/blackbox/test_smbtorture_test_names.sh

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
This commit is contained in:
Andreas Schneider 2022-04-22 15:46:05 +02:00 committed by Pavel Filipensky
parent dae369f483
commit 2d64eafa8b

View File

@ -6,38 +6,38 @@ if [ $# -ne 1 ]; then
cat <<EOF cat <<EOF
Usage: test_smbtorture_test_names.sh SMBTORTURE Usage: test_smbtorture_test_names.sh SMBTORTURE
EOF EOF
exit 1; exit 1
fi fi
SMBTORTURE="$1 //a/b" SMBTORTURE="$1 //a/b"
. `dirname $0`/subunit.sh . $(dirname $0)/subunit.sh
failed=0 failed=0
testit_grep "with_shortname local.smbtorture.level1.level2.level3.always_pass" \ testit_grep "with_shortname local.smbtorture.level1.level2.level3.always_pass" \
'^success: always_pass$' \ '^success: always_pass$' \
$SMBTORTURE local.smbtorture.level1.level2.level3.always_pass || failed=`expr $failed + 1` $SMBTORTURE local.smbtorture.level1.level2.level3.always_pass || failed=$(expr $failed + 1)
testit_grep "with_shortname local.smbtorture.level1.level2.level3" \ testit_grep "with_shortname local.smbtorture.level1.level2.level3" \
'^success: always_pass$' \ '^success: always_pass$' \
$SMBTORTURE local.smbtorture.level1.level2.level3 || failed=`expr $failed + 1` $SMBTORTURE local.smbtorture.level1.level2.level3 || failed=$(expr $failed + 1)
testit_grep "with_shortname local.smbtorture.level1.level2" \ testit_grep "with_shortname local.smbtorture.level1.level2" \
'^success: level3.always_pass$' \ '^success: level3.always_pass$' \
$SMBTORTURE local.smbtorture.level1.level2 || failed=`expr $failed + 1` $SMBTORTURE local.smbtorture.level1.level2 || failed=$(expr $failed + 1)
testit_grep "with_shortname local.smbtorture.level1" \ testit_grep "with_shortname local.smbtorture.level1" \
'^success: level2.level3.always_pass$' \ '^success: level2.level3.always_pass$' \
$SMBTORTURE local.smbtorture.level1 || failed=`expr $failed + 1` $SMBTORTURE local.smbtorture.level1 || failed=$(expr $failed + 1)
testit_grep "with_fullname local.smbtorture.level1.level2.level3.always_pass" \ testit_grep "with_fullname local.smbtorture.level1.level2.level3.always_pass" \
'^success: 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` $SMBTORTURE --fullname local.smbtorture.level1.level2.level3.always_pass || failed=$(expr $failed + 1)
testit_grep "with_fullname local.smbtorture.level1.level2.level3" \ testit_grep "with_fullname local.smbtorture.level1.level2.level3" \
'^success: local.smbtorture.level1.level2.level3.always_pass$' \ '^success: local.smbtorture.level1.level2.level3.always_pass$' \
$SMBTORTURE --fullname local.smbtorture.level1.level2.level3 || failed=`expr $failed + 1` $SMBTORTURE --fullname local.smbtorture.level1.level2.level3 || failed=$(expr $failed + 1)
testit_grep "with_fullname local.smbtorture.level1.level2" \ testit_grep "with_fullname local.smbtorture.level1.level2" \
'^success: local.smbtorture.level1.level2.level3.always_pass$' \ '^success: local.smbtorture.level1.level2.level3.always_pass$' \
$SMBTORTURE --fullname local.smbtorture.level1.level2 || failed=`expr $failed + 1` $SMBTORTURE --fullname local.smbtorture.level1.level2 || failed=$(expr $failed + 1)
testit_grep "with_fullname local.smbtorture.level1" \ testit_grep "with_fullname local.smbtorture.level1" \
'^success: local.smbtorture.level1.level2.level3.always_pass$' \ '^success: local.smbtorture.level1.level2.level3.always_pass$' \
$SMBTORTURE --fullname local.smbtorture.level1 || failed=`expr $failed + 1` $SMBTORTURE --fullname local.smbtorture.level1 || failed=$(expr $failed + 1)
testok $0 $failed testok $0 $failed