Change-Id: I9926b1507e9069ae8564c31bdd377b2b916462a2 Issue-on: https://gem5.atlassian.net/browse/GEM5-395 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29088 Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu> Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu> Tested-by: kokoro <noreply+kokoro@google.com>
27 lines
603 B
Python
Executable File
27 lines
603 B
Python
Executable File
#!/usr/bin/env python
|
|
'''
|
|
The main source for testlib. Ties together the default test runners and
|
|
loaders.
|
|
|
|
Discovers and runs all tests from a given root directory.
|
|
'''
|
|
from __future__ import print_function
|
|
|
|
import sys
|
|
import os
|
|
|
|
os.environ["PYTHONUNBUFFERED"] = "1"
|
|
|
|
base_dir = os.path.dirname(os.path.abspath(__file__))
|
|
ext_path = os.path.join(base_dir, os.pardir, 'ext')
|
|
|
|
sys.path.insert(0, base_dir)
|
|
sys.path.insert(0, ext_path)
|
|
|
|
import testlib.main as testlib
|
|
import testlib.configuration as config
|
|
import testlib.helper as helper
|
|
|
|
config.basedir = helper.absdirpath(__file__)
|
|
sys.exit(testlib())
|