From d3e1dfd3f53387e26282fa2fd29cd7996d69ffc9 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 30 Oct 2018 20:28:39 -0400 Subject: [PATCH] Tests: Add VERILATOR_MAKE override variable. --- test_regress/driver.pl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test_regress/driver.pl b/test_regress/driver.pl index 22f0d4bba..430db8cf9 100755 --- a/test_regress/driver.pl +++ b/test_regress/driver.pl @@ -187,8 +187,9 @@ sub one_test { } else { $test->oprint("FAILED: ","*"x60,"\n"); my $j = ($opt_jobs>1?" -j":""); - push @fails, ("\t#".$test->soprint("%Error: $test->{errors}\n") - ."\t\tmake$j && test_regress/" + my $makecmd = $ENV{VERILATOR_MAKE} || "make$j &&"; + push @fails, ("\t#".$test->soprint("%Error: $test->{errors}\n") + ."\t\t$makecmd test_regress/" .$test->{pl_filename} ." ".join(' ', _args_scenario()) ." --".$test->{scenario}."\n"); @@ -2143,6 +2144,10 @@ Command to use to invoke GHDL. Command to use to invoke Icarus Verilog. +=item VERILATOR_MAKE + +Command to use to rebuild Verilator and run single test. Defaults to "make &&". + =item VERILATOR_MODELSIM Command to use to invoke ModelSim.