diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-15 11:11:41 +0100 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-12-06 09:56:12 -0800 |
| commit | 2fd0dacf06712857993496b7da1dc16dce71f523 (patch) | |
| tree | 58519aa2240125c966902f752373fd41c54e73b3 /test cases/frameworks | |
| parent | f9f69d835e01cc6467455b3ad166a7a367920304 (diff) | |
| download | meson-2fd0dacf06712857993496b7da1dc16dce71f523.tar.gz | |
mtest: rust: allow parsing doctest output
Doctests have a slightly different output compared to what "protocol: rust"
supports:
running 2 tests
test ../doctest1.rs - my_func (line 7) ... ignored
test ../doctest1.rs - (line 3) ... ok
test result: ok. 1 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.12s
Add a little more parsing in order to accept this; a simple minded split()
fails to unpack the tuple. I plan to contribute an extension of the rust
module to invoke doctests, for now this allows running rustdoc --test with
"protocol: 'rust'" and get information about the subtests:
▶ 4/8 ../doctest1.rs:my_func:7 SKIP
▶ 4/8 ../doctest1.rs:3 OK
4/8 rust_unit_tests:doctests / rust doctest OK 0.28s 1 subtests passed
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'test cases/frameworks')
0 files changed, 0 insertions, 0 deletions
