summaryrefslogtreecommitdiffstats
path: root/lib/libc/tests/string
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-11-04 00:56:25 +0000
committerngie <ngie@FreeBSD.org>2014-11-04 00:56:25 +0000
commitcddd13d16775c573db6518e2d3bd0065670d03a6 (patch)
treeb6fc5794492ca9bc8c5f03246e4866e96b01093f /lib/libc/tests/string
parent45ca3cac9513a8d0c987137956bdd965a077b441 (diff)
downloadFreeBSD-src-cddd13d16775c573db6518e2d3bd0065670d03a6.zip
FreeBSD-src-cddd13d16775c573db6518e2d3bd0065670d03a6.tar.gz
Add reachover Makefiles for contrib/netbsd-tests/lib/libc; this adds approximately
500 new testcases Various TODOs have been sprinkled around the Makefiles for items that even need to be ported (missing features), testcases have issues with building/linking, or issues at runtime. A variant of this code has been tested extensively on amd64 and i386 10-STABLE/11-CURRENT for several months without issue. It builds on other architectures, but the code will remain off until I have prove it works on virtual hardware or real hardware on other architectures In collaboration with: pho, Casey Peel <casey.peel@isilon.com> Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib/libc/tests/string')
-rw-r--r--lib/libc/tests/string/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/libc/tests/string/Makefile b/lib/libc/tests/string/Makefile
new file mode 100644
index 0000000..3c30ab6
--- /dev/null
+++ b/lib/libc/tests/string/Makefile
@@ -0,0 +1,33 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+TESTSDIR= ${TESTSBASE}/lib/libc/string
+
+# TODO: popcount, stresep
+
+NETBSD_ATF_TESTS_C+= memchr
+NETBSD_ATF_TESTS_C+= memcpy
+NETBSD_ATF_TESTS_C+= memmem
+NETBSD_ATF_TESTS_C+= memset
+NETBSD_ATF_TESTS_C+= strcat
+NETBSD_ATF_TESTS_C+= strchr
+NETBSD_ATF_TESTS_C+= strcmp
+NETBSD_ATF_TESTS_C+= strcpy
+NETBSD_ATF_TESTS_C+= strcspn
+NETBSD_ATF_TESTS_C+= strerror
+NETBSD_ATF_TESTS_C+= strlen
+NETBSD_ATF_TESTS_C+= strpbrk
+NETBSD_ATF_TESTS_C+= strrchr
+NETBSD_ATF_TESTS_C+= strspn
+NETBSD_ATF_TESTS_C+= swab
+
+.include "../Makefile.netbsd-tests"
+
+LDADD.memchr+= -lmd
+DPADD.memchr+= ${LIBMD}
+
+LDADD.memcpy+= -lmd
+DPADD.memcpy+= ${LIBMD}
+
+.include <bsd.test.mk>
OpenPOWER on IntegriCloud