Skip to contentSkip to conversation

tests/Makefile.include: add run-tcg-tests-TARGET to check-help

PATCH In review ck 2 participants 3 messages Feb 6 – Feb 11

lore
Share & tools
lore

ck

author
#0 lore raw

PATCH v2 1/1 tests/Makefile.include: add run-tcg-tests-TARGET to check-help

User can execute TCG tests for a specific TARGET using the command:

$ make run-tcg-tests-TARGET-softmmu

However, this command is not showing in 'make check-help' documentation, making it hard for new contributors to discover.

This commit help to resolve this by adding the description for the command, to the "check-tcg" section, as suggested by Thomas, in tests/Makefile.include.

Additionally, reformat the alignment to accommodate the length of the new command, ensuring the consistency of the output.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/228

---
 tests/Makefile.include | 33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)
tests/Makefile.include +17 -16
index 7728098981..be3b78fdfb 100644
@@ -3,29 +3,30 @@
 .PHONY: check-help
 check-help:
 	@echo "Regression testing targets:"
-	@echo " $(MAKE) check                    Run block, qapi-schema, unit, softfloat, qtest and decodetree tests"
-	@echo " $(MAKE) bench                    Run speed tests"
+	@echo " $(MAKE) check                         Run block, qapi-schema, unit, softfloat, qtest and decodetree tests"
+	@echo " $(MAKE) bench                         Run speed tests"
 	@echo
 	@echo "Individual test suites:"
-	@echo " $(MAKE) check-qtest-TARGET       Run qtest tests for given target"
-	@echo " $(MAKE) check-qtest              Run qtest tests"
-	@echo " $(MAKE) check-functional         Run python-based functional tests"
-	@echo " $(MAKE) check-functional-TARGET  Run functional tests for a given target"
-	@echo " $(MAKE) check-unit               Run qobject tests"
-	@echo " $(MAKE) check-qapi-schema        Run QAPI schema tests"
-	@echo " $(MAKE) check-tracetool          Run tracetool generator tests"
-	@echo " $(MAKE) check-block              Run block tests"
+	@echo " $(MAKE) check-qtest-TARGET            Run qtest tests for given target"
+	@echo " $(MAKE) check-qtest                   Run qtest tests"
+	@echo " $(MAKE) check-functional              Run python-based functional tests"
+	@echo " $(MAKE) check-functional-TARGET       Run functional tests for a given target"
+	@echo " $(MAKE) check-unit                    Run qobject tests"
+	@echo " $(MAKE) check-qapi-schema             Run QAPI schema tests"
+	@echo " $(MAKE) check-tracetool               Run tracetool generator tests"
+	@echo " $(MAKE) check-block                   Run block tests"
 ifneq ($(filter $(all-check-targets), check-softfloat),)
-	@echo " $(MAKE) check-tcg                Run TCG tests"
-	@echo " $(MAKE) check-softfloat          Run FPU emulation tests"
+	@echo " $(MAKE) check-tcg                     Run TCG tests"
+	@echo " $(MAKE) check-softfloat               Run FPU emulation tests"
+	@echo " $(MAKE) run-tcg-tests-TARGET-softmmu  Run TCG tests for a given target"
 endif
 	@echo
-	@echo " $(MAKE) check-report.junit.xml   Generates an aggregated XML test report"
-	@echo " $(MAKE) check-venv               Creates a Python venv for tests"
-	@echo " $(MAKE) check-clean              Clean the tests and related data"
+	@echo " $(MAKE) check-report.junit.xml        Generates an aggregated XML test report"
+	@echo " $(MAKE) check-venv                    Creates a Python venv for tests"
+	@echo " $(MAKE) check-clean                   Clean the tests and related data"
 	@echo
 	@echo "The following are useful for CI builds"
-	@echo " $(MAKE) check-build              Build most test binaries"
+	@echo " $(MAKE) check-build                   Build most test binaries"
 	@echo
 	@echo
 	@echo "The variable SPEED can be set to control the gtester speed setting."
