libexecinfo: Integrate NetBSD test into FreeBSD

This commit is contained in:
cem 2019-10-27 05:32:08 +00:00
parent eff1af0eab
commit cb5233f4fa
3 changed files with 23 additions and 2 deletions

View File

@ -384,6 +384,8 @@
..
libdevdctl
..
libexecinfo
..
libkvm
..
libmp

View File

@ -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
@ -21,4 +22,7 @@ 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>

View File

@ -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>