tests/tcg: add some help output for running individual tests
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 15 Mar 2023 17:43:06 +0000 (17:43 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 22 Mar 2023 15:06:57 +0000 (15:06 +0000)
So you can do:

  cd tests/tcg/aarch64-linux-user
  make -f ../Makefile.target help

To see the list of tests. You can then run each one individually.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230315174331.2959-8-alex.bennee@linaro.org>

tests/tcg/Makefile.target

index a3b0aaf8af1ff4f0d3a9ec99999267e404e65124..8318caf924719efe9e258cd26393eb6b1370bd4f 100644 (file)
@@ -201,3 +201,10 @@ clean:
 
 distclean:
        rm -f config-cc.mak config-target.mak ../config-$(TARGET).mak
+
+.PHONY: help
+help:
+       @echo "TCG tests help $(TARGET_NAME)"
+       @echo "Built with $(CC)"
+       @echo "Available tests:"
+       @$(foreach t,$(RUN_TESTS),echo "  $t";)