10c0e286se# $FreeBSD$
20c0e286se
30c0e286se.include <bsd.own.mk>
40c0e286se
50c0e286sePACKAGE=		tests
60c0e286se
70c0e286seTEST_DIR=		${SRCTOP}/contrib/bc
80c0e286se
90c0e286seTESTSDIR=		${TESTSBASE}/usr.bin/gh-bc
100c0e286se
110c0e286se.PATH:			${SRCTOP}/tests
120c0e286se
130c0e286seFILESGROUPS+=		FILESf
140c0e286seFILESfPACKAGE=		${PACKAGE}
150c0e286seFILESfDIR=		${TESTSDIR}
160c0e286seFILESf=			${TEST_DIR}/functions.sh
170c0e286seFILESfMODE=		0755
180c0e286se
190c0e286seFILESGROUPS+=		FILEStests
200c0e286seFILEStestsPACKAGE=	${PACKAGE}
210c0e286seFILEStestsDIR=		${TESTSDIR}/tests
220c0e286seFILEStests!=		echo ${TEST_DIR}/tests/*.py ${TEST_DIR}/tests/*.sh ${TEST_DIR}/tests/*.txt
230c0e286seFILEStestsMODE=		0755
240c0e286se
250c0e286seFILESGROUPS+=		FILESbc
260c0e286seFILESbcPACKAGE=		${PACKAGE}
270c0e286seFILESbcDIR=		${TESTSDIR}/tests/bc
280c0e286seFILESbc!=		echo ${TEST_DIR}/tests/bc/*.*
290c0e286se
300c0e286seFILESGROUPS+=		FILESbc_errors
310c0e286seFILESbc_errorsPACKAGE=	${PACKAGE}
320c0e286seFILESbc_errorsDIR=	${TESTSDIR}/tests/bc/errors
330c0e286seFILESbc_errors!=	echo ${TEST_DIR}/tests/bc/errors/*.*
340c0e286se
350c0e286seFILESGROUPS+=		FILESbc_scripts
360c0e286seFILESbc_scriptsPACKAGE=	${PACKAGE}
370c0e286seFILESbc_scriptsDIR=	${TESTSDIR}/tests/bc/scripts
380c0e286seFILESbc_scripts!=	echo ${TEST_DIR}/tests/bc/scripts/*.*
390c0e286seFILESbc_scriptsMODE=	0755
400c0e286se
410c0e286seFILESGROUPS+=		FILESdc
420c0e286seFILESdcPACKAGE=		${PACKAGE}
430c0e286seFILESdcDIR=		${TESTSDIR}/tests/dc
440c0e286seFILESdc!=		echo ${TEST_DIR}/tests/dc/*.*
450c0e286se
460c0e286seFILESGROUPS+=		FILESdc_errors
470c0e286seFILESdc_errorsPACKAGE=	${PACKAGE}
480c0e286seFILESdc_errorsDIR=	${TESTSDIR}/tests/dc/errors
490c0e286seFILESdc_errors!=	echo ${TEST_DIR}/tests/dc/errors/*.*
500c0e286se
510c0e286seFILESGROUPS+=		FILESdc_scripts
520c0e286seFILESdc_scriptsPACKAGE=	${PACKAGE}
530c0e286seFILESdc_scriptsDIR=	${TESTSDIR}/tests/dc/scripts
540c0e286seFILESdc_scripts!=	echo ${TEST_DIR}/tests/dc/scripts/*.*
550c0e286seFILESdc_scriptsMODE=	0755
560c0e286se
570c0e286sePLAIN_TESTS_SH=		bc_tests dc_tests
580c0e286se
590c0e286sebc_tests.sh:
600c0e286se	echo "#!/bin/sh" > ${.TARGET}
610c0e286se	echo "env LANG=C ${TESTSDIR}/tests/all.sh bc 1 1 0 0 bc" >> ${.TARGET}
620c0e286se
630c0e286sedc_tests.sh:
640c0e286se	echo "#!/bin/sh" > ${.TARGET}
650c0e286se	echo "env LANG=C ${TESTSDIR}/tests/all.sh dc 1 1 0 0 dc" >> ${.TARGET}
660c0e286se
670c0e286se.include <bsd.test.mk>
68