polish testing a bit further

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-22 00:00:00 +00:00
parent c64e96e575
commit 42ce64409b
8 changed files with 123 additions and 43 deletions

View File

@@ -8,7 +8,7 @@ class Main(common.TestCliFunction):
def __init__(self):
super().__init__(
description='''\
Run Linux kernel boot tests and benchmarks.
Test and benchmark the Linux kernel boot. Use inits that exit immediately.
'''
)
self.add_argument(
@@ -16,11 +16,7 @@ Run Linux kernel boot tests and benchmarks.
default=1,
type=int,
help='''\
Size of the tests to run. Scale:
* 1: a few seconds and important
* 2: < 5 minutes and important or a few seconds and not too important
* 3: all
See ./test --help for --size.
'''
)
@@ -64,7 +60,10 @@ Size of the tests to run. Scale:
self._bench(trace='exec_tb')
if self.env['emulator'] == 'gem5' and self.env['size'] >= 3:
if self.env['arch'] == 'x86_64':
cpu_types = ['DerivO3CPU']
cpu_types = [
# TODO segfault
#'DerivO3CPU'
]
elif self.env['is_arm']:
cpu_types = [
'DerivO3CPU',
@@ -86,7 +85,8 @@ Size of the tests to run. Scale:
# Do a fuller testing for aarch64.
for build_type in ['debug', 'fast']:
self._bench(gem5_build_type=build_type)
self._bench(gem5_script='biglittle')
# Requires patching the executable.
# self._bench(gem5_script='biglittle')
if __name__ == '__main__':
Main().cli_exit()