3 # This is a bit of a torture test for mkdir -p, too.
4 # GNU rm performs *much* better on systems that have a d_type member
5 # in the directory structure because then it does only one stat per
6 # command line argument.
8 # If this test takes too long on your system, blame the OS.
15 # Don't require use of TMPDIR.
18 if test "$VERBOSE" = yes; then
27 tmp
=$RM_TMPDIR/t-rm.$$
29 k20
=/k
/k
/k
/k
/k
/k
/k
/k
/k
/k
/k
/k
/k
/k
/k
/k
/k
/k
/k
/k
30 k200
=$k20$k20$k20$k20$k20$k20$k20$k20$k20$k20
32 # Be careful not to exceed max file name length (usu 512?).
33 # Doing so wouldn't affect GNU mkdir or GNU rm, but any tool that
34 # operates on the full pathname (like `test') would choke.
37 # Create a directory in $tmp with lots of `k' components.
39 echo "creating a hierarchy 400 deep in $tmp..." |
tr -d '\012'
40 $MKDIR -p $deep || fail
=1
43 # Make sure the deep dir was created.
44 test -d $deep || fail
=1
46 echo "deleting $tmp..." |
tr -d '\012'
50 # Make sure all of $tmp was deleted.
51 test -d $tmp && fail
=1