Integrate contrib/netbsd-tests/bin/expr into the build/kyua as bin/expr/tests

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
Enji Cooper 2015-01-19 06:13:07 +00:00
parent 2e5b60079b
commit e15138e574
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277358
3 changed files with 24 additions and 0 deletions

View File

@ -1,9 +1,15 @@
# $FreeBSD$
.include <src.opts.mk>
PROG= expr
SRCS= expr.y
YFLAGS=
NO_WMISSING_VARIABLE_DECLARATIONS=
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
.include <bsd.prog.mk>

16
bin/expr/tests/Makefile Normal file
View File

@ -0,0 +1,16 @@
# $FreeBSD$
OBJTOP= ${.OBJDIR}/../../..
SRCTOP= ${.CURDIR}/../../..
TESTSRC= ${SRCTOP}/contrib/netbsd-tests/bin/expr
TESTSDIR= ${TESTSBASE}/bin/expr
NETBSD_ATF_TESTS_SH= expr_test
ATF_TESTS_SH_SED_expr_test+= -e 's/eval expr/eval expr --/g'
ATF_TESTS_SH_SED_expr_test+= -e 's/"expr: integer overflow or underflow occurred for operation.*"/"expr: overflow"/g'
.include <netbsd-tests.test.mk>
.include <bsd.test.mk>

View File

@ -12,6 +12,8 @@
..
date
..
expr
..
mv
..
pax