summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-11-24 05:12:40 +0000
committerngie <ngie@FreeBSD.org>2015-11-24 05:12:40 +0000
commite98a8a4a446074eb86604afed77d96fe01a0b12b (patch)
tree395b4d46c3dd3e84d3f83fdb8b561eab1b82bec3 /tests
parentb923a91e2c985b47c61617b8287f43bce6c02e29 (diff)
parent7f4494e3bff2bd744f653c0506896eab083f5a6c (diff)
downloadFreeBSD-src-e98a8a4a446074eb86604afed77d96fe01a0b12b.zip
FreeBSD-src-e98a8a4a446074eb86604afed77d96fe01a0b12b.tar.gz
MFhead @ r291235
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile3
-rw-r--r--tests/README15
-rw-r--r--tests/sys/kern/Makefile5
-rw-r--r--tests/sys/kern/acct/Makefile5
4 files changed, 23 insertions, 5 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 8b3ccb1..30b9692 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -9,6 +9,9 @@ SUBDIR_PARALLEL=
TESTSDIR= ${TESTSBASE}
KYUAFILE= yes
+FILES+= README
+FILESDIR_README= ${TESTSDIR}
+
afterinstall: install-tests-local
install-tests-local: .PHONY
${INSTALL_SYMLINK} ../local/tests ${DESTDIR}${TESTSDIR}/local
diff --git a/tests/README b/tests/README
index 416cea7..2102dd1 100644
--- a/tests/README
+++ b/tests/README
@@ -1,10 +1,19 @@
src/tests: The FreeBSD test suite
=================================
-This file describes the build infrastructure of the FreeBSD test suite.
-If you are only interested in using the test suite itself, please refer
-to tests(7) instead.
+To run the FreeBSD test suite:
+(1) Make sure that kyua is installed:
+ pkg install kyua
+(2) To run the tests:
+ kyua test -k /usr/tests/Kyuafile
+(3) To see the test results:
+ kyua report
+For further information on using the test suite, read tests(7):
+ man tests
+
+Description of FreeBSD test suite
+=================================
The build of the test suite is organized in the following manner:
* The build of all test artifacts is protected by the MK_TESTS knob.
diff --git a/tests/sys/kern/Makefile b/tests/sys/kern/Makefile
index b636fc6..b3d2453 100644
--- a/tests/sys/kern/Makefile
+++ b/tests/sys/kern/Makefile
@@ -14,6 +14,11 @@ LDADD.ptrace_test+= -lpthread
LDADD.unix_seqpacket_test+= -lpthread
NETBSD_ATF_TESTS_C+= lockf_test
+NETBSD_ATF_TESTS_C+= mqueue_test
+
+CFLAGS.mqueue_test+= -I${SRCTOP}/tests
+DPADD.mqueue_test+= ${LIBRT}
+LDADD.mqueue_test+= -lrt
WARNS?= 5
diff --git a/tests/sys/kern/acct/Makefile b/tests/sys/kern/acct/Makefile
index 966fe9a..03fad6d 100644
--- a/tests/sys/kern/acct/Makefile
+++ b/tests/sys/kern/acct/Makefile
@@ -6,12 +6,13 @@ ATF_TESTS_C= acct_test
CFLAGS+= -I${.OBJDIR}
-CLEANFILES+= convert.c
+CLEANFILES+= convert.c convert.c.tmp
DPSRCS.acct_test= convert.c
convert.c: ${SRCTOP}/sys/kern/kern_acct.c
sed -n -e 's/log(/syslog(/g' \
- -e '/FLOAT_CONVERSION_START/,/FLOAT_CONVERSION_END/p' ${.ALLSRC} >>${.TARGET}
+ -e '/FLOAT_CONVERSION_START/,/FLOAT_CONVERSION_END/p' ${.ALLSRC} >${.TARGET}.tmp
+ mv ${.TARGET}.tmp ${.TARGET}
.include <bsd.test.mk>
OpenPOWER on IntegriCloud