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