diff --git a/test_regress/t/t_cover_line_cc.pl b/test_regress/t/t_cover_line_cc.pl index d7b131a4d..2451e5076 100755 --- a/test_regress/t/t_cover_line_cc.pl +++ b/test_regress/t/t_cover_line_cc.pl @@ -40,6 +40,8 @@ run(cmd => ["$ENV{VERILATOR_ROOT}/bin/verilator_coverage", verilator_run => 1, ); +files_identical("$Self->{obj_dir}/coverage.info", $Self->{name} . ".info.out"); + # If installed if (`lcov --version` !~ /version/i || `genhtml --version` !~ /version ([0-9.]+)/i) { diff --git a/test_regress/t/t_cover_toggle_min.pl b/test_regress/t/t_cover_toggle_min.pl index 62ecb6a76..cf625bf5c 100755 --- a/test_regress/t/t_cover_toggle_min.pl +++ b/test_regress/t/t_cover_toggle_min.pl @@ -27,7 +27,7 @@ if (-e ("$Self->{obj_dir}/coverage.dat")) { # Don't try to write .info if test verilator_run => 1, ); - files_identical("$Self->{obj_dir}/coverage.info", $Self->{golden_filename}); + files_identical("$Self->{obj_dir}/coverage.info", $Self->{name} . ".info.out"); } ok(1); diff --git a/test_regress/t/t_vlcov_info.pl b/test_regress/t/t_vlcov_info.pl index 6d9de6172..919215a12 100755 --- a/test_regress/t/t_vlcov_info.pl +++ b/test_regress/t/t_vlcov_info.pl @@ -20,7 +20,7 @@ run(cmd => ["$ENV{VERILATOR_ROOT}/bin/verilator_coverage", verilator_run => 1, ); -files_identical("$Self->{obj_dir}/coverage.info", $Self->{golden_filename}); +files_identical("$Self->{obj_dir}/coverage.info", $Self->{name} . ".info.out"); ok(1); 1; diff --git a/test_regress/t_cover_line_cc.info.out b/test_regress/t_cover_line_cc.info.out new file mode 100644 index 000000000..d02a0b274 --- /dev/null +++ b/test_regress/t_cover_line_cc.info.out @@ -0,0 +1,87 @@ +TN:verilator_coverage +SF:t/t_cover_line.v +DA:15,1 +DA:18,1 +DA:47,10 +DA:48,0 +DA:49,10 +DA:50,10 +DA:52,1 +DA:53,1 +DA:54,1 +DA:55,1 +DA:58,1 +DA:59,1 +DA:61,9 +DA:62,9 +DA:65,1 +DA:66,1 +DA:67,1 +DA:68,1 +DA:71,9 +DA:72,9 +DA:75,1 +DA:76,1 +DA:77,1 +DA:79,1 +DA:80,1 +DA:81,1 +DA:83,1 +DA:84,1 +DA:85,1 +DA:88,7 +DA:89,7 +DA:92,0 +DA:93,0 +DA:94,0 +DA:96,0 +DA:97,0 +DA:98,0 +DA:99,0 +DA:102,1 +DA:103,1 +DA:105,1 +DA:107,1 +DA:112,1 +DA:113,1 +DA:114,1 +DA:119,1 +DA:121,1 +DA:132,20 +DA:133,2 +DA:134,2 +DA:137,18 +DA:156,20 +DA:157,20 +DA:158,0 +DA:160,0 +DA:162,2 +DA:164,2 +DA:166,18 +DA:180,1 +DA:181,1 +DA:182,0 +DA:183,1 +DA:186,11 +DA:187,0 +DA:188,11 +DA:191,11 +DA:192,0 +DA:193,11 +DA:207,10 +DA:208,10 +DA:211,11 +DA:213,11 +DA:214,1 +DA:215,1 +DA:217,1 +DA:218,1 +DA:221,11 +DA:222,1 +DA:223,11 +DA:224,11 +DA:245,10 +DA:246,1 +DA:248,1 +DA:249,0 +end_of_record diff --git a/test_regress/t/t_cover_toggle_min.out b/test_regress/t_cover_toggle_min.info.out similarity index 100% rename from test_regress/t/t_cover_toggle_min.out rename to test_regress/t_cover_toggle_min.info.out diff --git a/test_regress/t/t_vlcov_info.out b/test_regress/t_vlcov_info.info.out similarity index 100% rename from test_regress/t/t_vlcov_info.out rename to test_regress/t_vlcov_info.info.out