mod test_selector¶
- module test_selector¶
Which build-log lines count as an OpenBLAS test command when a proof round decides whether a build is binary-verified.
The proof-easyblock harness picks the test command with a regex (the
selectof itsenv_for_commandchecks H4, H9 and S1) and then looks for the thread limit on that line or in the lines before it. No selected line means no evidence, and the trial is not binary-verified.Each round keeps the selector it was scored with, so its results can be scored again to the same numbers. Round 6 used
TestSelector::R6, which needsmakeand the target one space apart. A test step that passes the build’s parallelism to make (make -j 2 tests, as r6 A t3’s easyblock did) ran the tests, but r6 selected nothing in its log.TestSelector::R7also takes one job-count option betweenmakeand the target; any other word there still selects nothing.Both patterns use only syntax that Python’s
rereads the same way, soTestSelector::patterncan be pasted into an acceptance file.Enums
- enum TestSelector¶
A versioned selector for the OpenBLAS test commands.
- R6¶
The selector frozen in openblas-3936’s
accept-r3.json, used through round 6.
- R7¶
Round 7 on:
make testsormake lapack-test, optionally with one-j N,-jNor--jobs=N(N at least 1) aftermake.
Implementations
- impl TestSelector¶
Functions
- fn for_round(round: u32) -> Self¶
The selector a proof round is scored with.
- fn is_match(self, line: &str) -> bool¶
Whether
lineis a test command for this selector.
- fn pattern(self) -> &'static str¶
The regex, as an acceptance file writes it.
- fn target(self, line: &str) -> Option<&str>¶
The make target
lineruns (testsorlapack-test), orNonewhen the line is not a test command for this selector.