2014-01-23 17:26:28 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
Add the ZFS test suite
It was originally written by Sun as part of the STF (Solaris test framework).
They open sourced it in OpenSolaris, then HighCloud partially ported it to
FreeBSD, and Spectra Logic finished the port. We also added many testcases,
fixed many broken ones, and converted them all to the ATF framework. We've had
help along the way from avg, araujo, smh, and brd.
By default most of the tests are disabled. Set the disks Kyua variable to
enable them.
Submitted by: asomers, will, justing, ken, brd, avg, araujo, smh
Sponsored by: Spectra Logic Corp, HighCloud
2018-02-23 16:31:00 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2016-09-19 07:07:55 +00:00
|
|
|
TESTSDIR= ${TESTSBASE}/sys
|
2014-11-03 07:18:42 +00:00
|
|
|
|
2015-10-17 08:39:37 +00:00
|
|
|
TESTS_SUBDIRS+= acl
|
2015-04-27 08:51:40 +00:00
|
|
|
TESTS_SUBDIRS+= aio
|
2018-12-17 18:35:32 +00:00
|
|
|
TESTS_SUBDIRS+= ${_audit}
|
2018-07-26 00:16:41 +00:00
|
|
|
TESTS_SUBDIRS+= auditpipe
|
2018-04-17 18:07:40 +00:00
|
|
|
TESTS_SUBDIRS+= capsicum
|
Add the ZFS test suite
It was originally written by Sun as part of the STF (Solaris test framework).
They open sourced it in OpenSolaris, then HighCloud partially ported it to
FreeBSD, and Spectra Logic finished the port. We also added many testcases,
fixed many broken ones, and converted them all to the ATF framework. We've had
help along the way from avg, araujo, smh, and brd.
By default most of the tests are disabled. Set the disks Kyua variable to
enable them.
Submitted by: asomers, will, justing, ken, brd, avg, araujo, smh
Sponsored by: Spectra Logic Corp, HighCloud
2018-02-23 16:31:00 +00:00
|
|
|
TESTS_SUBDIRS+= ${_cddl}
|
2019-06-17 14:59:45 +00:00
|
|
|
TESTS_SUBDIRS+= devrandom
|
2015-04-27 08:15:17 +00:00
|
|
|
TESTS_SUBDIRS+= fifo
|
|
|
|
TESTS_SUBDIRS+= file
|
2016-10-21 05:24:08 +00:00
|
|
|
TESTS_SUBDIRS+= fs
|
Integrate
tools/regression/geom_{concat,eli,gate,mirror,nop,raid3,shsec,stripe,uzip}
in to the FreeBSD test suite as
tests/sys/geom/class/{concat,eli,gate,mirror,nop,raid3,shsec,stripe,uzip}
The tools/regression/geom and tools/regression/geom_part testcases are being
left alone because both test sets are both currently broken.
The majority of this work was done on ^/user/ngie/more-tests2 . The differences
are as follows:
- tests/sys/geom/class/Makefile.inc is not present; it was
inlined into the class's Makefiles for explicitness.
- The testcases officially require root via kyua
- The geom_gate(4) tests don't use the pidfile changes proposed in
https://reviews.freebsd.org/D4836 .
MFC after: 1 month
Sponsored by: EMC / Isilon Storage Division
2016-01-13 09:14:27 +00:00
|
|
|
TESTS_SUBDIRS+= geom
|
2014-02-08 00:20:21 +00:00
|
|
|
TESTS_SUBDIRS+= kern
|
2015-04-27 07:37:48 +00:00
|
|
|
TESTS_SUBDIRS+= kqueue
|
2015-12-21 21:24:03 +00:00
|
|
|
TESTS_SUBDIRS+= mac
|
2015-04-27 08:31:43 +00:00
|
|
|
TESTS_SUBDIRS+= mqueue
|
2020-02-13 14:09:09 +00:00
|
|
|
TESTS_SUBDIRS+= net
|
2014-03-20 20:39:41 +00:00
|
|
|
TESTS_SUBDIRS+= netinet
|
2019-10-21 09:33:45 +00:00
|
|
|
TESTS_SUBDIRS+= netinet6
|
2017-12-03 13:52:35 +00:00
|
|
|
TESTS_SUBDIRS+= netipsec
|
2018-12-31 11:17:58 +00:00
|
|
|
TESTS_SUBDIRS+= netmap
|
2017-10-06 20:43:14 +00:00
|
|
|
TESTS_SUBDIRS+= netpfil
|
2014-12-12 19:56:36 +00:00
|
|
|
TESTS_SUBDIRS+= opencrypto
|
2015-10-17 04:32:21 +00:00
|
|
|
TESTS_SUBDIRS+= posixshm
|
Improve performance and functionality of the bitstring(3) api
Two new functions are provided, bit_ffs_at() and bit_ffc_at(), which allow
for efficient searching of set or cleared bits starting from any bit offset
within the bit string.
Performance is improved by operating on longs instead of bytes and using
ffsl() for searches within a long. ffsl() is a compiler builtin in both
clang and gcc for most architectures, converting what was a brute force
while loop search into a couple of instructions.
All of the bitstring(3) API continues to be contained in the header file.
Some of the functions are large enough that perhaps they should be uninlined
and moved to a library, but that is beyond the scope of this commit.
sys/sys/bitstring.h:
Convert the majority of the existing bit string implementation from
macros to inline functions.
Properly protect the implementation from inadvertant macro expansion
when included in a user's program by prefixing all private
macros/functions and local variables with '_'.
Add bit_ffs_at() and bit_ffc_at(). Implement bit_ffs() and
bit_ffc() in terms of their "at" counterparts.
Provide a kernel implementation of bit_alloc(), making the full API
usable in the kernel.
Improve code documenation.
share/man/man3/bitstring.3:
Add pre-exisiting API bit_ffc() to the synopsis.
Document new APIs.
Document the initialization state of the bit strings
allocated/declared by bit_alloc() and bit_decl().
Correct documentation for bitstr_size(). The original code comments
indicate the size is in bytes, not "elements of bitstr_t". The new
implementation follows this lead. Only hastd assumed "elements"
rather than bytes and it has been corrected.
etc/mtree/BSD.tests.dist:
tests/sys/Makefile:
tests/sys/sys/Makefile:
tests/sys/sys/bitstring.c:
Add tests for all existing and new functionality.
include/bitstring.h
Include all headers needed by sys/bitstring.h
lib/libbluetooth/bluetooth.h:
usr.sbin/bluetooth/hccontrol/le.c:
Include bitstring.h instead of sys/bitstring.h.
sbin/hastd/activemap.c:
Correct usage of bitstr_size().
sys/dev/xen/blkback/blkback.c
Use new bit_alloc.
sys/kern/subr_unit.c:
Remove hard-coded assumption that sizeof(bitstr_t) is 1. Get rid of
unrb.busy, which caches the number of bits set in unrb.map. When
INVARIANTS are disabled, nothing needs to know that information.
callapse_unr can be adapted to use bit_ffs and bit_ffc instead.
Eliminating unrb.busy saves memory, simplifies the code, and
provides a slight speedup when INVARIANTS are disabled.
sys/net/flowtable.c:
Use the new kernel implementation of bit-alloc, instead of hacking
the old libc-dependent macro.
sys/sys/param.h
Update __FreeBSD_version to indicate availability of new API
Submitted by: gibbs, asomers
Reviewed by: gibbs, ngie
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D6004
2016-05-04 22:34:11 +00:00
|
|
|
TESTS_SUBDIRS+= sys
|
2015-10-14 08:16:15 +00:00
|
|
|
TESTS_SUBDIRS+= vfs
|
2015-04-27 17:53:09 +00:00
|
|
|
TESTS_SUBDIRS+= vm
|
2014-11-03 07:18:42 +00:00
|
|
|
|
2018-12-17 18:35:32 +00:00
|
|
|
.if ${MK_AUDIT} != "no"
|
|
|
|
_audit= audit
|
|
|
|
.endif
|
|
|
|
|
Add the ZFS test suite
It was originally written by Sun as part of the STF (Solaris test framework).
They open sourced it in OpenSolaris, then HighCloud partially ported it to
FreeBSD, and Spectra Logic finished the port. We also added many testcases,
fixed many broken ones, and converted them all to the ATF framework. We've had
help along the way from avg, araujo, smh, and brd.
By default most of the tests are disabled. Set the disks Kyua variable to
enable them.
Submitted by: asomers, will, justing, ken, brd, avg, araujo, smh
Sponsored by: Spectra Logic Corp, HighCloud
2018-02-23 16:31:00 +00:00
|
|
|
.if ${MK_CDDL} != "no"
|
|
|
|
_cddl= cddl
|
|
|
|
.endif
|
|
|
|
|
2014-11-03 07:18:42 +00:00
|
|
|
# Items not integrated into kyua runs by default
|
|
|
|
SUBDIR+= pjdfstest
|
2014-01-23 17:26:28 +00:00
|
|
|
|
2019-03-04 18:15:06 +00:00
|
|
|
SUBDIR+= common
|
|
|
|
|
2014-01-23 17:26:28 +00:00
|
|
|
.include <bsd.test.mk>
|