From 78340288423d0f9749203ba443465156bac0558f Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 19 May 2020 08:24:11 -0400 Subject: [PATCH] Tests: Skip genhtml if too old --- test_regress/t/t_cover_line_cc.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test_regress/t/t_cover_line_cc.pl b/test_regress/t/t_cover_line_cc.pl index 287e35d93..08a0a6f03 100755 --- a/test_regress/t/t_cover_line_cc.pl +++ b/test_regress/t/t_cover_line_cc.pl @@ -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",