Tests: Skip genhtml if too old

This commit is contained in:
Wilson Snyder 2020-05-19 08:24:11 -04:00
parent 1e0d5eb238
commit 7834028842

View File

@ -39,9 +39,11 @@ run(cmd => ["../bin/verilator_coverage",
); );
# If installed # If installed
if (`lcov --help` !~ /Usage:/ if (`lcov --version` !~ /version/i
|| `genhtml --help` !~ /Usage:/) { || `genhtml --version` !~ /version ([0-9.]+)/i) {
skip("lcov or genhtml not installed"); skip("lcov or genhtml not installed");
} elsif ($1 < 1.14) {
skip("lcov or genhtml too old (version $1), need version >= 1.14");
} else { } else {
run(cmd => ["genhtml", run(cmd => ["genhtml",
"$Self->{obj_dir}/coverage.info", "$Self->{obj_dir}/coverage.info",