mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
testsuite: Reformat shell scripts
shfmt -f testsuite/ | xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
This commit is contained in:
parent
db8849ea05
commit
bb2e0622f0
@ -3,7 +3,7 @@
|
|||||||
# Verify test output. Basically we check to see if all the files generated
|
# Verify test output. Basically we check to see if all the files generated
|
||||||
# in /tmp by the get{pw,gr}ent_r.c and program are identical. If there is
|
# in /tmp by the get{pw,gr}ent_r.c and program are identical. If there is
|
||||||
# some problem with the re-entrancy of the code then the information in the
|
# some problem with the re-entrancy of the code then the information in the
|
||||||
# two files will be different.
|
# two files will be different.
|
||||||
#
|
#
|
||||||
|
|
||||||
TYPE=$1
|
TYPE=$1
|
||||||
@ -13,7 +13,7 @@ FILES="/tmp/${TYPE}_r-${ID}.out-*"
|
|||||||
# Sort files
|
# Sort files
|
||||||
|
|
||||||
for file in $FILES; do
|
for file in $FILES; do
|
||||||
cat $file | sort > $file.sorted
|
cat $file | sort >$file.sorted
|
||||||
done
|
done
|
||||||
|
|
||||||
# Diff files
|
# Diff files
|
||||||
@ -22,14 +22,13 @@ SORTED="/tmp/${TYPE}_r-${ID}.out-*.sorted"
|
|||||||
failed=0
|
failed=0
|
||||||
|
|
||||||
for file1 in $SORTED; do
|
for file1 in $SORTED; do
|
||||||
for file2 in $SORTED; do
|
for file2 in $SORTED; do
|
||||||
if [ $file1 != $file2 ]; then
|
if [ $file1 != $file2 ]; then
|
||||||
diff $file1 $file2
|
diff $file1 $file2
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
|
|
||||||
rm -f $SORTED
|
rm -f $SORTED
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user