Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2019 05:32:08 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354126 - in head: etc/mtree lib/libexecinfo lib/libexecinfo/tests
Message-ID:  <201910270532.x9R5W8GS083551@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Sun Oct 27 05:32:08 2019
New Revision: 354126
URL: https://svnweb.freebsd.org/changeset/base/354126

Log:
  libexecinfo: Integrate NetBSD test into FreeBSD

Added:
  head/lib/libexecinfo/tests/
  head/lib/libexecinfo/tests/Makefile   (contents, props changed)
Modified:
  head/etc/mtree/BSD.tests.dist
  head/lib/libexecinfo/Makefile

Modified: head/etc/mtree/BSD.tests.dist
==============================================================================
--- head/etc/mtree/BSD.tests.dist	Sun Oct 27 04:10:49 2019	(r354125)
+++ head/etc/mtree/BSD.tests.dist	Sun Oct 27 05:32:08 2019	(r354126)
@@ -384,6 +384,8 @@
         ..
         libdevdctl
         ..
+        libexecinfo
+        ..
         libkvm
         ..
         libmp

Modified: head/lib/libexecinfo/Makefile
==============================================================================
--- head/lib/libexecinfo/Makefile	Sun Oct 27 04:10:49 2019	(r354125)
+++ head/lib/libexecinfo/Makefile	Sun Oct 27 05:32:08 2019	(r354126)
@@ -1,12 +1,13 @@
 # $FreeBSD$
 
 PACKAGE=lib${LIB}
-LIBEXECINFO=	${SRCTOP}/contrib/libexecinfo
 
+.include <src.opts.mk>
+
 LIB=		execinfo
 SHLIB_MAJOR=	1
 
-.PATH:		${LIBEXECINFO}
+.PATH:		${SRCTOP}/contrib/libexecinfo
 
 INCS=		execinfo.h
 SRCS=		backtrace.c symtab.c unwind.c
@@ -20,5 +21,8 @@ MLINKS+=	backtrace.3 backtrace_symbols.3
 MLINKS+=	backtrace.3 backtrace_symbols_fmt.3
 MLINKS+=	backtrace.3 backtrace_symbols_fd.3
 MLINKS+=	backtrace.3 backtrace_symbols_fd_fmt.3
+
+HAS_TESTS=
+SUBDIR.${MK_TESTS}+= tests
 
 .include <bsd.lib.mk>

Added: head/lib/libexecinfo/tests/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lib/libexecinfo/tests/Makefile	Sun Oct 27 05:32:08 2019	(r354126)
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+PACKAGE=	tests
+
+TESTSRC=	${SRCTOP}/contrib/netbsd-tests/lib/libexecinfo
+
+.include <bsd.own.mk>
+
+NETBSD_ATF_TESTS_C+=	backtrace_test
+
+LIBADD.backtrace_test+=	execinfo
+
+.include <netbsd-tests.test.mk>
+
+.include <bsd.test.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910270532.x9R5W8GS083551>