RE: svn commit: r359514 - head/tools/test/bsnmp

2020-04-02 Thread Hartmut.Brandt
The other tools in tools/test also seem to be built in ad-hoc ways.

harti

-Original Message-
From: Enji Cooper [mailto:yaneurab...@gmail.com] 
Sent: Wednesday, April 1, 2020 7:03 PM
To: Hartmut Brandt
Cc: src-committ...@freebsd.org; svn-src-...@freebsd.org; 
svn-src-head@freebsd.org
Subject: Re: svn commit: r359514 - head/tools/test/bsnmp


> On Apr 1, 2020, at 08:56, Hartmut Brandt  wrote:
> 
> Author: harti
> Date: Wed Apr  1 15:39:02 2020
> New Revision: 359514
> URL: https://svnweb.freebsd.org/changeset/base/359514
> 
> Log:
>  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'.

Why was this integrated this way?
-Enji
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r359514 - head/tools/test/bsnmp

2020-04-01 Thread Enji Cooper

> On Apr 1, 2020, at 08:56, Hartmut Brandt  wrote:
> 
> Author: harti
> Date: Wed Apr  1 15:39:02 2020
> New Revision: 359514
> URL: https://svnweb.freebsd.org/changeset/base/359514
> 
> Log:
>  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'.

Why was this integrated this way?
-Enji
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r359514 - head/tools/test/bsnmp

2020-04-01 Thread Hartmut Brandt
Author: harti
Date: Wed Apr  1 15:39:02 2020
New Revision: 359514
URL: https://svnweb.freebsd.org/changeset/base/359514

Log:
  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'.

Added:
  head/tools/test/bsnmp/
  head/tools/test/bsnmp/Makefile   (contents, props changed)

Added: head/tools/test/bsnmp/Makefile
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/tools/test/bsnmp/Makefile  Wed Apr  1 15:39:02 2020
(r359514)
@@ -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
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"