|Main index||Section 7||Options|
The FreeBSD Test Suite can be found in the /usr/tests hierarchy.
This manual page describes how to run the test suite and how to configure some of its optional features.
If the /usr/tests directory is missing, then you will have to enable the build of the test suite, rebuild your system and install the results. You can do so by setting 'WITH_TESTS=yes' in your /etc/src.conf file (see src.conf(5) for details) and rebuilding the system as described in build(7).
$ kyua test -k /usr/tests/Kyuafile
The above will iterate through all test programs in /usr/tests recursively, execute them, store their results and debugging data in Kyua's database (by default in ~/.kyua/store.db), and print a summary of the results. This summary includes a brief count of all total tests run and how many of them failed.
$ kyua test -k /usr/tests/Kyuafile bin/cp usr.bin/cut
$ kyua report
This example would generate an HTML report ready to be published on a web server:
$ kyua report-html --output ~/public_html/tests
For further details on the command-line interface of Kyua, please refer to its manual page kyua(1).
Test suites are configured by defining their configuration variables in /usr/local/etc/kyua/kyua.conf. The format of this file is detailed in kyua.conf(5).
The following configuration variables are available in the FreeBSD Test Suite:
|allow_devfs_side_effects||If defined, enables tests that may destroy and recreate semipermanent device nodes, like disk devices. Without this variable, tests may still create and destroy devices nodes that are normally transient, like /dev/tap* and /dev/pts*, as long as they clean them up afterwards. However, tests that require this variable have a relaxed cleanup requirement; they must recreate any devices that they destroyed, but not necessarily with the same devnames.|
|Enables tests that change globally significant sysctl(8) variables. The tests will undo any changes in their cleanup phases.|
|disks||Must be set to a space delimited list of disk device nodes. Tests that need destructive access to disks must use these devices. Tests are not required to preserve any data present on these disks.|
|fibs||Must be set to a space delimited list of FIBs (routing tables). Tests that need to modify a routing table may use any of these. Tests will cleanup any new routes that they create.|
|/usr/local/etc/kyua/kyua.conf||System-wide configuration file for kyua(1).|
|~/.kyua/kyua.conf||User-specific configuration file for kyua(1); overrides the system file.|
|~/.kyua/store.db||Default result database used by Kyua.|
|/usr/tests/||Location of the FreeBSD Test Suite.|
|/usr/tests/Kyuafile||Top-level test suite definition file.|
The tests manual page first appeared in NetBSD and was later ported to FreeBSD 10.1 .
|TESTS (7)||August 21, 2017|
|Main index||Section 7||Options|
|“||Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what's wrong.”||”|