forked from github/verilator
Tests: Fix file length issue (cousin of #3905)
This commit is contained in:
parent
4a8cfe367d
commit
21aafe8f50
@ -26,21 +26,11 @@ if (!-r "$root/.git") {
|
||||
$files =~ s/\s+/ /g;
|
||||
my @batch;
|
||||
my $n = 0;
|
||||
my $re = qr/(FIX[M]E|BO[Z]O)/;
|
||||
foreach my $file (split /\s+/, $files) {
|
||||
$batch[$n] .= $file . " ";
|
||||
++$n if (length($batch[$n]) > 10000);
|
||||
}
|
||||
|
||||
foreach my $bfiles (@batch) {
|
||||
my $cmd = "cd $root && grep -n -P '(FIX" . "ME|BO" . "ZO)' $bfiles | sort";
|
||||
my $grep = `$cmd`;
|
||||
if ($grep ne "") {
|
||||
print "$grep\n";
|
||||
foreach my $line (split /\n/, $grep) {
|
||||
print "L $line\n";
|
||||
# FIXMEV5 for use in develop-v5 branch until merged to master
|
||||
$names{$1} = 1 if $line =~ /^([^:]+)/ && $line !~ /FIXMEV5/;
|
||||
}
|
||||
my $wholefile = file_contents($root . "/" . $file);
|
||||
if ($wholefile =~ /$re/) {
|
||||
$names{$file} = 1;
|
||||
}
|
||||
}
|
||||
if (scalar(%names) >= 1) {
|
||||
|
@ -56,7 +56,7 @@ module chk (input clk, input rst_l, input expr);
|
||||
|
||||
wire noxs = ((expr ^ expr) == 1'b0);
|
||||
|
||||
// FIXMEV5: this test is dodgy, noxs can be proven constant, so this block
|
||||
// TODO: this test is dodgy, noxs can be proven constant, so this block
|
||||
// should never relly trigger...
|
||||
reg hasx;
|
||||
always @ (noxs) begin
|
||||
|
Loading…
Reference in New Issue
Block a user