mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
8a16b7a18f
Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. |
||
---|---|---|
.. | ||
tests | ||
Makefile | ||
Makefile.depend | ||
README |
$FreeBSD$ This directory contains sample test programs along the Makefile and Kyuafile logic to get them build and installed. The goal of these test programs is to illustrate, via simple and heaviliy-commented code, how to construct test programs using all the supported interfaces in the system. If you use any files in here as templates for your own code, please remove all comments while doing so and then write your own if necessary. The subdirectories here contain: * tests/: Regular directory containing the tests code. Note that the apparently-redundant tests/tests/ path component here is expected for consistency reasons and required to get the right layout under /usr/tests/. * tests/atf/: Tests that use the ATF libraries, including atf-c, atf-c++ and atf-sh. See kyua-atf-interface(1) for details. * tests/plain/: Tests that do not use any testing framework. See kyua-plain-interface(1) for details. To inspect the available sample test cases from an installed system: $ kyua list -k /usr/tests/share/examples/tests/Kyuafile To run the full suite of sample test cases: $ kyua test -k /usr/tests/share/examples/tests/Kyuafile And to debug a specific failing test case, if any: $ kyua debug -k /usr/tests/share/examples/tests/Kyuafile \ atf/cp_test:simple