mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 03:31:36 +01:00
polish testing a bit further
This commit is contained in:
16
test-boot
16
test-boot
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user