xref: /freebsd/usr.bin/gh-bc/tests/Makefile (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
1# $FreeBSD$
2
3.include <bsd.own.mk>
4
5PACKAGE=		tests
6
7TEST_DIR=		${SRCTOP}/contrib/bc
8
9TESTSDIR=		${TESTSBASE}/usr.bin/gh-bc
10
11.PATH:			${SRCTOP}/tests
12
13FILESGROUPS+=		FILESf
14FILESfPACKAGE=		${PACKAGE}
15FILESfDIR=		${TESTSDIR}/scripts
16FILESf=			${TEST_DIR}/scripts/functions.sh
17FILESfMODE=		0755
18
19FILESGROUPS+=		FILEStests
20FILEStestsPACKAGE=	${PACKAGE}
21FILEStestsDIR=		${TESTSDIR}/tests
22FILEStests!=		echo ${TEST_DIR}/tests/*.py ${TEST_DIR}/tests/*.sh ${TEST_DIR}/tests/*.txt
23FILEStestsMODE=		0755
24
25FILESGROUPS+=		FILESbc
26FILESbcPACKAGE=		${PACKAGE}
27FILESbcDIR=		${TESTSDIR}/tests/bc
28FILESbc!=		echo ${TEST_DIR}/tests/bc/*.*
29
30FILESGROUPS+=		FILESbc_errors
31FILESbc_errorsPACKAGE=	${PACKAGE}
32FILESbc_errorsDIR=	${TESTSDIR}/tests/bc/errors
33FILESbc_errors!=	echo ${TEST_DIR}/tests/bc/errors/*.*
34
35FILESGROUPS+=		FILESbc_scripts
36FILESbc_scriptsPACKAGE=	${PACKAGE}
37FILESbc_scriptsDIR=	${TESTSDIR}/tests/bc/scripts
38FILESbc_scripts!=	echo ${TEST_DIR}/tests/bc/scripts/*.*
39FILESbc_scriptsMODE=	0755
40
41FILESGROUPS+=		FILESdc
42FILESdcPACKAGE=		${PACKAGE}
43FILESdcDIR=		${TESTSDIR}/tests/dc
44FILESdc!=		echo ${TEST_DIR}/tests/dc/*.*
45
46FILESGROUPS+=		FILESdc_errors
47FILESdc_errorsPACKAGE=	${PACKAGE}
48FILESdc_errorsDIR=	${TESTSDIR}/tests/dc/errors
49FILESdc_errors!=	echo ${TEST_DIR}/tests/dc/errors/*.*
50
51FILESGROUPS+=		FILESdc_scripts
52FILESdc_scriptsPACKAGE=	${PACKAGE}
53FILESdc_scriptsDIR=	${TESTSDIR}/tests/dc/scripts
54FILESdc_scripts!=	echo ${TEST_DIR}/tests/dc/scripts/*.*
55FILESdc_scriptsMODE=	0755
56
57PLAIN_TESTS_SH=		bc_tests dc_tests
58
59bc_tests.sh:
60	echo "#!/bin/sh" > ${.TARGET}
61	echo "env LANG=C ${TESTSDIR}/tests/all.sh bc 1 1 0 0 bc" >> ${.TARGET}
62
63dc_tests.sh:
64	echo "#!/bin/sh" > ${.TARGET}
65	echo "env LANG=C ${TESTSDIR}/tests/all.sh dc 1 1 0 0 dc" >> ${.TARGET}
66
67.include <bsd.test.mk>
68