mirror of
https://github.com/verilator/verilator.git
synced 2025-01-07 23:27:48 +00:00
Tests: Skip genhtml if too old
This commit is contained in:
parent
1e0d5eb238
commit
7834028842
@ -39,9 +39,11 @@ run(cmd => ["../bin/verilator_coverage",
|
||||
);
|
||||
|
||||
# If installed
|
||||
if (`lcov --help` !~ /Usage:/
|
||||
|| `genhtml --help` !~ /Usage:/) {
|
||||
if (`lcov --version` !~ /version/i
|
||||
|| `genhtml --version` !~ /version ([0-9.]+)/i) {
|
||||
skip("lcov or genhtml not installed");
|
||||
} elsif ($1 < 1.14) {
|
||||
skip("lcov or genhtml too old (version $1), need version >= 1.14");
|
||||
} else {
|
||||
run(cmd => ["genhtml",
|
||||
"$Self->{obj_dir}/coverage.info",
|
||||
|
Loading…
Reference in New Issue
Block a user