From 10d01a832e65ebeb5a8ca1a28786ae16b139dfa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89der=20F=2E=20Zulian?= Date: Wed, 6 Apr 2016 17:22:23 +0200 Subject: [PATCH] Created a separate "sim-batch.xml" file for the simple test. This way eventual changes to the default "sim-batch.xml" file will not affect the result of this test. Updated the expected values (expected.txt) after running the test with its own sim-batch config file. --- DRAMSys/tests/simple/expected.txt | 12 ++++---- DRAMSys/tests/simple/sim-batch.xml | 49 ++++++++++++++++++++++++++++++ DRAMSys/tests/simple/test.pl | 3 +- 3 files changed, 57 insertions(+), 7 deletions(-) create mode 100644 DRAMSys/tests/simple/sim-batch.xml diff --git a/DRAMSys/tests/simple/expected.txt b/DRAMSys/tests/simple/expected.txt index 0af7ea7c..88f5d510 100644 --- a/DRAMSys/tests/simple/expected.txt +++ b/DRAMSys/tests/simple/expected.txt @@ -1,9 +1,9 @@ Info: /OSCI/SystemC: Simulation stopped by user. -sim.dram0 Total Energy: 4322095.399584 -sim.dram0 Average Power: 12.680122 +sim.dram0 Total Energy: 4300303.748256 +sim.dram0 Average Power: 12.617304 sim.dram1 Total Energy: 2157481.552032 sim.dram1 Average Power: 6.404758 -sim.dram2 Total Energy: 3293520.001632 -sim.dram2 Average Power: 9.667110 -sim.dram3 Total Energy: 2216673.062784 -sim.dram3 Average Power: 6.580476 +sim.dram2 Total Energy: 4202780.152032 +sim.dram2 Average Power: 12.337053 +sim.dram3 Total Energy: 2293679.842704 +sim.dram3 Average Power: 6.809080 diff --git a/DRAMSys/tests/simple/sim-batch.xml b/DRAMSys/tests/simple/sim-batch.xml new file mode 100644 index 00000000..783ff0c7 --- /dev/null +++ b/DRAMSys/tests/simple/sim-batch.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + chstone-adpcm_32.stl + + + + + diff --git a/DRAMSys/tests/simple/test.pl b/DRAMSys/tests/simple/test.pl index e91fb713..9f4dd029 100644 --- a/DRAMSys/tests/simple/test.pl +++ b/DRAMSys/tests/simple/test.pl @@ -40,7 +40,7 @@ use File::Compare; # Run Simulation: chdir("../../../build/simulator/"); -`./dramSys > ../../DRAMSys/tests/simple/output.txt`; +`./dramSys ../../DRAMSys/tests/simple/sim-batch.xml > ../../DRAMSys/tests/simple/output.txt`; chdir("../../DRAMSys/tests/simple"); @@ -54,3 +54,4 @@ else { exit -1 } +