Home | History | Annotate | Line # | Download | only in mtree
t_mtree.sh revision 1.4.2.4
      1  1.4.2.4  yamt # $NetBSD: t_mtree.sh,v 1.4.2.4 2014/05/22 11:42:24 yamt Exp $
      2  1.4.2.2  yamt #
      3  1.4.2.2  yamt # Copyright (c) 2009, 2012 The NetBSD Foundation, Inc.
      4  1.4.2.2  yamt # All rights reserved.
      5  1.4.2.2  yamt #
      6  1.4.2.2  yamt # Redistribution and use in source and binary forms, with or without
      7  1.4.2.2  yamt # modification, are permitted provided that the following conditions
      8  1.4.2.2  yamt # are met:
      9  1.4.2.2  yamt # 1. Redistributions of source code must retain the above copyright
     10  1.4.2.2  yamt #    notice, this list of conditions and the following disclaimer.
     11  1.4.2.2  yamt # 2. Redistributions in binary form must reproduce the above copyright
     12  1.4.2.2  yamt #    notice, this list of conditions and the following disclaimer in the
     13  1.4.2.2  yamt #    documentation and/or other materials provided with the distribution.
     14  1.4.2.2  yamt #
     15  1.4.2.2  yamt # THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     16  1.4.2.2  yamt # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     17  1.4.2.2  yamt # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     18  1.4.2.2  yamt # PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     19  1.4.2.2  yamt # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     20  1.4.2.2  yamt # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     21  1.4.2.2  yamt # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     22  1.4.2.2  yamt # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     23  1.4.2.2  yamt # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     24  1.4.2.2  yamt # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     25  1.4.2.2  yamt # POSSIBILITY OF SUCH DAMAGE.
     26  1.4.2.2  yamt #
     27  1.4.2.2  yamt 
     28  1.4.2.2  yamt # Postprocess mtree output, canonicalising portions that
     29  1.4.2.2  yamt # are expected to differ from one run to another.
     30  1.4.2.2  yamt #
     31  1.4.2.3  yamt 
     32  1.4.2.2  yamt h_postprocess()
     33  1.4.2.2  yamt {
     34  1.4.2.2  yamt 	sed -e '
     35  1.4.2.2  yamt 		/^#	   user: /s/:.*/: x/
     36  1.4.2.2  yamt 		/^#	machine: /s/:.*/: x/
     37  1.4.2.2  yamt 		/^#	   tree: /s/:.*/: x/
     38  1.4.2.2  yamt 		/^#	   date: /s/:.*/: x/
     39  1.4.2.4  yamt 		' \
     40  1.4.2.4  yamt 	    -e '/type=dir/s/ size=[0-9]*//'
     41  1.4.2.2  yamt }
     42  1.4.2.2  yamt 
     43  1.4.2.2  yamt h_check()
     44  1.4.2.2  yamt {
     45  1.4.2.2  yamt         diff -Nru "$1" "$2" || atf_fail "files $1 and $2 differ"
     46  1.4.2.2  yamt }
     47  1.4.2.2  yamt 
     48  1.4.2.3  yamt 
     49  1.4.2.3  yamt atf_test_case mtree_create
     50  1.4.2.3  yamt atf_test_case netbsd6_create
     51  1.4.2.2  yamt create_head()
     52  1.4.2.2  yamt {
     53  1.4.2.2  yamt 	atf_set "descr" "Create a specfile describing a directory tree"
     54  1.4.2.2  yamt }
     55  1.4.2.2  yamt 
     56  1.4.2.2  yamt create_setup()
     57  1.4.2.2  yamt {
     58  1.4.2.2  yamt 	# create some directories
     59  1.4.2.3  yamt 	rm -fr create
     60  1.4.2.2  yamt 	mkdir -p create/a/1 create/a/2 create/b
     61  1.4.2.2  yamt 	# create some files
     62  1.4.2.2  yamt 	for file in create/top.file.1 \
     63  1.4.2.2  yamt 		    create/a/a.file.1 \
     64  1.4.2.2  yamt 		    create/a/a.file.2 \
     65  1.4.2.2  yamt 		    create/a/1/a1.file.1 \
     66  1.4.2.2  yamt 		    create/b/b.file.1 \
     67  1.4.2.2  yamt 		    create/b/b.file.2
     68  1.4.2.2  yamt 	do
     69  1.4.2.2  yamt 		echo "$file" >$file
     70  1.4.2.2  yamt 	done
     71  1.4.2.2  yamt 	# hard link to file in same dir
     72  1.4.2.2  yamt 	ln create/b/b.file.1 create/b/b.hardlink.1
     73  1.4.2.2  yamt 	# hard link to file in another dir
     74  1.4.2.2  yamt 	ln create/b/b.file.2 create/a/a.hardlink.b2
     75  1.4.2.2  yamt 	# symlink to file
     76  1.4.2.2  yamt 	ln -s a.file.1 create/a.symlink.1
     77  1.4.2.2  yamt 	# symlink to dir
     78  1.4.2.2  yamt 	ln -s b create/top.symlink.b
     79  1.4.2.2  yamt 	# dangling symlink
     80  1.4.2.2  yamt 	ln -s nonexistent create/top.dangling
     81  1.4.2.2  yamt }
     82  1.4.2.2  yamt 
     83  1.4.2.2  yamt create_body()
     84  1.4.2.2  yamt {
     85  1.4.2.2  yamt 	create_setup
     86  1.4.2.2  yamt 
     87  1.4.2.2  yamt 	# run mtree and check output
     88  1.4.2.3  yamt 	( cd create && mtree -F ${FLAVOR} -c -k type,nlink,link,size,sha256 ) >output.raw \
     89  1.4.2.2  yamt 	|| atf_fail "mtree exit status $?"
     90  1.4.2.2  yamt 	h_postprocess <output.raw >output
     91  1.4.2.3  yamt 	h_check "$(atf_get_srcdir)/${FLAVOR}_d_create.out" output
     92  1.4.2.3  yamt }
     93  1.4.2.3  yamt 
     94  1.4.2.3  yamt mtree_create_head() 
     95  1.4.2.3  yamt {
     96  1.4.2.3  yamt 	FLAVOR=mtree create_head
     97  1.4.2.3  yamt }
     98  1.4.2.3  yamt netbsd6_create_head() 
     99  1.4.2.3  yamt {
    100  1.4.2.3  yamt 	FLAVOR=netbsd6 create_head
    101  1.4.2.2  yamt }
    102  1.4.2.2  yamt 
    103  1.4.2.3  yamt mtree_create_body() 
    104  1.4.2.3  yamt {
    105  1.4.2.3  yamt 	FLAVOR=mtree create_body
    106  1.4.2.3  yamt }
    107  1.4.2.3  yamt netbsd6_create_body() 
    108  1.4.2.3  yamt {
    109  1.4.2.3  yamt 	FLAVOR=netbsd6 create_body
    110  1.4.2.3  yamt }
    111  1.4.2.3  yamt 
    112  1.4.2.3  yamt 
    113  1.4.2.3  yamt atf_test_case mtree_check
    114  1.4.2.3  yamt atf_test_case netbsd6_check
    115  1.4.2.2  yamt check_head()
    116  1.4.2.2  yamt {
    117  1.4.2.2  yamt 	atf_set "descr" "Check a directory tree against a specfile"
    118  1.4.2.2  yamt }
    119  1.4.2.2  yamt 
    120  1.4.2.2  yamt check_body()
    121  1.4.2.2  yamt {
    122  1.4.2.2  yamt 	# we use the same directory tree and specfile as in the "create" test
    123  1.4.2.2  yamt 	create_setup
    124  1.4.2.2  yamt 
    125  1.4.2.2  yamt 	# run mtree and check output
    126  1.4.2.3  yamt 	( cd create && mtree -F ${FLAVOR}  ) <"$(atf_get_srcdir)/${FLAVOR}_d_create.out" >output \
    127  1.4.2.2  yamt 	|| atf_fail "mtree exit status $?"
    128  1.4.2.2  yamt 	h_check /dev/null output
    129  1.4.2.2  yamt }
    130  1.4.2.2  yamt 
    131  1.4.2.3  yamt mtree_check_head() 
    132  1.4.2.3  yamt {
    133  1.4.2.3  yamt 	FLAVOR=mtree check_head
    134  1.4.2.3  yamt }
    135  1.4.2.3  yamt netbsd6_check_head() 
    136  1.4.2.3  yamt {
    137  1.4.2.3  yamt 	FLAVOR=netbsd6 check_head
    138  1.4.2.3  yamt }
    139  1.4.2.3  yamt 
    140  1.4.2.3  yamt mtree_check_body() 
    141  1.4.2.3  yamt {
    142  1.4.2.3  yamt 	FLAVOR=mtree check_body
    143  1.4.2.3  yamt }
    144  1.4.2.3  yamt netbsd6_check_body() 
    145  1.4.2.3  yamt {
    146  1.4.2.3  yamt 	FLAVOR=netbsd6 check_body
    147  1.4.2.3  yamt }
    148  1.4.2.3  yamt 
    149  1.4.2.3  yamt 
    150  1.4.2.3  yamt atf_test_case mtree_convert_C
    151  1.4.2.3  yamt atf_test_case netbsd6_convert_C
    152  1.4.2.2  yamt convert_C_head()
    153  1.4.2.2  yamt {
    154  1.4.2.2  yamt 	atf_set "descr" "Convert a specfile to mtree -C format, unsorted"
    155  1.4.2.2  yamt }
    156  1.4.2.2  yamt 
    157  1.4.2.2  yamt convert_C_body()
    158  1.4.2.2  yamt {
    159  1.4.2.3  yamt 	mtree -F ${FLAVOR} -C -K all <"$(atf_get_srcdir)/d_convert.in" >output
    160  1.4.2.2  yamt 	h_check "$(atf_get_srcdir)/d_convert_C.out" output
    161  1.4.2.2  yamt }
    162  1.4.2.2  yamt 
    163  1.4.2.3  yamt mtree_convert_C_head() 
    164  1.4.2.3  yamt {
    165  1.4.2.3  yamt 	FLAVOR=mtree convert_C_head
    166  1.4.2.3  yamt }
    167  1.4.2.3  yamt netbsd6_convert_C_head() 
    168  1.4.2.3  yamt {
    169  1.4.2.3  yamt 	FLAVOR=netbsd6 convert_C_head
    170  1.4.2.3  yamt }
    171  1.4.2.3  yamt 
    172  1.4.2.3  yamt mtree_convert_C_body() 
    173  1.4.2.3  yamt {
    174  1.4.2.3  yamt 	FLAVOR=mtree convert_C_body
    175  1.4.2.3  yamt }
    176  1.4.2.3  yamt netbsd6_convert_C_body() 
    177  1.4.2.3  yamt {
    178  1.4.2.3  yamt 	FLAVOR=netbsd6 convert_C_body
    179  1.4.2.3  yamt }
    180  1.4.2.3  yamt 
    181  1.4.2.3  yamt 
    182  1.4.2.3  yamt atf_test_case mtree_convert_C_S
    183  1.4.2.3  yamt atf_test_case netbsd6_convert_C_S
    184  1.4.2.2  yamt convert_C_S_head()
    185  1.4.2.2  yamt {
    186  1.4.2.2  yamt 	atf_set "descr" "Convert a specfile to mtree -C format, sorted"
    187  1.4.2.2  yamt }
    188  1.4.2.2  yamt 
    189  1.4.2.2  yamt convert_C_S_body()
    190  1.4.2.2  yamt {
    191  1.4.2.3  yamt 	mtree -F ${FLAVOR} -C -S -K all <"$(atf_get_srcdir)/d_convert.in" >output
    192  1.4.2.2  yamt 	h_check "$(atf_get_srcdir)/d_convert_C_S.out" output
    193  1.4.2.2  yamt }
    194  1.4.2.2  yamt 
    195  1.4.2.3  yamt mtree_convert_C_S_head() 
    196  1.4.2.3  yamt {
    197  1.4.2.3  yamt 	FLAVOR=mtree convert_C_S_head
    198  1.4.2.3  yamt }
    199  1.4.2.3  yamt netbsd6_convert_C_S_head() 
    200  1.4.2.3  yamt {
    201  1.4.2.3  yamt 	FLAVOR=netbsd6 convert_C_S_head
    202  1.4.2.3  yamt }
    203  1.4.2.3  yamt 
    204  1.4.2.3  yamt mtree_convert_C_S_body() 
    205  1.4.2.3  yamt {
    206  1.4.2.3  yamt 	FLAVOR=mtree convert_C_S_body
    207  1.4.2.3  yamt }
    208  1.4.2.3  yamt netbsd6_convert_C_S_body() 
    209  1.4.2.3  yamt {
    210  1.4.2.3  yamt 	FLAVOR=netbsd6 convert_C_S_body
    211  1.4.2.3  yamt }
    212  1.4.2.3  yamt 
    213  1.4.2.3  yamt 
    214  1.4.2.3  yamt atf_test_case mtree_convert_D
    215  1.4.2.3  yamt atf_test_case netbsd6_convert_D
    216  1.4.2.2  yamt convert_D_head()
    217  1.4.2.2  yamt {
    218  1.4.2.2  yamt 	atf_set "descr" "Convert a specfile to mtree -D format, unsorted"
    219  1.4.2.2  yamt }
    220  1.4.2.2  yamt 
    221  1.4.2.2  yamt convert_D_body()
    222  1.4.2.2  yamt {
    223  1.4.2.3  yamt 	mtree -F ${FLAVOR} -D -K all <"$(atf_get_srcdir)/d_convert.in" >output
    224  1.4.2.2  yamt 	h_check "$(atf_get_srcdir)/d_convert_D.out" output
    225  1.4.2.2  yamt }
    226  1.4.2.2  yamt 
    227  1.4.2.3  yamt mtree_convert_D_head() 
    228  1.4.2.3  yamt {
    229  1.4.2.3  yamt 	FLAVOR=mtree convert_D_head
    230  1.4.2.3  yamt }
    231  1.4.2.3  yamt netbsd6_convert_D_head() 
    232  1.4.2.3  yamt {
    233  1.4.2.3  yamt 	FLAVOR=netbsd6 convert_D_head
    234  1.4.2.3  yamt }
    235  1.4.2.3  yamt 
    236  1.4.2.3  yamt mtree_convert_D_body() 
    237  1.4.2.3  yamt {
    238  1.4.2.3  yamt 	FLAVOR=mtree convert_D_body
    239  1.4.2.3  yamt }
    240  1.4.2.3  yamt netbsd6_convert_D_body() 
    241  1.4.2.3  yamt {
    242  1.4.2.3  yamt 	FLAVOR=netbsd6 convert_D_body
    243  1.4.2.3  yamt }
    244  1.4.2.3  yamt 
    245  1.4.2.3  yamt 
    246  1.4.2.3  yamt atf_test_case mtree_convert_D_S
    247  1.4.2.3  yamt atf_test_case netbsd6_convert_D_S
    248  1.4.2.2  yamt convert_D_S_head()
    249  1.4.2.2  yamt {
    250  1.4.2.2  yamt 	atf_set "descr" "Convert a specfile to mtree -D format, sorted"
    251  1.4.2.2  yamt }
    252  1.4.2.2  yamt 
    253  1.4.2.2  yamt convert_D_S_body()
    254  1.4.2.2  yamt {
    255  1.4.2.3  yamt 	mtree -F ${FLAVOR} -D -S -K all <"$(atf_get_srcdir)/d_convert.in" >output
    256  1.4.2.2  yamt 	h_check "$(atf_get_srcdir)/d_convert_D_S.out" output
    257  1.4.2.2  yamt }
    258  1.4.2.2  yamt 
    259  1.4.2.3  yamt mtree_convert_D_S_head() 
    260  1.4.2.3  yamt {
    261  1.4.2.3  yamt 	FLAVOR=mtree convert_D_S_head
    262  1.4.2.3  yamt }
    263  1.4.2.3  yamt netbsd6_convert_D_S_head() 
    264  1.4.2.3  yamt {
    265  1.4.2.3  yamt 	FLAVOR=netbsd6 convert_D_S_head
    266  1.4.2.3  yamt }
    267  1.4.2.3  yamt 
    268  1.4.2.3  yamt mtree_convert_D_S_body() 
    269  1.4.2.3  yamt {
    270  1.4.2.3  yamt 	FLAVOR=mtree convert_D_S_body
    271  1.4.2.3  yamt }
    272  1.4.2.3  yamt netbsd6_convert_D_S_body() 
    273  1.4.2.3  yamt {
    274  1.4.2.3  yamt 	FLAVOR=netbsd6 convert_D_S_body
    275  1.4.2.3  yamt }
    276  1.4.2.3  yamt 
    277  1.4.2.3  yamt 
    278  1.4.2.3  yamt atf_test_case mtree_ignore
    279  1.4.2.3  yamt atf_test_case netbs6_ignore
    280  1.4.2.2  yamt ignore_head()
    281  1.4.2.2  yamt {
    282  1.4.2.2  yamt 	atf_set "descr" "Test that -d ignores symlinks (PR bin/41061)"
    283  1.4.2.2  yamt }
    284  1.4.2.2  yamt 
    285  1.4.2.2  yamt ignore_body()
    286  1.4.2.2  yamt {
    287  1.4.2.2  yamt 	mkdir newdir
    288  1.4.2.3  yamt 	mtree -F ${FLAVOR} -c | mtree -F ${FLAVOR} -Ck uid,gid,mode > mtree.spec
    289  1.4.2.2  yamt 	ln -s newdir otherdir
    290  1.4.2.2  yamt 
    291  1.4.2.2  yamt 	# This yields "extra: otherdir" even with -d.
    292  1.4.2.2  yamt 	# (PR bin/41061)
    293  1.4.2.3  yamt 	atf_check -s ignore -o empty -e empty -x "mtree -F ${FLAVOR} -d < mtree.spec"
    294  1.4.2.2  yamt 
    295  1.4.2.2  yamt 	# Delete the symlink and re-verify.
    296  1.4.2.2  yamt 	#
    297  1.4.2.2  yamt 	rm otherdir
    298  1.4.2.3  yamt 	atf_check -s ignore -o empty -e empty -x "mtree -F ${FLAVOR} -d < mtree.spec"
    299  1.4.2.3  yamt }
    300  1.4.2.3  yamt 
    301  1.4.2.3  yamt mtree_ignore_head() 
    302  1.4.2.3  yamt {
    303  1.4.2.3  yamt 	FLAVOR=mtree ignore_head
    304  1.4.2.3  yamt }
    305  1.4.2.3  yamt netbsd6_ignore_head() 
    306  1.4.2.3  yamt {
    307  1.4.2.3  yamt 	FLAVOR=netbsd6 ignore_head
    308  1.4.2.3  yamt }
    309  1.4.2.3  yamt 
    310  1.4.2.3  yamt mtree_ignore_body() 
    311  1.4.2.3  yamt {
    312  1.4.2.3  yamt 	FLAVOR=mtree ignore_body
    313  1.4.2.3  yamt }
    314  1.4.2.3  yamt netbsd6_ignore_body() 
    315  1.4.2.3  yamt {
    316  1.4.2.3  yamt 	FLAVOR=netbsd6 ignore_body
    317  1.4.2.2  yamt }
    318  1.4.2.2  yamt 
    319  1.4.2.3  yamt 
    320  1.4.2.3  yamt atf_test_case mtree_merge
    321  1.4.2.3  yamt atf_test_case netbsd6_merge
    322  1.4.2.2  yamt merge_head()
    323  1.4.2.2  yamt {
    324  1.4.2.2  yamt 	atf_set "descr" "Merge records of different type"
    325  1.4.2.2  yamt }
    326  1.4.2.2  yamt 
    327  1.4.2.2  yamt merge_body()
    328  1.4.2.2  yamt {
    329  1.4.2.3  yamt 	mtree -F ${FLAVOR} -C -M -K all <"$(atf_get_srcdir)/d_merge.in" >output
    330  1.4.2.2  yamt 	h_check "$(atf_get_srcdir)/d_merge_C_M.out" output
    331  1.4.2.2  yamt 	# same again, with sorting
    332  1.4.2.3  yamt 	mtree -F ${FLAVOR} -C -M -S -K all <"$(atf_get_srcdir)/d_merge.in" >output
    333  1.4.2.2  yamt 	h_check "$(atf_get_srcdir)/d_merge_C_M_S.out" output
    334  1.4.2.2  yamt }
    335  1.4.2.2  yamt 
    336  1.4.2.3  yamt mtree_merge_head() 
    337  1.4.2.3  yamt {
    338  1.4.2.3  yamt 	FLAVOR=mtree merge_head
    339  1.4.2.3  yamt }
    340  1.4.2.3  yamt netbsd6_merge_head() 
    341  1.4.2.3  yamt {
    342  1.4.2.3  yamt 	FLAVOR=netbsd6 merge_head
    343  1.4.2.3  yamt }
    344  1.4.2.3  yamt 
    345  1.4.2.3  yamt mtree_merge_body() 
    346  1.4.2.3  yamt {
    347  1.4.2.3  yamt 	FLAVOR=mtree merge_body
    348  1.4.2.3  yamt }
    349  1.4.2.3  yamt netbsd6_merge_body() 
    350  1.4.2.3  yamt {
    351  1.4.2.3  yamt 	FLAVOR=netbsd6 merge_body
    352  1.4.2.3  yamt }
    353  1.4.2.3  yamt 
    354  1.4.2.3  yamt 
    355  1.4.2.3  yamt atf_test_case mtree_nonemptydir
    356  1.4.2.3  yamt atf_test_case netbsd6_nonemptydir
    357  1.4.2.2  yamt nonemptydir_head()
    358  1.4.2.2  yamt {
    359  1.4.2.2  yamt 	atf_set "descr" "Test that new non-empty " \
    360  1.4.2.2  yamt 			"directories are recorded (PR bin/25693)"
    361  1.4.2.2  yamt }
    362  1.4.2.2  yamt 
    363  1.4.2.2  yamt nonemptydir_body()
    364  1.4.2.2  yamt {
    365  1.4.2.2  yamt 	mkdir testdir
    366  1.4.2.2  yamt 	cd testdir
    367  1.4.2.2  yamt 
    368  1.4.2.3  yamt 	mtree -F ${FLAVOR} -c > mtree.spec
    369  1.4.2.2  yamt 
    370  1.4.2.2  yamt 	if [ ! -f mtree.spec ]; then
    371  1.4.2.2  yamt 		atf_fail "mtree failed"
    372  1.4.2.2  yamt 	fi
    373  1.4.2.2  yamt 
    374  1.4.2.2  yamt 	touch bar
    375  1.4.2.3  yamt 	atf_check -s ignore -o save:output -x "mtree -F ${FLAVOR} -f mtree.spec"
    376  1.4.2.2  yamt 
    377  1.4.2.2  yamt 	if [ ! -n "$(egrep "extra: bar" output)" ]; then
    378  1.4.2.2  yamt 		atf_fail "mtree did not record changes (PR bin/25693)"
    379  1.4.2.2  yamt 	fi
    380  1.4.2.2  yamt }
    381  1.4.2.2  yamt 
    382  1.4.2.3  yamt mtree_nonemptydir_head() 
    383  1.4.2.3  yamt {
    384  1.4.2.3  yamt 	FLAVOR=mtree nonemptydir_head
    385  1.4.2.3  yamt }
    386  1.4.2.3  yamt netbsd6_nonemptydir_head() 
    387  1.4.2.3  yamt {
    388  1.4.2.3  yamt 	FLAVOR=netbsd6 nonemptydir_head
    389  1.4.2.3  yamt }
    390  1.4.2.3  yamt 
    391  1.4.2.3  yamt mtree_nonemptydir_body() 
    392  1.4.2.3  yamt {
    393  1.4.2.3  yamt 	FLAVOR=mtree nonemptydir_body
    394  1.4.2.3  yamt }
    395  1.4.2.3  yamt netbsd6_nonemptydir_body() 
    396  1.4.2.3  yamt {
    397  1.4.2.3  yamt 	FLAVOR=netbsd6 nonemptydir_body
    398  1.4.2.3  yamt }
    399  1.4.2.3  yamt 
    400  1.4.2.3  yamt 
    401  1.4.2.2  yamt atf_init_test_cases()
    402  1.4.2.2  yamt {
    403  1.4.2.3  yamt 	atf_add_test_case mtree_create
    404  1.4.2.3  yamt 	atf_add_test_case mtree_check
    405  1.4.2.3  yamt 	atf_add_test_case mtree_convert_C
    406  1.4.2.3  yamt 	atf_add_test_case mtree_convert_C_S
    407  1.4.2.3  yamt 	atf_add_test_case mtree_convert_D
    408  1.4.2.3  yamt 	atf_add_test_case mtree_convert_D_S
    409  1.4.2.3  yamt 	atf_add_test_case mtree_ignore
    410  1.4.2.3  yamt 	atf_add_test_case mtree_merge
    411  1.4.2.3  yamt 	atf_add_test_case mtree_nonemptydir
    412  1.4.2.3  yamt 
    413  1.4.2.3  yamt 	atf_add_test_case netbsd6_create
    414  1.4.2.3  yamt 	atf_add_test_case netbsd6_check
    415  1.4.2.3  yamt 	atf_add_test_case netbsd6_convert_C
    416  1.4.2.3  yamt 	atf_add_test_case netbsd6_convert_C_S
    417  1.4.2.3  yamt 	atf_add_test_case netbsd6_convert_D
    418  1.4.2.3  yamt 	atf_add_test_case netbsd6_convert_D_S
    419  1.4.2.3  yamt 	atf_add_test_case netbsd6_ignore
    420  1.4.2.3  yamt 	atf_add_test_case netbsd6_merge
    421  1.4.2.3  yamt 	atf_add_test_case netbsd6_nonemptydir
    422  1.4.2.2  yamt }
    423