[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 12/15] scripts/mtest2make.py: export all-%s-targets variable a
From: |
Alex Bennée |
Subject: |
[PATCH v1 12/15] scripts/mtest2make.py: export all-%s-targets variable and use it |
Date: |
Tue, 2 Feb 2021 13:39:57 +0000 |
There are some places where the conditional makefile support is the
simplest solution. Now we don't expose CONFIG_TCG as a variable create
a new one that can be checked for the check-help output.
As check-tcg is a PHONY target we re-use check-softfloat to gate that
as well.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210126145356.7860-2-alex.bennee@linaro.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
---
scripts/mtest2make.py | 1 +
tests/Makefile.include | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/mtest2make.py b/scripts/mtest2make.py
index 25ee6887cf..cbbcba100d 100644
--- a/scripts/mtest2make.py
+++ b/scripts/mtest2make.py
@@ -110,6 +110,7 @@ def emit_suite(name, suite, prefix):
print('ifneq ($(filter %s %s, $(MAKECMDGOALS)),)' % (target, prefix))
print('.tests += $(.test.$(SPEED).%s)' % (target, ))
print('endif')
+ print('all-%s-targets += %s' % (prefix, target))
targets = {t['id']: [os.path.relpath(f) for f in t['filename']]
for t in introspect['targets']}
diff --git a/tests/Makefile.include b/tests/Makefile.include
index ceaf3f0d6e..17dafdfe98 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -12,7 +12,7 @@ check-help:
@echo " $(MAKE) check-speed Run qobject speed tests"
@echo " $(MAKE) check-qapi-schema Run QAPI schema tests"
@echo " $(MAKE) check-block Run block tests"
-ifeq ($(CONFIG_TCG),y)
+ifneq ($(filter $(all-check-targets), check-softfloat),)
@echo " $(MAKE) check-tcg Run TCG tests"
@echo " $(MAKE) check-softfloat Run FPU emulation tests"
endif
--
2.20.1
- [PATCH v1 06/15] tests/docker: add a docker-exec-copy-test, (continued)
- [PATCH v1 06/15] tests/docker: add a docker-exec-copy-test, Alex Bennée, 2021/02/02
- [PATCH v1 08/15] configure: bump the minimum gdb version for check-tcg to 9.1, Alex Bennée, 2021/02/02
- [PATCH v1 09/15] tests/tcg: don't silently skip the gdb tests, Alex Bennée, 2021/02/02
- [PATCH v1 07/15] configure: make version_ge more tolerant of shady version input, Alex Bennée, 2021/02/02
- [PATCH v1 11/15] tests/tcg: Replace /bin/true by true (required on macOS), Alex Bennée, 2021/02/02
- [PATCH v1 12/15] scripts/mtest2make.py: export all-%s-targets variable and use it,
Alex Bennée <=
- [PATCH v1 10/15] gdbstub: Fix handle_query_xfer_auxv, Alex Bennée, 2021/02/02
- [PATCH v1 13/15] tests/Makefile.include: don't use TARGET_DIRS for check-tcg, Alex Bennée, 2021/02/02
- [PATCH v1 15/15] docs/system: document an example booting the versatilepb machine, Alex Bennée, 2021/02/02
- [PATCH v1 14/15] docs/system: document an example vexpress-a15 invocation, Alex Bennée, 2021/02/02