]>
git.saurik.com Git - apple/file_cmds.git/blob - mtree/test/test02.sh
3 # Copyright (c) 2003 Dan Nelson
6 # Please see src/share/examples/etc/bsd-style-copyright.
8 # $FreeBSD: src/usr.sbin/mtree/test/test02.sh,v 1.1 2003/10/31 13:39:19 phk Exp $
16 mkdir -p ${TMP} ${TMP}/mr
${TMP}/mt
18 touch -t 199901020304 ${TMP}/mr
/oldfile
19 touch ${TMP}/mt
/oldfile
21 mtree
-c -p ${TMP}/mr
> ${TMP}/_
23 mtree
-U -r -p ${TMP}/mt
< ${TMP}/_
> /dev
/null
25 x
=x
`(cd ${TMP}/mr ; ls -l 2>&1) || true`
26 y
=x
`(cd ${TMP}/mt ; ls -l 2>&1) || true`
28 if [ "$x" != "$y" ] ; then
29 echo "ERROR Update of mtime failed" 1>&2