Signature · 1 line
2.43.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 64 lines · ck

User can execute TCG tests for a specific TARGET using the command:

$ make run-tcg-tests-TARGET-softmmu

However, this command is not showing in 'make check-help' documentation, making it hard for new contributors to discover.

This commit help to resolve this by adding the description for the command, to the "check-tcg" section, as suggested by Thomas, in tests/Makefile.include.

Additionally, reformat the alignment to accommodate the length of the new command, ensuring the consistency of the output.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/228

---
  tests/Makefile.include | 33 +++++++++++++++++----------------
  1 file changed, 17 insertions(+), 16 deletions(-)
tests/Makefile.include +13 -15
index 7728098981..be3b78fdfb 100644
@@ -3,29 +3,30 @@
  .PHONY: check-help
  check-help:
  	@echo "Regression testing targets:"
-	@echo " $(MAKE) check                    Run block, qapi-schema, unit, softfloat, qtest and decodetree tests"
-	@echo " $(MAKE) bench                    Run speed tests"
+	@echo " $(MAKE) check                         Run block, qapi-schema, unit, softfloat, qtest and decodetree tests"
+	@echo " $(MAKE) bench                         Run speed tests"
  	@echo
  	@echo "Individual test suites:"
-	@echo " $(MAKE) check-qtest-TARGET       Run qtest tests for given target"
-	@echo " $(MAKE) check-qtest              Run qtest tests"
-	@echo " $(MAKE) check-functional         Run python-based functional tests"
-	@echo " $(MAKE) check-functional-TARGET  Run functional tests for a given target"
-	@echo " $(MAKE) check-unit               Run qobject tests"
-	@echo " $(MAKE) check-qapi-schema        Run QAPI schema tests"
-	@echo " $(MAKE) check-tracetool          Run tracetool generator tests"
-	@echo " $(MAKE) check-block              Run block tests"
+	@echo " $(MAKE) check-qtest-TARGET            Run qtest tests for given target"
+	@echo " $(MAKE) check-qtest                   Run qtest tests"
+	@echo " $(MAKE) check-functional              Run python-based functional tests"
+	@echo " $(MAKE) check-functional-TARGET       Run functional tests for a given target"
+	@echo " $(MAKE) check-unit                    Run qobject tests"
+	@echo " $(MAKE) check-qapi-schema             Run QAPI schema tests"
+	@echo " $(MAKE) check-tracetool               Run tracetool generator tests"
+	@echo " $(MAKE) check-block                   Run block tests"
  ifneq ($(filter $(all-check-targets), check-softfloat),)
-	@echo " $(MAKE) check-tcg                Run TCG tests"
-	@echo " $(MAKE) check-softfloat          Run FPU emulation tests"
+	@echo " $(MAKE) check-tcg                     Run TCG tests"
+	@echo " $(MAKE) check-softfloat               Run FPU emulation tests"
+	@echo " $(MAKE) run-tcg-tests-TARGET-softmmu  Run TCG tests for a given target"
  endif
  	@echo
-	@echo " $(MAKE) check-report.junit.xml   Generates an aggregated XML test report"
-	@echo " $(MAKE) check-venv               Creates a Python venv for tests"
-	@echo " $(MAKE) check-clean              Clean the tests and related data"

tests/Makefile.include line 32

Quoted 10 lines
tests/Makefile.include +4 -1
+	@echo " $(MAKE) check-report.junit.xml        Generates an aggregated XML test report"
+	@echo " $(MAKE) check-venv                    Creates a Python venv for tests"
+	@echo " $(MAKE) check-clean                   Clean the tests and related data"
  	@echo
  	@echo "The following are useful for CI builds"
-	@echo " $(MAKE) check-build              Build most test binaries"
+	@echo " $(MAKE) check-build                   Build most test binaries"
  	@echo
  	@echo
  	@echo "The variable SPEED can be set to control the gtester speed setting."
