xref: /freebsd/usr.sbin/nmtree/tests/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
143faedc1SGlen BarberPACKAGE=	tests
2*430f7286SEnji Cooper
3b2d48be1SEnji CooperTESTSRC=	${SRCTOP}/contrib/netbsd-tests/usr.sbin/mtree
443faedc1SGlen Barber
556695221SEnji Cooper.PATH: ${TESTSRC}
656695221SEnji Cooper
756695221SEnji CooperATF_TESTS_SH=	nmtree_test
856695221SEnji CooperATF_TESTS_SH_SRC_nmtree_test=	t_mtree.sh
956695221SEnji Cooper
1056695221SEnji Cooper# NOTE: the output from FreeBSD's nmtree displays sha256digest instead of
1156695221SEnji Cooper# sha256; we need to mangle the specfiles to reflect this.
1256695221SEnji Cooper.for f in mtree_d_create.out netbsd6_d_create.out
1356695221SEnji CooperCLEANFILES+=	$f $f.tmp
14*430f7286SEnji Cooper${PACKAGE}FILES+=		$f
1556695221SEnji Cooper$f: ${TESTSRC}/$f
1656695221SEnji Cooper	sed -e 's/sha256/sha256digest/g' < ${.ALLSRC} > ${.TARGET}.tmp
1756695221SEnji Cooper	mv ${.TARGET}.tmp ${.TARGET}
1856695221SEnji Cooper.endfor
1956695221SEnji Cooper
20*430f7286SEnji Cooper${PACKAGE}FILES+=		d_convert.in
21*430f7286SEnji Cooper${PACKAGE}FILES+=		d_convert_C.out
22*430f7286SEnji Cooper${PACKAGE}FILES+=		d_convert_C_S.out
23*430f7286SEnji Cooper${PACKAGE}FILES+=		d_convert_D.out
24*430f7286SEnji Cooper${PACKAGE}FILES+=		d_convert_D_S.out
25*430f7286SEnji Cooper${PACKAGE}FILES+=		d_merge.in
26*430f7286SEnji Cooper${PACKAGE}FILES+=		d_merge_C_M.out
27*430f7286SEnji Cooper${PACKAGE}FILES+=		d_merge_C_M_S.out
2856695221SEnji Cooper
2956695221SEnji Cooper.include <bsd.test.mk>
30