diff --git a/test_regress/driver.pl b/test_regress/driver.pl index c307817ec..ed0de453c 100755 --- a/test_regress/driver.pl +++ b/test_regress/driver.pl @@ -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.