xref: /freebsd/usr.sbin/nmtree/tests/Makefile (revision 56695221dd0c17cdfcb705a3fcaddaad0e07c872)
1*56695221SEnji Cooper# $FreeBSD$
2*56695221SEnji Cooper
3*56695221SEnji CooperTESTSRC=	${.CURDIR}/../../../contrib/netbsd-tests/usr.sbin/mtree
4*56695221SEnji Cooper.PATH: ${TESTSRC}
5*56695221SEnji Cooper
6*56695221SEnji CooperTESTSDIR=	${TESTSBASE}/usr.sbin/nmtree
7*56695221SEnji Cooper
8*56695221SEnji CooperATF_TESTS_SH=	nmtree_test
9*56695221SEnji CooperATF_TESTS_SH_SRC_nmtree_test=	t_mtree.sh
10*56695221SEnji Cooper
11*56695221SEnji CooperFILESDIR=	${TESTSDIR}
12*56695221SEnji Cooper
13*56695221SEnji Cooper# NOTE: the output from FreeBSD's nmtree displays sha256digest instead of
14*56695221SEnji Cooper# sha256; we need to mangle the specfiles to reflect this.
15*56695221SEnji Cooper.for f in mtree_d_create.out netbsd6_d_create.out
16*56695221SEnji CooperCLEANFILES+=	$f $f.tmp
17*56695221SEnji CooperFILES+=		$f
18*56695221SEnji Cooper$f: ${TESTSRC}/$f
19*56695221SEnji Cooper	sed -e 's/sha256/sha256digest/g' < ${.ALLSRC} > ${.TARGET}.tmp
20*56695221SEnji Cooper	mv ${.TARGET}.tmp ${.TARGET}
21*56695221SEnji Cooper.endfor
22*56695221SEnji Cooper
23*56695221SEnji CooperFILES+=		d_convert.in
24*56695221SEnji CooperFILES+=		d_convert_C.out
25*56695221SEnji CooperFILES+=		d_convert_C_S.out
26*56695221SEnji CooperFILES+=		d_convert_D.out
27*56695221SEnji CooperFILES+=		d_convert_D_S.out
28*56695221SEnji CooperFILES+=		d_merge.in
29*56695221SEnji CooperFILES+=		d_merge_C_M.out
30*56695221SEnji CooperFILES+=		d_merge_C_M_S.out
31*56695221SEnji Cooper
32*56695221SEnji Cooper.include <bsd.test.mk>
33