From cb5f63267f85e42f775504d069da11e4866910c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89der=20F=2E=20Zulian?= Date: Wed, 6 Apr 2016 19:15:26 +0200 Subject: [PATCH] Disabling PowerAnalisys for the error test. Other changes: - check if the input trace file for the error test is already there, if yes use it, if not create it first then use it. --- DRAMSys/tests/error/sim-batch.xml | 4 ++-- DRAMSys/tests/error/test.pl | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) 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/");