xref: /freebsd/usr.sbin/nmtree/tests/Makefile (revision b2d48be1bc7df45ddd13b143a160d0acb5a383c5)
156695221SEnji Cooper# $FreeBSD$
256695221SEnji Cooper
3*b2d48be1SEnji CooperTESTSRC=	${SRCTOP}/contrib/netbsd-tests/usr.sbin/mtree
456695221SEnji Cooper.PATH: ${TESTSRC}
556695221SEnji Cooper
656695221SEnji CooperATF_TESTS_SH=	nmtree_test
756695221SEnji CooperATF_TESTS_SH_SRC_nmtree_test=	t_mtree.sh
856695221SEnji Cooper
956695221SEnji CooperFILESDIR=	${TESTSDIR}
1056695221SEnji Cooper
1156695221SEnji Cooper# NOTE: the output from FreeBSD's nmtree displays sha256digest instead of
1256695221SEnji Cooper# sha256; we need to mangle the specfiles to reflect this.
1356695221SEnji Cooper.for f in mtree_d_create.out netbsd6_d_create.out
1456695221SEnji CooperCLEANFILES+=	$f $f.tmp
1556695221SEnji CooperFILES+=		$f
1656695221SEnji Cooper$f: ${TESTSRC}/$f
1756695221SEnji Cooper	sed -e 's/sha256/sha256digest/g' < ${.ALLSRC} > ${.TARGET}.tmp
1856695221SEnji Cooper	mv ${.TARGET}.tmp ${.TARGET}
1956695221SEnji Cooper.endfor
2056695221SEnji Cooper
2156695221SEnji CooperFILES+=		d_convert.in
2256695221SEnji CooperFILES+=		d_convert_C.out
2356695221SEnji CooperFILES+=		d_convert_C_S.out
2456695221SEnji CooperFILES+=		d_convert_D.out
2556695221SEnji CooperFILES+=		d_convert_D_S.out
2656695221SEnji CooperFILES+=		d_merge.in
2756695221SEnji CooperFILES+=		d_merge_C_M.out
2856695221SEnji CooperFILES+=		d_merge_C_M_S.out
2956695221SEnji Cooper
3056695221SEnji Cooper.include <bsd.test.mk>
31