diff options
Diffstat (limited to 'usr.sbin/mtree/test/test05.sh')
-rw-r--r-- | usr.sbin/mtree/test/test05.sh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/usr.sbin/mtree/test/test05.sh b/usr.sbin/mtree/test/test05.sh deleted file mode 100644 index eda544f..0000000 --- a/usr.sbin/mtree/test/test05.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# Test for 'optional' keyword. -# - -TMP=`mktemp -d /tmp/mtree.XXXXXX` -mkdir -p ${TMP}/mr ${TMP}/mr/optional-dir ${TMP}/mr/some-dir -touch ${TMP}/mr/optional-file ${TMP}/mr/some-file - -mtree -c -p ${TMP}/mr > ${TMP}/_ -rm -rf ${TMP}/mr/optional-file ${TMP}/mr/optional-dir -mtree -p ${TMP}/mr -K optional < ${TMP}/_ > /dev/null - -res=$? - -if [ $res -ne 0 ] ; then - echo "ERROR 'optional' keyword failed" 1>&2 - rm -rf ${TMP} - exit 1 -fi - -rm -rf ${TMP} -exit 0 |