Tests: Fix whitespace test and resulting fallout.
This commit is contained in:
parent
14d24213a8
commit
38b2845e2a
|
|
@ -16,11 +16,12 @@ my $Debug;
|
|||
### Must trim output before and after our file list
|
||||
my %files = %{get_source_files($root)};
|
||||
|
||||
my $any = 0;
|
||||
foreach my $file (sort keys %files) {
|
||||
my $filename = "$root/$file";
|
||||
next if !-f $file; # git file might be deleted but not yet staged
|
||||
next if !-f $filename; # git file might be deleted but not yet staged
|
||||
my $contents = file_contents($filename);
|
||||
if ($file =~ /\.out$/) {
|
||||
if ($file =~ /(\.out|\.dat)$/) {
|
||||
# Ignore golden files
|
||||
next;
|
||||
} elsif ($contents =~ /[\001\002\003\004\005\006]/) {
|
||||
|
|
@ -61,7 +62,9 @@ foreach my $file (sort keys %files) {
|
|||
$warns{$file} = "Trailing newlines at EOF in $file";
|
||||
}
|
||||
}
|
||||
++$any;
|
||||
}
|
||||
$any > 50 or error("Too few source files found");
|
||||
|
||||
if (keys %warns) {
|
||||
# First warning lists everything as that's shown in the driver summary
|
||||
|
|
|
|||
|
|
@ -45,5 +45,3 @@ module Test(in0, in1, out);
|
|||
|
||||
assign out = $signed({1'b0, in0}) * in1; // this operator should be signed multiplication
|
||||
endmodule
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -33,4 +33,3 @@ module testbench;
|
|||
end
|
||||
|
||||
endmodule
|
||||
|
||||
|
|
|
|||
|
|
@ -40,4 +40,3 @@ module testbench(
|
|||
end
|
||||
|
||||
endmodule
|
||||
|
||||
|
|
|
|||
|
|
@ -53,4 +53,3 @@ module testbench(
|
|||
end
|
||||
|
||||
endmodule
|
||||
|
||||
|
|
|
|||
|
|
@ -55,4 +55,3 @@ module testbench(
|
|||
end
|
||||
|
||||
endmodule
|
||||
|
||||
|
|
|
|||
|
|
@ -43,4 +43,3 @@ module testbench(
|
|||
end
|
||||
|
||||
endmodule
|
||||
|
||||
|
|
|
|||
|
|
@ -127,4 +127,3 @@ function automatic logic [7:0] getType(logic[3:0] d);
|
|||
{"9", "8", "7", "6", "5", "4", "3", "2", "1", "0"};
|
||||
return digits[d];
|
||||
endfunction
|
||||
|
||||
|
|
|
|||
|
|
@ -41,4 +41,3 @@ Flat profile:
|
|||
1.25 0.00 0.25 3 0.00 0.00 unsigned long const& std::max<unsigned long>(unsigned long const&, unsigned long const&)
|
||||
1.19 0.00 0.19 1 0.00 0.00 vl_finish(char const*, int, char const*)
|
||||
1.18 0.00 0.18 2 0.00 0.00 vl_time_pow10(int)
|
||||
|
||||
|
|
|
|||
|
|
@ -23,4 +23,3 @@ file_grep($Self->{stats}, qr/SplitVar,\s+Split packed variables\s+(\d+)/i, 0);
|
|||
file_grep($Self->{stats}, qr/SplitVar,\s+Split unpacked arrays\s+(\d+)/i, 0);
|
||||
ok(1);
|
||||
1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue