[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/16] Acceptance Tests: add mechanism for listing tests
From: |
Cleber Rosa |
Subject: |
[PATCH 03/16] Acceptance Tests: add mechanism for listing tests |
Date: |
Fri, 24 Sep 2021 14:54:53 -0400 |
It is helpful to know the tests that would be executed with a "make
check-acceptance" without executing them. Let's introduce a "make
list-acceptance" rule for that purpose.
Signed-off-by: Cleber Rosa <crosa@redhat.com>
---
tests/Makefile.include | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/Makefile.include b/tests/Makefile.include
index 2c03256ae8..d1f90572a7 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -17,6 +17,7 @@ ifneq ($(filter $(all-check-targets), check-softfloat),)
@echo " $(MAKE) check-softfloat Run FPU emulation tests"
endif
@echo " $(MAKE) check-acceptance Run acceptance (functional) tests
for currently configured targets"
+ @echo " $(MAKE) check-acceptance List acceptance (functional) tests
for currently configured targets"
@echo
@echo " $(MAKE) check-report.tap Generates an aggregated TAP test
report"
@echo " $(MAKE) check-venv Creates a Python venv for tests"
@@ -135,6 +136,13 @@ check-acceptance: check-venv $(TESTS_RESULTS_DIR)
get-vm-images
$(if $(GITLAB_CI),,--failfast) tests/acceptance, \
"AVOCADO", "tests/acceptance")
+list-acceptance: check-venv
+ $(call quiet-command, \
+ $(TESTS_VENV_DIR)/bin/python -m avocado list \
+ --filter-by-tags-include-empty --filter-by-tags-include-empty-key \
+ $(AVOCADO_TAGS) tests/acceptance, \
+ "AVOCADO", "list tests/acceptance")
+
# Consolidated targets
.PHONY: check-block check check-clean get-vm-images
--
2.31.1
- [PATCH 00/16] Acceptance Tests: use Avocado 91.0 features and other improvements, Cleber Rosa, 2021/09/24
- [PATCH 01/16] Acceptance Tests: bump Avocado requirement to 91.0, Cleber Rosa, 2021/09/24
- [PATCH 05/16] Acceptance Tests: add standard clean up at test tearDown(), Cleber Rosa, 2021/09/24
- [PATCH 06/16] Acceptance Tests: use extract from package from avocado.utils, Cleber Rosa, 2021/09/24
- [PATCH 07/16] Acceptance Tests: workaround expired mipsdistros.mips.com HTTPS cert, Cleber Rosa, 2021/09/24
- [PATCH 08/16] acceptance/tests/vnc.py: use explicit syntax for enabling passwords, Cleber Rosa, 2021/09/24
- [PATCH 09/16] tests/acceptance/boot_xen.py: merge base classes, Cleber Rosa, 2021/09/24
- [PATCH 03/16] Acceptance Tests: add mechanism for listing tests,
Cleber Rosa <=
- [PATCH 10/16] tests/acceptance/boot_xen.py: unify tags, Cleber Rosa, 2021/09/24
- [PATCH 02/16] Acceptance Tests: improve check-acceptance description, Cleber Rosa, 2021/09/24
- [PATCH 04/16] Acceptance Tests: keep track and disable tests with known issues, Cleber Rosa, 2021/09/24
- [PATCH 11/16] tests/acceptance/boot_xen.py: fetch kernel during test setUp(), Cleber Rosa, 2021/09/24
- [PATCH 12/16] tests/acceptance/boot_xen.py: removed unused import, Cleber Rosa, 2021/09/24
- [PATCH 13/16] tests/acceptance/boot_xen.py: use class attribute, Cleber Rosa, 2021/09/24
- [PATCH 14/16] tests/acceptance/ppc_prep_40p.py: NetBSD 7.1.2 location update, Cleber Rosa, 2021/09/24