[PATCH 1/2] Set TESTS to gdb.dwarf2/*.exp for PGO build training

H.J. Lu hjl.tools@gmail.com
Sat Jan 9 15:27:25 GMT 2021


When configured with --enable-pgo-build, set TESTS to gdb.dwarf2/*.exp
for PGO build training.

	* Makefile.in (TESTS): Set to gdb.dwarf2/*.exp for PGO build
	training.
---
 gdb/testsuite/Makefile.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in
index e33a7c04785..25f19f89c10 100644
--- a/gdb/testsuite/Makefile.in
+++ b/gdb/testsuite/Makefile.in
@@ -191,7 +191,12 @@ DO_RUNTEST = \
 # of tests.  For consistency we support it for check-single as well.
 # To specify all tests in a subdirectory, use TESTS=gdb.subdir/*.exp.
 # E.g., make check TESTS="gdb.server/*.exp gdb.threads/*.exp".
+ifdef PGO_BUILD_TRAINING
+# Tests for PGO build training.
+override TESTS = gdb.dwarf2/*.exp
+else
 TESTS :=
+endif
 
 ifeq ($(strip $(TESTS)),)
 expanded_tests_or_none :=
-- 
2.29.2



More information about the Gdb-patches mailing list