Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/outputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ tests. The file can be dumped on the file system as `json`:
tuxrun --device qemu-armv5 --results results.json
```

The results can also be saved as JUnit XML, for example for the test report
of a GitLab job:

```shell
tuxrun --device qemu-armv5 --results-junit junit.xml
```

With `-` the XML goes to the standard output.

A failed test case is a `failure`, a skipped one is `skipped` and any other
result is an `error`. A test that was asked for but has no results, like when
the board doesn't boot, is an `error` too. JUnit has no field for a
measurement, so it goes into `system-out`. The `system-out` of a test case also
has the board output between its STARTTC and ENDTC (`lava-test-case --shell` or
`--output`), or else only its signal line, if it has one.

## Outputs

TuxRun can collect and dump to the filesystem every outputs with:
Expand Down
175 changes: 175 additions & 0 deletions test/unit/logs/rpi4-firmware.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/unit/results/fail-1.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/unit/results/fail-6.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"lava": {"validate": {"result": "pass"}, "file-download": {"url_repo": {"duration": "0.09", "extra": {"label": "url_repo", "md5sum": "fa60c476a00c4d7614702428463c07b6", "sha256sum": "d05c42b25da3343e94322188416e33eb5032735bc3dfc40d6f6974c4d4f2c011", "sha512sum": "3d44bf18a9ab1535bb9c7a33f16927fdc6c096c29fbc366f5db1036da469bce929efbb86ce447dfa1bba84f5be76729e727ad88b6ce2f579f0347ea2badb132e", "size": 12927667}, "level": "1.1.3.1.1.1", "namespace": "common", "result": "pass"}, "rootfs": {"duration": "0.80", "extra": {"label": "rootfs", "md5sum": "ae56f847a4e1b5222f2d92accee0bc5b", "sha256sum": "aa0323a14910c2a0cf9c71ad5e848b2bf53fec980690853d2796a274bb801457", "sha512sum": "83cbb5f923e5aef7df88936974230b840d3b2efa85ed1a5a54567e8ad01e4e3b967b62256820141362696d6a76c9654ff0d92497cab0499def53f31276e94ba0", "size": 42496404}, "level": "1.6.1", "namespace": "common", "result": "pass", "url": "https://example.com/rootfs.ext4.xz"}}, "test-overlay": {"duration": "0.00", "extra": {"from": "url", "name": "ltp-smoke", "path": "automated/linux/ltp/ltp.yaml", "repository": "file:///home/ivoire/.cache/tuxrun/assets/https___storage.tuxboot.com_test-definitions_2022.01.tar.zst", "uuid": "1_1.1.3.1"}, "level": "1.1.3.2", "namespace": "common", "result": "pass"}, "test-install-overlay": {"duration": "0.00", "extra": {"from": "url", "name": "ltp-smoke", "path": "automated/linux/ltp/ltp.yaml", "repository": "file:///home/ivoire/.cache/tuxrun/assets/https___storage.tuxboot.com_test-definitions_2022.01.tar.zst", "skipped test-install-overlay": "1_1.1.3.1", "uuid": "1_1.1.3.1"}, "level": "1.1.3.3", "namespace": "common", "result": "pass"}, "test-runscript-overlay": {"duration": "0.00", "extra": {"filename": "/var/lib/lava/dispatcher/tmp/tuxrun-b85jqmk6-1/lava-overlay-aa_tb9y6/lava-1/0/tests/0_ltp-smoke/run.sh", "from": "url", "name": "ltp-smoke", "path": "automated/linux/ltp/ltp.yaml", "repository": "file:///home/ivoire/.cache/tuxrun/assets/https___storage.tuxboot.com_test-definitions_2022.01.tar.zst", "uuid": "1_1.1.3.1"}, "level": "1.1.3.4", "namespace": "common", "result": "pass"}, "http-download": {"kernel": {"duration": "2.89", "extra": {"label": "kernel", "md5sum": "7901dc9883e1249fd1e4eaf7d5424fda", "sha256sum": "cad094d9a3d73663ba9252a0447dff6b4a05d5725888823a93c4931d27302135", "sha512sum": "8154d6229cc05e7a8606af567a5eb67ba9d54b5eb49b4cd2585cd5cfbeb3ff928afafffdae1338426fd4217864af2589d83b09fe85ec3887aefda5a6a2ed6c96", "size": 3091912}, "level": "1.4.1", "namespace": "common", "result": "pass", "url": "https://example.com/bzImage"}, "dtb": {"duration": "1.03", "extra": {"label": "dtb", "md5sum": "81e9ec79c16527ca650f6e19993d65ca", "sha256sum": "0bc0c0b0858cefd3c32b385c0d66d97142ded29472a496f4f490e42fc7615b25", "sha512sum": "2b49dbbea9634f5fc534cfb166ec63f61f7f846d6616db164822e1210769a9500d477fc7898b0373ff22b113a568e234bd124a160caeb25f3d4564d51f2a8a7b", "size": 8896}, "level": "1.5.1", "namespace": "common", "result": "pass"}}, "execute-qemu": {"duration": "0.08", "extra": {"host_arch": "amd64", "job_arch": "arm", "qemu_version": "1:7.0+dfsg-2~bpo11+2"}, "level": "2.1.1", "namespace": "common", "result": "pass"}, "kernel-messages": {"duration": "5.17", "extra": {"extra": [{"success": "(.*)login:"}]}, "level": "2.2.1", "namespace": "common", "result": "pass"}, "login-action": {"duration": "5.42", "extra": {"success": "(.*)login:"}, "level": "2.2.1", "namespace": "common", "result": "pass"}, "ltp-smoke": {"duration": "8.12", "namespace": "common", "path": "automated/linux/ltp/ltp.yaml", "repository": "file:///home/ivoire/.cache/tuxrun/assets/https___storage.tuxboot.com_test-definitions_2022.01.tar.zst", "result": "pass", "revision": "unspecified", "uuid": "1_1.1.3.1"}, "job": {"result": "pass"}}, "ltp-smoke": {"access01": {"endtc": 919, "result": "pass", "starttc": 919, "log_excerpt": ["[2022-08-02T11:48:12.656310] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=access01 RESULT=pass>"]}, "chdir01": {"endtc": 922, "result": "fail", "starttc": 922, "log_excerpt": ["[2022-08-02T11:48:12.847137] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=chdir01 RESULT=fail>"]}, "fork01": {"endtc": 925, "result": "pass", "starttc": 925, "log_excerpt": ["[2022-08-02T11:48:13.018519] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=fork01 RESULT=pass>"]}, "time01": {"endtc": 928, "result": "pass", "starttc": 928, "log_excerpt": ["[2022-08-02T11:48:13.196797] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=time01 RESULT=pass>"]}, "wait02": {"endtc": 931, "result": "pass", "starttc": 931, "log_excerpt": ["[2022-08-02T11:48:13.346858] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=wait02 RESULT=pass>"]}, "write01": {"endtc": 934, "result": "pass", "starttc": 934, "log_excerpt": ["[2022-08-02T11:48:13.528845] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=write01 RESULT=pass>"]}, "symlink01": {"endtc": 937, "result": "pass", "starttc": 937, "log_excerpt": ["[2022-08-02T11:48:13.704213] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=symlink01 RESULT=pass>"]}, "stat04": {"endtc": 940, "result": "pass", "starttc": 940, "log_excerpt": ["[2022-08-02T11:48:13.858088] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=stat04 RESULT=pass>"]}, "utime01A": {"endtc": 943, "result": "pass", "starttc": 943, "log_excerpt": ["[2022-08-02T11:48:14.003538] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=utime01A RESULT=pass>"]}, "rename01A": {"endtc": 946, "result": "pass", "starttc": 946, "log_excerpt": ["[2022-08-02T11:48:14.141767] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=rename01A RESULT=pass>"]}, "splice02": {"endtc": 949, "result": "pass", "starttc": 949, "log_excerpt": ["[2022-08-02T11:48:14.291290] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=splice02 RESULT=pass>"]}, "shell_test01": {"endtc": 952, "result": "pass", "starttc": 952, "log_excerpt": ["[2022-08-02T11:48:14.443664] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=shell_test01 RESULT=pass>"]}, "ping01": {"endtc": 954, "result": "skip", "starttc": 954, "log_excerpt": []}, "ping602": {"endtc": 958, "result": "skip", "starttc": 958, "log_excerpt": ["[2022-08-02T11:48:14.747669] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=ping602 RESULT=skip>"]}}}
{"lava": {"validate": {"result": "pass"}, "file-download": {"url_repo": {"duration": "0.09", "extra": {"label": "url_repo", "md5sum": "fa60c476a00c4d7614702428463c07b6", "sha256sum": "d05c42b25da3343e94322188416e33eb5032735bc3dfc40d6f6974c4d4f2c011", "sha512sum": "3d44bf18a9ab1535bb9c7a33f16927fdc6c096c29fbc366f5db1036da469bce929efbb86ce447dfa1bba84f5be76729e727ad88b6ce2f579f0347ea2badb132e", "size": 12927667}, "level": "1.1.3.1.1.1", "namespace": "common", "result": "pass"}, "rootfs": {"duration": "0.80", "extra": {"label": "rootfs", "md5sum": "ae56f847a4e1b5222f2d92accee0bc5b", "sha256sum": "aa0323a14910c2a0cf9c71ad5e848b2bf53fec980690853d2796a274bb801457", "sha512sum": "83cbb5f923e5aef7df88936974230b840d3b2efa85ed1a5a54567e8ad01e4e3b967b62256820141362696d6a76c9654ff0d92497cab0499def53f31276e94ba0", "size": 42496404}, "level": "1.6.1", "namespace": "common", "result": "pass", "url": "https://example.com/rootfs.ext4.xz"}}, "test-overlay": {"duration": "0.00", "extra": {"from": "url", "name": "ltp-smoke", "path": "automated/linux/ltp/ltp.yaml", "repository": "file:///home/ivoire/.cache/tuxrun/assets/https___storage.tuxboot.com_test-definitions_2022.01.tar.zst", "uuid": "1_1.1.3.1"}, "level": "1.1.3.2", "namespace": "common", "result": "pass"}, "test-install-overlay": {"duration": "0.00", "extra": {"from": "url", "name": "ltp-smoke", "path": "automated/linux/ltp/ltp.yaml", "repository": "file:///home/ivoire/.cache/tuxrun/assets/https___storage.tuxboot.com_test-definitions_2022.01.tar.zst", "skipped test-install-overlay": "1_1.1.3.1", "uuid": "1_1.1.3.1"}, "level": "1.1.3.3", "namespace": "common", "result": "pass"}, "test-runscript-overlay": {"duration": "0.00", "extra": {"filename": "/var/lib/lava/dispatcher/tmp/tuxrun-b85jqmk6-1/lava-overlay-aa_tb9y6/lava-1/0/tests/0_ltp-smoke/run.sh", "from": "url", "name": "ltp-smoke", "path": "automated/linux/ltp/ltp.yaml", "repository": "file:///home/ivoire/.cache/tuxrun/assets/https___storage.tuxboot.com_test-definitions_2022.01.tar.zst", "uuid": "1_1.1.3.1"}, "level": "1.1.3.4", "namespace": "common", "result": "pass"}, "http-download": {"kernel": {"duration": "2.89", "extra": {"label": "kernel", "md5sum": "7901dc9883e1249fd1e4eaf7d5424fda", "sha256sum": "cad094d9a3d73663ba9252a0447dff6b4a05d5725888823a93c4931d27302135", "sha512sum": "8154d6229cc05e7a8606af567a5eb67ba9d54b5eb49b4cd2585cd5cfbeb3ff928afafffdae1338426fd4217864af2589d83b09fe85ec3887aefda5a6a2ed6c96", "size": 3091912}, "level": "1.4.1", "namespace": "common", "result": "pass", "url": "https://example.com/bzImage"}, "dtb": {"duration": "1.03", "extra": {"label": "dtb", "md5sum": "81e9ec79c16527ca650f6e19993d65ca", "sha256sum": "0bc0c0b0858cefd3c32b385c0d66d97142ded29472a496f4f490e42fc7615b25", "sha512sum": "2b49dbbea9634f5fc534cfb166ec63f61f7f846d6616db164822e1210769a9500d477fc7898b0373ff22b113a568e234bd124a160caeb25f3d4564d51f2a8a7b", "size": 8896}, "level": "1.5.1", "namespace": "common", "result": "pass"}}, "execute-qemu": {"duration": "0.08", "extra": {"host_arch": "amd64", "job_arch": "arm", "qemu_version": "1:7.0+dfsg-2~bpo11+2"}, "level": "2.1.1", "namespace": "common", "result": "pass"}, "kernel-messages": {"duration": "5.17", "extra": {"extra": [{"success": "(.*)login:"}]}, "level": "2.2.1", "namespace": "common", "result": "pass"}, "login-action": {"duration": "5.42", "extra": {"success": "(.*)login:"}, "level": "2.2.1", "namespace": "common", "result": "pass"}, "ltp-smoke": {"duration": "8.12", "namespace": "common", "path": "automated/linux/ltp/ltp.yaml", "repository": "file:///home/ivoire/.cache/tuxrun/assets/https___storage.tuxboot.com_test-definitions_2022.01.tar.zst", "result": "pass", "revision": "unspecified", "uuid": "1_1.1.3.1"}, "job": {"result": "pass"}}, "ltp-smoke": {"access01": {"endtc": 919, "result": "pass", "starttc": 919, "log_excerpt": ["[2022-08-02T11:48:12.656310] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=access01 RESULT=pass>"]}, "chdir01": {"endtc": 922, "result": "fail", "starttc": 922, "log_excerpt": ["[2022-08-02T11:48:12.847137] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=chdir01 RESULT=fail>"]}, "fork01": {"endtc": 925, "result": "pass", "starttc": 925, "log_excerpt": ["[2022-08-02T11:48:13.018519] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=fork01 RESULT=pass>"]}, "time01": {"endtc": 928, "result": "pass", "starttc": 928, "log_excerpt": ["[2022-08-02T11:48:13.196797] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=time01 RESULT=pass>"]}, "wait02": {"endtc": 931, "result": "pass", "starttc": 931, "log_excerpt": ["[2022-08-02T11:48:13.346858] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=wait02 RESULT=pass>"]}, "write01": {"endtc": 934, "result": "pass", "starttc": 934, "log_excerpt": ["[2022-08-02T11:48:13.528845] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=write01 RESULT=pass>"]}, "symlink01": {"endtc": 937, "result": "pass", "starttc": 937, "log_excerpt": ["[2022-08-02T11:48:13.704213] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=symlink01 RESULT=pass>"]}, "stat04": {"endtc": 940, "result": "pass", "starttc": 940, "log_excerpt": ["[2022-08-02T11:48:13.858088] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=stat04 RESULT=pass>"]}, "utime01A": {"endtc": 943, "result": "pass", "starttc": 943, "log_excerpt": ["[2022-08-02T11:48:14.003538] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=utime01A RESULT=pass>"]}, "rename01A": {"endtc": 946, "result": "pass", "starttc": 946, "log_excerpt": ["[2022-08-02T11:48:14.141767] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=rename01A RESULT=pass>"]}, "splice02": {"endtc": 949, "result": "pass", "starttc": 949, "log_excerpt": ["[2022-08-02T11:48:14.291290] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=splice02 RESULT=pass>"]}, "shell_test01": {"endtc": 952, "result": "pass", "starttc": 952, "log_excerpt": ["[2022-08-02T11:48:14.443664] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=shell_test01 RESULT=pass>"]}, "ping01": {"endtc": 954, "result": "skip", "starttc": 954, "log_excerpt": ["[2022-08-02T11:48:14.588422] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=ping01 RESULT=skip>"]}, "ping602": {"endtc": 958, "result": "skip", "starttc": 958, "log_excerpt": ["[2022-08-02T11:48:14.747669] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=ping602 RESULT=skip>"]}}}
Loading
Loading