Deleted Added
sdiff udiff text old ( 11720:482900205561 ) new ( 13619:44b5224b2ff4 )
full compact
1# Copyright (c) 2016 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 40 unchanged lines hidden (view full) ---

49# A wrapper around configs/example/memcheck.py
50
51# For some reason, this is implicitly needed by run.py
52root = None
53
54def run_test(root):
55 # Called from tests/run.py
56
57 # Set the working directory in case we are executing from
58 # outside gem5's source tree
59 import os
60 os.chdir(os.path.join(os.path.dirname(__file__), "../"))
61
62 # The path to this script is the only parameter. Delete it so
63 # we can execute the script that we want to execute.
64 import sys
65 del sys.argv[1:]
66
67 # Add a specific max tick
68 sys.argv.append('-m %d' % maxtick)
69
70 # Execute the script we are wrapping
71 execfile(srcpath('configs/example/memcheck.py'), globals())