1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-26 09:04:50 +02:00

minor tweaks

This commit is contained in:
Jim Meyering
1998-01-22 08:33:02 +00:00
parent d5494d57f5
commit f7bb262cc8
3 changed files with 21 additions and 11 deletions

View File

@@ -15,7 +15,9 @@ tmp=$RM_TMPDIR/t-rm.$$
test_failure=0
mkdir $tmp $tmp/a $tmp/b $tmp/c || test_failure=1
touch $tmp/a/a $tmp/b/bb $tmp/c/cc || test_failure=1
> $tmp/a/a || test_failure=1
> $tmp/b/bb || test_failure=1
> $tmp/c/cc || test_failure=1
if test $test_failure = 1; then
echo 'failure in testing framework'

View File

@@ -13,10 +13,23 @@ if test "$VERBOSE" = yes; then
fi
tmp=$TMPDIR/t-rm.$$
mkdir $tmp
mkdir $tmp/a $tmp/a/a
touch $tmp/b
test_failure=0
mkdir $tmp || test_failure=1
mkdir $tmp/a $tmp/a/a || test_failure=1
> $tmp/b || test_failure=1
cat <<EOF > $tmp/$test.E || test_failure=1
$tmp/a
$tmp/a/a
$tmp/b
EOF
if test $test_failure = 1; then
echo 'failure in testing framework'
exit 1
fi
fail=0
$RM --verbose -r $tmp/a $tmp/b > $tmp/$test.O || fail=1
@@ -27,12 +40,6 @@ for d in $dirs; do
fi
done
cat <<EOF > $tmp/$test.E
$tmp/a
$tmp/a/a
$tmp/b
EOF
# Compare expected and actual output.
cmp $tmp/$test.E $tmp/$test.O || fail=1

View File

@@ -13,7 +13,8 @@ fi
tmp=$TMPDIR/t-rm.$$
mkdir $tmp $tmp/a $tmp/a/b
touch $tmp/a/f $tmp/a/b/g
> $tmp/a/f
> $tmp/a/b/g
fail=0
$RM --verbose -r $tmp/a > $tmp/$test.O || fail=1