diff -r 8f90545cd9fe -r a77f645d8ab4 tests/SConscript --- a/tests/SConscript Thu Jul 16 09:09:56 2015 -0500 +++ b/tests/SConscript Thu Jul 16 09:30:10 2015 -0500 @@ -361,6 +361,8 @@ 'rubytest', 'memtest', 'memtest-filter', 'tgen-simple-mem', 'tgen-dram-ctrl'] +configs += ['learning-gem5-p1-simple', 'learning-gem5-p1-two-level'] + if env['PROTOCOL'] != 'None': if env['PROTOCOL'] == 'MI_example': configs += [c + "-ruby" for c in configs] diff -r 8f90545cd9fe -r a77f645d8ab4 tests/configs/learning-gem5-p1-simple.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/configs/learning-gem5-p1-simple.py Thu Jul 16 09:30:10 2015 -0500 @@ -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 -r 8f90545cd9fe -r a77f645d8ab4 tests/configs/learning-gem5-p1-two-level.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/configs/learning-gem5-p1-two-level.py Thu Jul 16 09:30:10 2015 -0500 @@ -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') diff -r 8f90545cd9fe -r a77f645d8ab4 tests/quick/se/03.learning-gem5/test.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/quick/se/03.learning-gem5/test.py Thu Jul 16 09:30:10 2015 -0500 @@ -0,0 +1,2 @@ + +# Empty to satisfy run.py \ No newline at end of file