summaryrefslogtreecommitdiff
path: root/tests/mkdir/p-1
blob: 73d62c38bf00e096451539ba13c434061bee748c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

: ${MKDIR=mkdir}

# TMPDIR 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

$MKDIR --parents $tmp || fail=1

test -d $tmp || fail=1

rm -rf $temp_files

exit $fail