test00.sh (121730) | test00.sh (121736) |
---|---|
1#!/bin/sh 2# 3# Copyright (c) 2003 Poul-Henning Kamp 4# All rights reserved. 5# 6# Please see src/share/examples/etc/bsd-style-copyright. 7# | 1#!/bin/sh 2# 3# Copyright (c) 2003 Poul-Henning Kamp 4# All rights reserved. 5# 6# Please see src/share/examples/etc/bsd-style-copyright. 7# |
8# $FreeBSD: head/usr.sbin/mtree/test/test00.sh 121730 2003-10-30 10:46:23Z phk $ | 8# $FreeBSD: head/usr.sbin/mtree/test/test00.sh 121736 2003-10-30 12:40:54Z phk $ |
9# 10 11set -e 12 13TMP=/tmp/mtree.$$ 14 15rm -rf ${TMP} 16mkdir -p ${TMP} ${TMP}/mr ${TMP}/mt --- 24 unchanged lines hidden (view full) --- 41mtree -c -p ${TMP}/mr | mtree -U -r -p ${TMP}/mt > /dev/null 2>&1 42if [ -d ${TMP}/mt/foo ] ; then 43 echo "ERROR Mtree create fell for filename with '?' char" 1>&2 44 rm -rf ${TMP} 45 exit 1 46fi 47rmdir ${TMP}/mr/\?oo 48 | 9# 10 11set -e 12 13TMP=/tmp/mtree.$$ 14 15rm -rf ${TMP} 16mkdir -p ${TMP} ${TMP}/mr ${TMP}/mt --- 24 unchanged lines hidden (view full) --- 41mtree -c -p ${TMP}/mr | mtree -U -r -p ${TMP}/mt > /dev/null 2>&1 42if [ -d ${TMP}/mt/foo ] ; then 43 echo "ERROR Mtree create fell for filename with '?' char" 1>&2 44 rm -rf ${TMP} 45 exit 1 46fi 47rmdir ${TMP}/mr/\?oo 48 |
49mkdir ${TMP}/mr/\# 50mtree -c -p ${TMP}/mr > ${TMP}/_ 51if mtree -U -r -p ${TMP}/mt < ${TMP}/_ > /dev/null 2>&1 ; then 52 true 53else 54 echo "ERROR Mtree create fell for filename with '#' char" 1>&2 55 rm -rf ${TMP} 56 exit 1 57fi 58 59if [ ! -d ${TMP}/mt/\# ] ; then 60 echo "ERROR Mtree update failed to create name with '#' char" 1>&2 61 rm -rf ${TMP} 62 exit 1 63fi 64rmdir ${TMP}/mr/\# 65 |
|
49echo Passed test 1>&2 50rm -rf ${TMP} 51exit 0 | 66echo Passed test 1>&2 67rm -rf ${TMP} 68exit 0 |