]>
git.saurik.com Git - apple/file_cmds.git/blob - mtree/test/test03.sh
3 # Copyright (c) 2003 Poul-Henning Kamp
6 # Please see src/share/examples/etc/bsd-style-copyright.
8 # $FreeBSD: src/usr.sbin/mtree/test/test03.sh,v 1.2 2005/03/29 11:44:17 tobez Exp $
18 K
=uid
,uname
,gid
,gname
,flags
,md5digest
,size
,ripemd160digest
,sha1digest
,sha256digest
,cksum
27 mtree
-c -K $K -p ..
> ${TMP}/_r
28 mtree
-c -K $K -p ..
> ${TMP}/_r2
36 chown nobody _FOO
/_uid
39 mtree
-c -K $K -p ..
> ${TMP}/_t
43 if mtree
-f ${TMP}/_r
-f ${TMP}/_r2
; then
46 echo "ERROR Compare identical failed" 1>&2
50 if mtree
-f ${TMP}/_r
-f ${TMP}/_t
> ${TMP}/_
; then
51 echo "ERROR Compare different succeeded" 1>&2
55 if [ `wc -l < ${TMP}/_` -ne 10 ] ; then
56 echo "ERROR wrong number of lines: `wc -l ${TMP}/_`" 1>&2