aboutsummaryrefslogtreecommitdiff
path: root/tools/test/bsnmp
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2020-04-01 15:39:02 +0000
committerHartmut Brandt <harti@FreeBSD.org>2020-04-01 15:39:02 +0000
commita82d25d731de24e53839cf4eec084023b70b54b8 (patch)
tree279975cb398ac55afafc2a1d0e5d76fc3d983334 /tools/test/bsnmp
parent51ae128421c56a5f47d8ee86fba4671cd9b7db3e (diff)
downloadsrc-a82d25d731de24e53839cf4eec084023b70b54b8.tar.gz
src-a82d25d731de24e53839cf4eec084023b70b54b8.zip
Add a makefile to build and run the tests for the bsnmp library.
This is not automatically built or run but must explicitly be built with 'make' and run with 'make run'.
Notes
Notes: svn path=/head/; revision=359514
Diffstat (limited to 'tools/test/bsnmp')
-rw-r--r--tools/test/bsnmp/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/test/bsnmp/Makefile b/tools/test/bsnmp/Makefile
new file mode 100644
index 000000000000..52f67be70164
--- /dev/null
+++ b/tools/test/bsnmp/Makefile
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+CONTRIB=${SRCTOP}/contrib/bsnmp
+.PATH: ${CONTRIB}/tests
+
+PROG_CXX=ctest
+SRCS= main.cc asn1.cc snmp_parse_server.cc
+CFLAGS += -I/${CONTRIB}/lib
+CXXFLAGS+= -std=c++2a
+LIBADD= bsnmp
+
+CFLAGS += -DBOGUS_CVE_2019_5610_FIX
+MK_MAN= no
+
+.include <bsd.prog.mk>
+
+
+run:
+ ${.OBJDIR}/ctest