-
Hi, I'm working on implementing a NixOS test that runs (a part of) the ZTS. During getting this all to work, I've come to a couple of questions:
I'd like to give the full suite a run at least once locally, but I'm running into some issues where it seems to stop doing anything for more than a couple of hours (I let it run for at least 9 hours, but when I saw it stopped logging any Thanks for the great filesystem and the hard work! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
sanity.run will be a good starting point. You can prune some of the longer tests based on the results of a run through it as you see fit. The sanity tests are mostly there as a quick check before we bother going through the full test suite, so it's already not comprehensive of course. To debug you really only get what the logs give you. Each test has separate log files saved in the test_results dir, so you can only look at the logs for failing tests. There is quite a bit of extra info dumped by testfail callbacks in the failing test logs, such as dmesg, that can often be ignored. You can of course modify the test scripts to add further output as needed for debugging. Generally you're looking for the point at which the script fails, which will be just before the testfail callbacks run. |
Beta Was this translation helpful? Give feedback.
sanity.run will be a good starting point. You can prune some of the longer tests based on the results of a run through it as you see fit. The sanity tests are mostly there as a quick check before we bother going through the full test suite, so it's already not comprehensive of course.
To debug you really only get what the logs give you. Each test has separate log files saved in the test_results dir, so you can only look at the logs for failing tests. There is quite a bit of extra info dumped by testfail callbacks in the failing test logs, such as dmesg, that can often be ignored. You can of course modify the test scripts to add further output as needed for debugging. Generally you're look…