More misc, test-related changes. (some to allow running tests as root)

This commit is contained in:
Jim Meyering
2007-09-12 14:52:26 +02:00
parent 0539705768
commit a669dfdabb
75 changed files with 330 additions and 804 deletions

View File

@@ -31,14 +31,9 @@ tmp_out=dd-out.$$
fail=0
warn=0
test_failure=0
echo data > $tmp_in || test_failure=1
ln $tmp_in $tmp_in2 || test_failure=1
ln -s $tmp_in $tmp_sym || test_failure=1
if test $test_failure = 1; then
echo 'failure in testing framework'
exit 1
fi
echo data > $tmp_in || framework_failure
ln $tmp_in $tmp_in2 || framework_failure
ln -s $tmp_in $tmp_sym || framework_failure
dd if=$tmp_in of=$tmp_out 2> /dev/null || fail=1
compare $tmp_in $tmp_out || fail=1