arch-power: Simplify doubleword operand types
[gem5.git] / tests / main.py
1 #!/usr/bin/env python2.7
2 '''
3 The main source for testlib. Ties together the default test runners and
4 loaders.
5
6 Discovers and runs all tests from a given root directory.
7 '''
8 from __future__ import print_function
9
10 import sys
11 import os
12
13 base_dir = os.path.dirname(os.path.abspath(__file__))
14 ext_path = os.path.join(base_dir, os.pardir, 'ext')
15
16 sys.path.insert(0, base_dir)
17 sys.path.insert(0, ext_path)
18
19 import testlib.main as testlib
20 import testlib.config as config
21 import testlib.helper as helper
22
23 config.basedir = helper.absdirpath(__file__)
24 sys.exit(testlib())