logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git

rmdir_long.t (541B)


  1. #!/usr/bin/env cram
  2. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. $ export PATH="$TESTDIR/../cmd:$PATH"
  5. $ test "$(command -v rmdir)" = "$TESTDIR/../cmd/rmdir"
  6. $ grep -q HAS_GETOPT_LONG "${TESTDIR}/../config.mk" || return 80
  7. $ mkdir -p e_not_empty-ign/a/b/c/d empty-ign/a/b/c
  8. $ rmdir -p --ignore-fail-on-non-empty e_not_empty-ign/a/b/c empty-ign/a/b/c
  9. $ test -d e_not_empty-ign/a/b/c
  10. $ test ! -e empty-ign
  11. $ rm -r e_not_empty-ign
  12. $ find .
  13. .