]>
git.saurik.com Git - apple/file_cmds.git/blob - mtree/test/test04.sh
3 # Copyright (c) 2003 Dan Nelson
6 # Please see src/share/examples/etc/bsd-style-copyright.
8 # $FreeBSD: src/usr.sbin/mtree/test/test04.sh,v 1.1 2003/11/13 11:02:57 phk Exp $
16 mkdir -p ${TMP} ${TMP}/mr
${TMP}/mt
24 mtree
-c -p ${TMP}/mr
> ${TMP}/_r
25 mtree
-c -p ${TMP}/mt
> ${TMP}/_t
27 if mtree
-f ${TMP}/_r
-f ${TMP}/_t
> ${TMP}/_
; then
28 echo "ERROR wrong exit on difference" 1>&2
32 if [ `wc -l < ${TMP}/_` -ne 1 ] ; then
33 echo "ERROR spec/spec compare generated wrong output" 1>&2
38 if mtree
-f ${TMP}/_t
-f ${TMP}/_r
> ${TMP}/_
; then
39 echo "ERROR wrong exit on difference" 1>&2
43 if [ `wc -l < ${TMP}/_` -ne 1 ] ; then
44 echo "ERROR spec/spec compare generated wrong output" 1>&2