mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
s3:tests: Reformat test_zero_data.sh
shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
ee972c11cd
commit
7677b89abc
@ -5,10 +5,10 @@
|
||||
# Copyright (C) 2019 Christof Schmitt
|
||||
|
||||
if [ $# -lt 4 ]; then
|
||||
cat <<EOF
|
||||
cat <<EOF
|
||||
Usage: test_zero_data.sh SERVER_IP USERNAME PASSWORD LOCAL_PATH
|
||||
EOF
|
||||
exit 1;
|
||||
exit 1
|
||||
fi
|
||||
|
||||
SERVER=${1}
|
||||
@ -34,15 +34,15 @@ testit "check allocation before zero-data" test $alloc_kb -eq 128 ||
|
||||
failed=$(expr $failed + 1)
|
||||
|
||||
testit "set-sparse" $VALGRIND $BINDIR/smbtorture //$SERVER_IP/tmp \
|
||||
-U$USERNAME%$PASSWORD smb2.set-sparse-ioctl \
|
||||
--option=torture:filename=zero_data/testfile ||
|
||||
-U$USERNAME%$PASSWORD smb2.set-sparse-ioctl \
|
||||
--option=torture:filename=zero_data/testfile ||
|
||||
failed=$(expr $failed + 1)
|
||||
|
||||
testit "zero-data" $VALGRIND $BINDIR/smbtorture //$SERVER_IP/tmp \
|
||||
-U$USERNAME%$PASSWORD smb2.zero-data-ioctl \
|
||||
--option=torture:filename=zero_data/testfile \
|
||||
--option=torture:offset=0 \
|
||||
--option=torture:beyond_final_zero=131072 ||
|
||||
-U$USERNAME%$PASSWORD smb2.zero-data-ioctl \
|
||||
--option=torture:filename=zero_data/testfile \
|
||||
--option=torture:offset=0 \
|
||||
--option=torture:beyond_final_zero=131072 ||
|
||||
failed=$(expr $failed + 1)
|
||||
|
||||
alloc_kb=$(du -k $TESTDIR/testfile | sed -e 's/\t.*//')
|
||||
|
Loading…
x
Reference in New Issue
Block a user