svn commit: r321113 - in stable/10: etc/mtree lib/libsbuf lib/libsbuf/tests
Ngie Cooper
ngie at FreeBSD.org
Tue Jul 18 08:23:23 UTC 2017
Author: ngie
Date: Tue Jul 18 08:23:21 2017
New Revision: 321113
URL: https://svnweb.freebsd.org/changeset/base/321113
Log:
MFC r316557:
sbuf(3): add some basic functional tests for the library
Areas not covered still [positive functionality wise] are:
- sbuf_{clear,get,set}_flags
- sbuf_new (in particular, with fixed buffers, etc).
Some basic negative testing has been added, but more will be added in the
future.
This work was in part to validate work done by cem in r288223, and ian
before that.
Added:
stable/10/lib/libsbuf/tests/
- copied from r316557, head/lib/libsbuf/tests/
Modified:
stable/10/etc/mtree/BSD.tests.dist
stable/10/lib/libsbuf/Makefile
stable/10/lib/libsbuf/tests/Makefile
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/etc/mtree/BSD.tests.dist
==============================================================================
--- stable/10/etc/mtree/BSD.tests.dist Tue Jul 18 08:15:02 2017 (r321112)
+++ stable/10/etc/mtree/BSD.tests.dist Tue Jul 18 08:23:21 2017 (r321113)
@@ -324,6 +324,8 @@
..
librt
..
+ libsbuf
+ ..
libthr
dlopen
..
Modified: stable/10/lib/libsbuf/Makefile
==============================================================================
--- stable/10/lib/libsbuf/Makefile Tue Jul 18 08:15:02 2017 (r321112)
+++ stable/10/lib/libsbuf/Makefile Tue Jul 18 08:23:21 2017 (r321113)
@@ -9,6 +9,12 @@ SHLIB_MAJOR = 6
SYMBOL_MAPS= ${.CURDIR}/Symbol.map
VERSION_DEF= ${.CURDIR}/Version.def
+.include <bsd.own.mk>
+
.PATH: ${SRCTOP}/sys/kern
+
+.if ${MK_TESTS} != "no"
+SUBDIR+= tests
+.endif
.include <bsd.lib.mk>
Modified: stable/10/lib/libsbuf/tests/Makefile
==============================================================================
--- head/lib/libsbuf/tests/Makefile Thu Apr 6 05:29:28 2017 (r316557)
+++ stable/10/lib/libsbuf/tests/Makefile Tue Jul 18 08:23:21 2017 (r321113)
@@ -4,7 +4,7 @@ ATF_TESTS_C+= sbuf_core_test
ATF_TESTS_C+= sbuf_stdio_test
ATF_TESTS_C+= sbuf_string_test
-LIBADD+= sbuf util
+LDADD+= -lsbuf -lutil
WARNS?= 6
More information about the svn-src-all
mailing list