]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
.
authorJim Meyering <jim@meyering.net>
Wed, 9 Jul 1997 14:18:57 +0000 (14:18 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 9 Jul 1997 14:18:57 +0000 (14:18 +0000)
tests/mkdir/p-1 [new file with mode: 0755]

diff --git a/tests/mkdir/p-1 b/tests/mkdir/p-1
new file mode 100755 (executable)
index 0000000..40c794f
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+: ${MKDIR=mkdir}
+
+# This should be an absolute dir for this test.
+# FIXME: enforce it
+: ${TMPDIR=/tmp}
+
+if test "$VERBOSE" = yes; then
+  set -x
+  $MKDIR --version
+fi
+
+tmp=$TMPDIR/t-mkdir.$$/a/b/c
+temp_files=$tmp
+rm -rf $temp_files
+
+# Specify both version control and suffix so the environment variables
+# (possibly set by the user running these tests) aren't used.
+$MKDIR --parents $tmp || fail=1
+
+test -d $tmp || fail=1
+
+rm -rf $temp_files
+
+exit $fail