Tests: Cover --error-limit and update docs (found via coverage).

This commit is contained in:
Wilson Snyder 2019-06-30 21:36:57 -04:00
parent 5cd531a5e0
commit efe739c52f
4 changed files with 42 additions and 2 deletions

View File

@ -768,8 +768,8 @@ will also go to standard out.
=item --error-limit I<value>
After this number of errors or warnings are encountered, exit. Defaults to
50.
After this number of errors are encountered, exit. Warnings are not
counted in this limit. Defaults to 50.
=item --exe

View File

@ -0,0 +1,5 @@
%Error: t/t_flag_errorlimit_bad.v:9: Duplicate declaration of signal: u1
t/t_flag_errorlimit_bad.v:8: ... Location of original declaration
%Error: t/t_flag_errorlimit_bad.v:10: Duplicate declaration of signal: u1
t/t_flag_errorlimit_bad.v:8: ... Location of original declaration
%Error: Exiting due to

View File

@ -0,0 +1,19 @@
#!/usr/bin/perl
if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); die; }
# DESCRIPTION: Verilator: Verilog Test driver/expect definition
#
# Copyright 2003 by Wilson Snyder. This program is free software; you can
# redistribute it and/or modify it under the terms of either the GNU
# Lesser General Public License Version 3 or the Perl Artistic License
# Version 2.0.
scenarios(vlt => 1);
lint(
verilator_flags2 => ["-Wall -Wno-DECLFILENAME --error-limit 2"],
fails => 1,
expect_filename => $Self->{golden_filename},
);
ok(1);
1;

View File

@ -0,0 +1,16 @@
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2019 by Wilson Snyder.
module t (/*AUTOARG*/);
int u1;
int u1;
int u1;
int u1;
int u1;
int u1;
int u1;
endmodule