ext,tests: Add --build-targets option to ./main.py list

This allows for build target information (i.e., the gem5 binary to be
built for the tests) to be returned.

Change-Id: I6638b54cbb1822555f58e74938d36043c11108ba
This commit is contained in:
Bobby R. Bruce
2023-09-04 23:34:39 -07:00
parent 13b77b3e41
commit 0337613afc
5 changed files with 57 additions and 9 deletions

View File

@@ -57,11 +57,23 @@ class QueryRunner(object):
def list_fixtures(self):
log.test_log.message(terminal.separator())
log.test_log.message('Listing all Test Fixtures.', bold=True)
log.test_log.message("Listing all Test Fixtures.", bold=True)
log.test_log.message(terminal.separator())
for fixture in self.schedule.all_fixtures():
log.test_log.message(fixture, machine_readable=True)
def list_build_targets(self):
log.test_log.message(terminal.separator())
log.test_log.message("Listing all gem5 Build Targets.", bold=True)
log.test_log.message(terminal.separator())
builds = []
for fixture in self.schedule.all_fixtures():
build = fixture.get_get_build_info()
if build and build not in builds:
builds.append(build)
for build in builds:
log.test_log.message(build, machine_readable=True)
def list_suites(self):
log.test_log.message(terminal.separator())
log.test_log.message("Listing all Test Suites.", bold=True)