From a82d25d731de24e53839cf4eec084023b70b54b8 Mon Sep 17 00:00:00 2001 From: Hartmut Brandt Date: Wed, 1 Apr 2020 15:39:02 +0000 Subject: [PATCH] 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'. --- tools/test/bsnmp/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tools/test/bsnmp/Makefile 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 + + +run: + ${.OBJDIR}/ctest