8 xfstestsdb show
Anna edited this page 2023-02-13 11:18:46 -05:00

The xfstestsdb show command prints out the result of a single xfstests run.

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

The --failure, --passed, --skipped, and --testcase= options are used to narrow down the entries that are printed out to those that have a matching status or testcase. These options can be combined to further filter the listed results. The --testcase option takes a valid SQLite GLOB pattern.

Invocation

$ xfstestsdb show [--color[={light|dark|none}]] [--failure] [--passed] [--skipped] [--testcase <testcase>] <runid>

Arguments

Argument Description
<runid> The runid to show

Options

Options Choices Description
--color[=] light, dark, none The color output choice
--failure Show failing test cases
--passed Show passing test cases
--skipped Show skipped test cases
--testcase= Show test cases with a name matching the given pattern

Exit

Exit Code Description
0 The results have been successfully printed out
ENOENT The requested run was not found in the database

Examples

$ xfstestsdb show --color=none 1
+----------+---------+---------+---------+
| testcase | xunit-1 | xunit-2 | xunit-3 |
+----------+---------+---------+---------+
|  test/01 | passed  | passed  | passed  |
|  test/02 | passed  | skipped | skipped |
|  test/03 | skipped | failed  | failed  |
|  test/04 | passed  | skipped | failed  |
|  test/05 | skipped | skipped | passed  |
+----------+---------+---------+---------+
$ xfstestsdb show --color=none --failed 1
+----------+---------+---------+---------+
| testcase | xunit-1 | xunit-2 | xunit-3 |
+----------+---------+---------+---------+
|  test/03 | skipped | failed  | failed  |
|  test/04 | passed  | skipped | failed  |
+----------+---------+---------+---------+
$ xfstestsdb show --color=none --testcase "test*5" 1
+----------+---------+---------+---------+
| testcase | xunit-1 | xunit-2 | xunit-3 |
+----------+---------+---------+---------+
|  test/05 | skipped | skipped | passed  |
+----------+---------+---------+---------+