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