diff options
author | Jim Meyering <jim@meyering.net> | 1997-10-17 18:57:46 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-10-17 18:57:46 +0000 |
commit | 71c4a4524f7483ab7b91c7aead224138cb8439c3 (patch) | |
tree | 4ae56ef91f43b463945b3b66d48988378821d293 /tests/rm | |
parent | c55572184218b75af2f70ad330a912f42674a8b4 (diff) | |
download | coreutils-71c4a4524f7483ab7b91c7aead224138cb8439c3.tar.xz |
.
Diffstat (limited to 'tests/rm')
-rwxr-xr-x | tests/rm/r-3 | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/rm/r-3 b/tests/rm/r-3 new file mode 100755 index 000000000..387115948 --- /dev/null +++ b/tests/rm/r-3 @@ -0,0 +1,37 @@ +#!/bin/sh + +: ${RM=rm} + +: ${TMPDIR=.} + +if test "$VERBOSE" = yes; then + $RM --version + set -x +fi + +tmp=$TMPDIR/t-rm.$$ + +framework_fail=0 +mkdir $tmp || framework_fail=1 + +a=1 +n=300 +i=$a +while :; do + touch $tmp/$i || framework_fail=1 + test `expr $i = $n` = 1 && break + i=`expr $i + 1` +done + +test -f $tmp/$a || framework_fail=1 +test -f $tmp/$n || framework_fail=1 + +if test $framework_fail = 1; then + echo 'failure in testing framework' + exit 1 +fi + +$RM -rf $tmp || fail=1 +test -d $tmp && fail=1 + +exit $fail |