tests: add --golden flag

This commit is contained in:
Wilson Snyder 2010-11-02 21:10:52 -04:00
parent 582963375d
commit 4e382d6765

View File

@ -66,6 +66,7 @@ if (! GetOptions (
"gdb!" => \$opt_gdb,
"gdbbt!" => \$opt_gdbbt,
"gdbsim!" => \$opt_gdbsim,
"golden!" => sub { $ENV{HARNESS_UPDATE_GOLDEN} = 1; },
"help" => \&usage,
"iverilog!" => \$opt_iv,
"j=i" => \$opt_jobs,
@ -1020,7 +1021,7 @@ sub files_identical {
eval "use File::Copy;";
File::Copy::copy($fn1,$fn2);
} else {
warn "To update reference: HARNESS_UPDATE_GOLDEN=1 {command}\n";
warn "To update reference: HARNESS_UPDATE_GOLDEN=1 {command} or --golden\n";
}
return 0;
}
@ -1220,6 +1221,10 @@ Requires --debug.
Run Verilator generated executable under the debugger.
=item --golden
Update golden files, equivalent to setting HARNESS_UPDATE_GOLDEN=1.
=item --help
Displays this message and program version and exits.