Welcome to FreeBSD Test Suite project!
This project equipped FreeBSD with a comprehensive test suite that aims to be easy to run out of the box and during the development of the system. Goal of our test suite is to assist both developers and users in assessing the quality of FreeBSD.
The test framework of choice is Kyua. Tests can be written in many languages and are not restricted to using a specific framework. The recommendation is to use GitHub: jmmv/atf: Automated Testing Framework (ATF), a library collection to write test programs in C, C++ and POSIX shell., which is included in FreeBSD Base, but other supported options exist.
WITH_TESTS=yes in src.conf(5) before buildworld to enable.The following goals are desirable for the FreeBSD test suite but they mostly describe work required on Kyua:
# pkg install kyua # this can be skipped on FreeBSD CURRENT after 23 March 2020 $ kyua test -k /usr/tests/Kyuafile
Test logs are created in ~/.kyua/logs of the invoking user by default.
tests(7): User-level introduction to the FreeBSD test suite.jmmv): Owner of this project, of these pages and author of Kyua. Also owner of the same project in NetBSD. Maintainer of the devel/atf, devel/kyua, etc, ports.ngie): Original driver of this project. Did initial ATF import and ported lots of tests into their own private repository. Integrated (and is continuing to integrate) tests from NetBSD and legacy tests from tools/regression into the FreeBSD test suite.sjg) and others at Juniper: Ported many NetBSD tests to FreeBSD. Work on the share/mk infrastructure.