summaryrefslogtreecommitdiff
path: root/tests/mkdir/p-1
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-07-09 14:18:57 +0000
committerJim Meyering <jim@meyering.net>1997-07-09 14:18:57 +0000
commit5e0ce74b1d6786924dc83909f17f8744bc4a0c55 (patch)
tree83cc31c006b8a3281a814450c5c43e695a9ed804 /tests/mkdir/p-1
parent47489a5b274e23ecae68a5a21b44f11484ddde17 (diff)
downloadcoreutils-5e0ce74b1d6786924dc83909f17f8744bc4a0c55.tar.xz
.
Diffstat (limited to 'tests/mkdir/p-1')
-rwxr-xr-xtests/mkdir/p-126
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/mkdir/p-1 b/tests/mkdir/p-1
new file mode 100755
index 000000000..40c794f48
--- /dev/null
+++ b/tests/mkdir/p-1
@@ -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