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 select of its env_for_command checks 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 needs make and 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::R7 also takes one job-count option between make and the target; any other word there still selects nothing.

Both patterns use only syntax that Python’s re reads the same way, so TestSelector::pattern can 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 tests or make lapack-test, optionally with one -j N, -jN or --jobs=N (N at least 1) after make.

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 line is 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 line runs (tests or lapack-test), or None when the line is not a test command for this selector.