logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

atf-test-program — common interface to ATF test programs

Description

       Test  programs  written  using  the  ATF  libraries all share a common user interface, which is what this
       manual page describes.  NOTE:Thereisnobinaryknownasatf-test-program; whatisdescribedinthismanualpageisthecommand-lineinterfaceexposedbytheatf-c,atf-c++andatf-shbindings.

       In the first synopsis 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.  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).  Note that the test case is executedwithoutisolation, so it
       can and probably will create and modify files in the current directory.   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).  You should only execute test cases by hand for debugging purposes.

       In  the  second  synopsis 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) to know how  to
       execute the test cases of a given test program.

       The following options are available:

       -l              Lists available test cases alongside a brief description for each of them.

       -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: donottrytoprocessthestdoutofthetestcase because your program may break in the future.

       -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.

Name

       atf-test-program — common interface to ATF test programs

See Also

kyua(1)

Debian                                            March 2, 2014                              ATF-TEST-PROGRAM(1)

Synopsis

atf-test-program [-rresfile] [-ssrcdir] [-vvar1=value1 [.. -vvarN=valueN]] test_caseatf-test-program-l

See Also