ATF-TEST-PROGRAM(1)
π ATF-TEST-PROGRAM(1) π
General Commands Manual β¨ the atf-test-program era
okay bestie, sit down, hydrate, because this is the manual page for atf-test-program β the common interface to ATF test programs. π«Ά
β¨ NAME β¨
atf-test-program β the common interface to ATF test programs. that's it, that's the name, no notes π
πΈ SYNOPSIS πΈ
atf-test-program [-r resfile] [-s srcdir]
[-v var1=value1 [.. -v varN=valueN]] test_case
atf-test-program -l
like, two whole forms. two. she contains multitudes β¨
π¦ DESCRIPTION π¦
So here's the tea: test programs written using the ATF libraries all share a common user interface, and this manual page is literally describing that interface. π
NOTE: there is no binary known asatf-test-program. like, it does not exist as a real executable bestie π what this manual page describes is the command-line interface exposed by theatf-c,atf-c++andatf-shbindings. no cap.
First synopsis form β the main character form π
the test program will execute the provided test_case and print its results to the standard output, unless otherwise stated by the -r flag. lowkey important.
optionally, the test_case name can be suffixed by :cleanup, in which case the cleanup routine of the test case will be executed instead of the test case body. see atf-test-case(4) for the lore π
β οΈ note that the test case is executed without isolation, so it can and probably will create and modify files in the current directory. she is ungovernable. π
to execute test cases in a controller manner, you need a runtime engine that understands the ATF interface. the recommended runtime engine is kyua(1). periodt.
π¨ you should only execute test cases by hand for debugging purposes. that's the vibe check. do not make this your whole personality.
Second synopsis form β the listy form π
the test program will list all available test cases alongside their meta-data properties in a format that is machine parseable. this list is processed by kyua(1) so it knows how to execute the test cases of a given test program. iconic behaviour honestly.
π the following options are available π
-lβ lists available test cases alongside a brief description for each of them. short, sweet, slay.-rresfile β specifies the file that will receive the test case result. if not specified, the test case prints its results to stdout. if the result of a test case needs to be parsed by another program, you must use this option to redirect the result to a file and then read the resulting file from the other program. πΎ
Note: do not try to process the stdout of the test case because your program may break in the future. fr fr. don't do it. i'm begging. π
-ssrcdir β the path to the directory where the test program is located. this is needed in all cases, except when the test program is being executed from the current directory. the test program will use this path to locate any helper data files or utilities. ποΈ-vvar=value β sets the configuration variable var to the value value. that's the whole thing. simple. elegant. π
π SEE ALSO π
kyua(1)π
and that's the page bestie!! π from the Debian crew, dated March 2, 2014 β go forth and test responsibly, mwah πβ¨
π¦ where this page comes from
- alpine 3.22: atf-doc 0.23-r0 Β· BSD-2-Clause AND BSD-3-Clause
- alpine 3.23: atf-doc 0.23-r0 Β· BSD-2-Clause AND BSD-3-Clause
- alpine 3.24: atf-doc 0.23-r0 Β· BSD-2-Clause AND BSD-3-Clause
- debian bookworm: libatf-dev 0.21-6 Β· BSD-2-Clause
- debian trixie: libatf-dev 0.22-3 Β· BSD-2-Clause
- epel 10: libatf-c 0.21-6.el10_0 Β· LicenseRef-Callaway-BSD
- epel 9: libatf-c 0.21-2.el9 Β· BSD
- fedora 43: libatf-c 0.23-2.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: libatf-c 0.23-2.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: libatf-c 0.23-4.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: libatf-c 0.23-4.fc44 Β· LicenseRef-Callaway-BSD
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixos 26.05: atf 0.23
- nixpkgs unstable: atf 0.23
- ubuntu jammy: libatf-dev 0.21-6 Β· BSD-2-Clause
- ubuntu noble: libatf-dev 0.21-6build4 Β· BSD-2-Clause
- ubuntu questing: libatf-dev 0.22-3
- ubuntu resolute: libatf-dev 0.22-3build1 Β· BSD-2-Clause
- ubuntu stonking: libatf-dev 0.22-3build1 Β· BSD-2-Clause
- Copyright (c) 2007 The NetBSD Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms