diff --git a/DRAMSys/tests/error/sim-batch.xml b/DRAMSys/tests/error/sim-batch.xml index 8c947f72..40d7557b 100644 --- a/DRAMSys/tests/error/sim-batch.xml +++ b/DRAMSys/tests/error/sim-batch.xml @@ -3,7 +3,7 @@ - + @@ -30,7 +30,7 @@ - + ../../../tests/error/test_error.stl diff --git a/DRAMSys/tests/error/test.pl b/DRAMSys/tests/error/test.pl index f060b551..14fd35fb 100644 --- a/DRAMSys/tests/error/test.pl +++ b/DRAMSys/tests/error/test.pl @@ -42,10 +42,14 @@ use warnings; use strict; use Term::ANSIColor; +my $trace_file = "test_error.stl"; + # Create the input file (first make sure the script is executable) chdir("../../DRAMSys/tests/error"); -`chmod u+x ./generateErrorTest.pl`; -`./generateErrorTest.pl > test_error.stl`; +if (! -e $trace_file) { + `chmod u+x ./generateErrorTest.pl`; + `./generateErrorTest.pl > $trace_file`; +} # Run Simulation: chdir("../../../build/simulator/");