Lines Matching +full:spec +full:-

34 	sed -e '
40 -e '/type=dir/s/ size=[0-9]*//'
45 diff -Nru "$1" "$2" || atf_fail "files $1 and $2 differ"
59 rm -fr create
60 mkdir -p create/a/1 create/a/2 create/b
76 ln -s a.file.1 create/a.symlink.1
78 ln -s b create/top.symlink.b
80 ln -s nonexistent create/top.dangling
88 ( cd create && mtree -F ${FLAVOR} -c -k type,nlink,link,size,sha256 ) >output.raw \
126 ( cd create && mtree -F ${FLAVOR} ) <"$(atf_get_srcdir)/${FLAVOR}_d_create.out" >output \
154 atf_set "descr" "Convert a specfile to mtree -C format, unsorted"
159 mtree -F ${FLAVOR} -C -K all <"$(atf_get_srcdir)/d_convert.in" >output
186 atf_set "descr" "Convert a specfile to mtree -C format, sorted"
191 mtree -F ${FLAVOR} -C -S -K all <"$(atf_get_srcdir)/d_convert.in" >output
218 atf_set "descr" "Convert a specfile to mtree -D format, unsorted"
223 mtree -F ${FLAVOR} -D -K all <"$(atf_get_srcdir)/d_convert.in" >output
250 atf_set "descr" "Convert a specfile to mtree -D format, sorted"
255 mtree -F ${FLAVOR} -D -S -K all <"$(atf_get_srcdir)/d_convert.in" >output
282 atf_set "descr" "Test that -d ignores symlinks (PR bin/41061)"
287 # Kyua 0.11 and above point TMPDIR to our work directory and atf-check
295 mtree -F ${FLAVOR} -c | mtree -F ${FLAVOR} -Ck uid,gid,mode > mtree.spec
296 ln -s newdir otherdir
298 # This yields "extra: otherdir" even with -d.
300 atf_check -s ignore -o empty -e empty -x "mtree -F ${FLAVOR} -d < mtree.spec"
302 # Delete the symlink and re-verify.
305 atf_check -s ignore -o empty -e empty -x "mtree -F ${FLAVOR} -d < mtree.spec"
323 # Kyua 0.11 and above point TMPDIR to our work directory and atf-check
343 mtree -F ${FLAVOR} -C -M -K all <"$(atf_get_srcdir)/d_merge.in" >output
346 mtree -F ${FLAVOR} -C -M -S -K all <"$(atf_get_srcdir)/d_merge.in" >output
373 atf_set "descr" "Test that new non-empty " \
382 mtree -F ${FLAVOR} -c > mtree.spec
384 if [ ! -f mtree.spec ]; then
389 atf_check -s ignore -o save:output -x "mtree -F ${FLAVOR} -f mtree.spec"
391 if [ ! -n "$(egrep "extra: bar" output)" ]; then
417 atf_set "descr" "Test that spec comparisons detect type changes"
425 mtree -c -p testdir > mtree1.spec
427 if [ ! -f mtree1.spec ]; then
431 rm -f testdir/bar
432 ln -s foo testdir/bar
433 # uid change is expected to be ignored as done in -C
434 chown -h operator testdir/bar
435 mtree -c -p testdir > mtree2.spec
437 if [ ! -f mtree2.spec ]; then
441 atf_check -s ignore -o save:output \
442 -x "mtree -f mtree1.spec -f mtree2.spec"
444 if ! cut -f 3 output | egrep -q "bar file" || \
445 ! cut -f 3 output | egrep -q "bar link"; then