2 xfstestsdb testcase show
Anna edited this page 2023-02-10 15:44:22 -05:00

The xfstestsdb testcase show command prints out detailed information for a specific xfstests testcase.

This command will print output in color by default when running in interactive mode. The "--color=" option can be used to print output in either light or dark color schemes or to disable color altogether. The default color scheme is "dark", but this can be overridden by setting the XFSTESTSDB_COLORS environment variable. The FORCE_COLOR and NO_COLOR environment variables can be used to force or disable color usage, which can be useful when piping to another command such as less -r

By default, 20 lines of output will be printed for system-out and system-err messages. The --maxlines= option can be used to change this value. Passing a number <= 0 will display all lines.

Invocation

$ xfstestsdb testcase show [--color={light|dark|none}] [--maxlines=<n>] runid <xunit> <testcase>

Arguments

Argument Description
<runid> The runid of the testcase to show
<xunit> The xunit of the testcase to show
<testcase> The name of the testcase to show

Options

Options Choices Default Description
--color[=] light, dark, none dark The color output choice
--maxlines= 20 The number of lines of system output to show

Exit

Exit Code Description
0 The results have been successfully printed out
ENOENT The requested run, xunit, or testcase do not exist

Examples

$ xfstestsdb testcase show --color=none 1 xunit-1 test/01
test/01: passed, 1 second
$ xfstestsdb testcase show --color=none 1 xunit-2 test/02
test/01: skipped, 0 seconds:
    skipped due to some reason
$ xfstestsdb testcase show --color=none 1 xunit-3 test/01
test/01: failure, 10 seconds:
    output mismatch (see /home/user/xfstests/results/01.out.bad)

text printed to system-out:
	some system-out message

text printed to system-err:
    --- test/01.out
    +++ /home/user/xfstests/results/01.out.bad
    @@ -1,2 +1,5 @@
     QA output created by 01
    +text that shouldn't show up
    -text that should show up
     Silence is golden