summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-01-26 11:49:06 +0000
committerngie <ngie@FreeBSD.org>2015-01-26 11:49:06 +0000
commit15c31aa79c31aeb2859e80efbfe4236b795f6936 (patch)
treea95dc8a2c433d787db4fa089e6b061ab6770aefe /bin
parentb45c95ab3d00e936a65f59496b980ccb8ff0fc86 (diff)
downloadFreeBSD-src-15c31aa79c31aeb2859e80efbfe4236b795f6936.zip
FreeBSD-src-15c31aa79c31aeb2859e80efbfe4236b795f6936.tar.gz
MFC r277358:
r277358 (by ngie): Integrate contrib/netbsd-tests/bin/expr into the build/kyua as bin/expr/tests Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'bin')
-rw-r--r--bin/expr/Makefile6
-rw-r--r--bin/expr/tests/Makefile16
2 files changed, 22 insertions, 0 deletions
diff --git a/bin/expr/Makefile b/bin/expr/Makefile
index b86cf66..23f768b 100644
--- a/bin/expr/Makefile
+++ b/bin/expr/Makefile
@@ -1,9 +1,15 @@
# $FreeBSD$
+.include <bsd.own.mk>
+
PROG= expr
SRCS= expr.y
YFLAGS=
NO_WMISSING_VARIABLE_DECLARATIONS=
+.if ${MK_TESTS} != "no"
+SUBDIR+= tests
+.endif
+
.include <bsd.prog.mk>
diff --git a/bin/expr/tests/Makefile b/bin/expr/tests/Makefile
new file mode 100644
index 0000000..80c130c
--- /dev/null
+++ b/bin/expr/tests/Makefile
@@ -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>
OpenPOWER on IntegriCloud