gem5: expose unit tests

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-25 00:00:00 +00:00
parent c858e57ed9
commit ce8e363ca1
4 changed files with 77 additions and 18 deletions

4
test
View File

@@ -33,6 +33,10 @@ Size of the tests to run. Scale:
self.run_test(self.import_path_main('test-baremetal'), run_args, 'test-baremetal')
self.run_test(self.import_path_main('test-user-mode'), run_args, 'test-user-mode')
self.run_test(self.import_path_main('test-gdb'), run_args, 'test-gdb')
if self.env['emulator'] == 'gem5':
gem5_unit_test_args = run_args.copy()
gem5_unit_test_args['unit_tests'] = True
self.run_test(self.import_path_main('build-gem5'), gem5_unit_test_args, 'gem5-unit-tests')
if __name__ == '__main__':
Main().cli()