diff options
Diffstat (limited to 'tests/configs')
-rw-r--r-- | tests/configs/learning-gem5-p1-simple.py | 11 | ||||
-rw-r--r-- | tests/configs/learning-gem5-p1-two-level.py | 24 |
2 files changed, 35 insertions, 0 deletions
diff --git a/tests/configs/learning-gem5-p1-simple.py b/tests/configs/learning-gem5-p1-simple.py new file mode 100644 index 000000000..7ee9cc815 --- /dev/null +++ b/tests/configs/learning-gem5-p1-simple.py @@ -0,0 +1,11 @@ + +# A wrapper around configs/learning_gem5/part1/simple.py + +# For some reason, this is implicitly needed by run.py +root = None + +def run_test(root): + # Called from tests/run.py + + # Execute the script we are wrapping + execfile('configs/learning_gem5/part1/simple.py') diff --git a/tests/configs/learning-gem5-p1-two-level.py b/tests/configs/learning-gem5-p1-two-level.py new file mode 100644 index 000000000..caabe05d5 --- /dev/null +++ b/tests/configs/learning-gem5-p1-two-level.py @@ -0,0 +1,24 @@ + +# A wrapper around configs/learning_gem5/part1/two_level.py + +# For some reason, this is implicitly needed by run.py +root = None + +import m5 + +def run_test(root): + # Called from tests/run.py + + # Add paths that we need + m5.util.addToPath('../configs/learning_gem5/part1') + m5.util.addToPath('../configs/common') + + # The path to this script is the only parameter. Delete it so we can + # execute the script that we want to execute. + import sys + del sys.argv[1:] + # Note: at this point, we could add options we want to test. + # For instance, sys.argv.append('--l2_size=512kB') + + # Execute the script we are wrapping + execfile('configs/learning_gem5/part1/two_level.py') |