Current Path : /compat/linux/proc/self/root/usr/src/usr.sbin/mtree/test/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/src/usr.sbin/mtree/test/test05.sh |
#!/bin/sh # # $FreeBSD: release/9.1.0/usr.sbin/mtree/test/test05.sh 160083 2006-07-03 10:55:22Z maxim $ # # 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