#2 lore raw

Thank you Thomas for your guidance and support!

Quoted 79 lines · Thomas Huth
Quoted 64 lines · ck

User can execute TCG tests for a specific TARGET using the command:

$ make run-tcg-tests-TARGET-softmmu

However, this command is not showing in 'make check-help' documentation, making it hard for new contributors to discover.

This commit help to resolve this by adding the description for the command, to the "check-tcg" section, as suggested by Thomas, in tests/Makefile.include.

Additionally, reformat the alignment to accommodate the length of the new command, ensuring the consistency of the output.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/228

---
  tests/Makefile.include | 33 +++++++++++++++++----------------
  1 file changed, 17 insertions(+), 16 deletions(-)
tests/Makefile.include +13 -15
index 7728098981..be3b78fdfb 100644
@@ -3,29 +3,30 @@
  .PHONY: check-help
  check-help:
      @echo "Regression testing targets:"
-     @echo " $(MAKE) check                    Run block, qapi-schema, unit, softfloat, qtest and decodetree tests"
-     @echo " $(MAKE) bench                    Run speed tests"
+     @echo " $(MAKE) check                         Run block, qapi-schema, unit, softfloat, qtest and decodetree tests"
+     @echo " $(MAKE) bench                         Run speed tests"
      @echo
      @echo "Individual test suites:"
-     @echo " $(MAKE) check-qtest-TARGET       Run qtest tests for given target"
-     @echo " $(MAKE) check-qtest              Run qtest tests"
-     @echo " $(MAKE) check-functional         Run python-based functional tests"
-     @echo " $(MAKE) check-functional-TARGET  Run functional tests for a given target"
-     @echo " $(MAKE) check-unit               Run qobject tests"
-     @echo " $(MAKE) check-qapi-schema        Run QAPI schema tests"
-     @echo " $(MAKE) check-tracetool          Run tracetool generator tests"
-     @echo " $(MAKE) check-block              Run block tests"
+     @echo " $(MAKE) check-qtest-TARGET            Run qtest tests for given target"
+     @echo " $(MAKE) check-qtest                   Run qtest tests"
+     @echo " $(MAKE) check-functional              Run python-based functional tests"
+     @echo " $(MAKE) check-functional-TARGET       Run functional tests for a given target"
+     @echo " $(MAKE) check-unit                    Run qobject tests"
+     @echo " $(MAKE) check-qapi-schema             Run QAPI schema tests"
+     @echo " $(MAKE) check-tracetool               Run tracetool generator tests"
+     @echo " $(MAKE) check-block                   Run block tests"
  ifneq ($(filter $(all-check-targets), check-softfloat),)
-     @echo " $(MAKE) check-tcg                Run TCG tests"
-     @echo " $(MAKE) check-softfloat          Run FPU emulation tests"
+     @echo " $(MAKE) check-tcg                     Run TCG tests"
+     @echo " $(MAKE) check-softfloat               Run FPU emulation tests"
+     @echo " $(MAKE) run-tcg-tests-TARGET-softmmu  Run TCG tests for a given target"
  endif
      @echo
-     @echo " $(MAKE) check-report.junit.xml   Generates an aggregated XML test report"
-     @echo " $(MAKE) check-venv               Creates a Python venv for tests"
-     @echo " $(MAKE) check-clean              Clean the tests and related data"

tests/Makefile.include line 32

Quoted 10 lines
tests/Makefile.include +4 -1
+     @echo " $(MAKE) check-report.junit.xml        Generates an aggregated XML test report"
+     @echo " $(MAKE) check-venv                    Creates a Python venv for tests"
+     @echo " $(MAKE) check-clean                   Clean the tests and related data"
      @echo
      @echo "The following are useful for CI builds"
-     @echo " $(MAKE) check-build              Build most test binaries"
+     @echo " $(MAKE) check-build                   Build most test binaries"
      @echo
      @echo
      @echo "The variable SPEED can be set to control the gtester speed setting."