freebsd-nq/usr.bin/gh-bc/tests/Makefile
Stefan Eßer 44d4804d19 usr.bin/ghä-bc, contrib/bc: update to version 5.0.0
Merge commit 2f57ecae4b

This is a new major release with a number of changes and extensions:

- Limited the number of temporary numbers and made the space for them
  static so that allocating more space for them cannot fail.
- Allowed integers with non-zero scale to be used with power, places,
  and shift operators.
- Added greatest common divisor and least common multiple to lib2.bc.
- Made bc and dc UTF-8 capable.
- Added the ability for users to have bc and dc quit on SIGINT.
- Added the ability for users to disable prompt and TTY mode by
  environment variables.
- Added the ability for users to redefine keywords.
- Added dc's modular exponentiation and divmod to bc.
- Added the ability to assign strings to variables and array elements
  and pass them to functions in bc.
- Added dc's asciify command and stream printing to bc.
- Added bitwise and, or, xor, left shift, right shift, reverse,
  left rotate, right rotate, and mod functions to lib2.bc.
- Added the functions s2u(x) and s2un(x,n), to lib2.bc.

MFC after:	1 week
2021-08-13 11:28:06 +02:00

68 lines
1.7 KiB
Makefile

# $FreeBSD$
.include <bsd.own.mk>
PACKAGE= tests
TEST_DIR= ${SRCTOP}/contrib/bc
TESTSDIR= ${TESTSBASE}/usr.bin/gh-bc
.PATH: ${SRCTOP}/tests
FILESGROUPS+= FILESf
FILESfPACKAGE= ${PACKAGE}
FILESfDIR= ${TESTSDIR}/scripts
FILESf= ${TEST_DIR}/scripts/functions.sh
FILESfMODE= 0755
FILESGROUPS+= FILEStests
FILEStestsPACKAGE= ${PACKAGE}
FILEStestsDIR= ${TESTSDIR}/tests
FILEStests!= echo ${TEST_DIR}/tests/*.py ${TEST_DIR}/tests/*.sh ${TEST_DIR}/tests/*.txt
FILEStestsMODE= 0755
FILESGROUPS+= FILESbc
FILESbcPACKAGE= ${PACKAGE}
FILESbcDIR= ${TESTSDIR}/tests/bc
FILESbc!= echo ${TEST_DIR}/tests/bc/*.*
FILESGROUPS+= FILESbc_errors
FILESbc_errorsPACKAGE= ${PACKAGE}
FILESbc_errorsDIR= ${TESTSDIR}/tests/bc/errors
FILESbc_errors!= echo ${TEST_DIR}/tests/bc/errors/*.*
FILESGROUPS+= FILESbc_scripts
FILESbc_scriptsPACKAGE= ${PACKAGE}
FILESbc_scriptsDIR= ${TESTSDIR}/tests/bc/scripts
FILESbc_scripts!= echo ${TEST_DIR}/tests/bc/scripts/*.*
FILESbc_scriptsMODE= 0755
FILESGROUPS+= FILESdc
FILESdcPACKAGE= ${PACKAGE}
FILESdcDIR= ${TESTSDIR}/tests/dc
FILESdc!= echo ${TEST_DIR}/tests/dc/*.*
FILESGROUPS+= FILESdc_errors
FILESdc_errorsPACKAGE= ${PACKAGE}
FILESdc_errorsDIR= ${TESTSDIR}/tests/dc/errors
FILESdc_errors!= echo ${TEST_DIR}/tests/dc/errors/*.*
FILESGROUPS+= FILESdc_scripts
FILESdc_scriptsPACKAGE= ${PACKAGE}
FILESdc_scriptsDIR= ${TESTSDIR}/tests/dc/scripts
FILESdc_scripts!= echo ${TEST_DIR}/tests/dc/scripts/*.*
FILESdc_scriptsMODE= 0755
PLAIN_TESTS_SH= bc_tests dc_tests
bc_tests.sh:
echo "#!/bin/sh" > ${.TARGET}
echo "env LANG=C ${TESTSDIR}/tests/all.sh bc 1 1 0 0 bc" >> ${.TARGET}
dc_tests.sh:
echo "#!/bin/sh" > ${.TARGET}
echo "env LANG=C ${TESTSDIR}/tests/all.sh dc 1 1 0 0 dc" >> ${.TARGET}
.include <bsd.test.mk>