Make 'make check TESTS="..."' work from GDB's build dir.
authorPedro Alves <palves@redhat.com>
Wed, 12 Mar 2014 19:40:52 +0000 (19:40 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 12 Mar 2014 19:52:00 +0000 (19:52 +0000)
I noticed 'make check TESTS="..."' works when ran from gdb/testsuite/,
but TESTS is ignored when "make check" is ran from gdb/.

The issue is that TESTS isn't being passed to the testsuite subdir
make invocation.

gdb/
2014-03-12  Pedro Alves  <palves@redhat.com>

* Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.

gdb/ChangeLog
gdb/Makefile.in

index 6085aaa392cc97abc298f225da6cfda8edd082ed..a3fc411ebfb88c7868899d9c0dae8d1edc2f6e86 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-12  Pedro Alves  <palves@redhat.com>
+
+       * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
+
 2014-03-12  Tom Tromey  <tromey@redhat.com>
 
        * inf-child.c (return_zero): New function.
index 2558da53326eb9061cde8363e39a8ec6ac184131..3efedc88307896059cd7eb190f58555ac781fb19 100644 (file)
@@ -766,7 +766,8 @@ TARGET_FLAGS_TO_PASS = \
        "MAKEHTML=$(MAKEHTML)" \
        "RUNTEST=$(RUNTEST)" \
        "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
-       "FORCE_PARALLEL=$(FORCE_PARALLEL)"
+       "FORCE_PARALLEL=$(FORCE_PARALLEL)" \
+       "TESTS=$(TESTS)"
 
 # All source files that go into linking GDB.
 # Links made at configuration time should not be specified here, since