Support 'make check-parallel' in gdb's build dir
authorPedro Alves <palves@redhat.com>
Thu, 11 Feb 2016 19:36:39 +0000 (19:36 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 11 Feb 2016 19:36:39 +0000 (19:36 +0000)
commite352bf0a3c8430aeab9d6f3781c7b31b09c8b8b9
tree688706339bd035091322d56b3459a0fc7b5d2e8c
parentbec2ab5a15d96026d9f5470f7997fd48f7330fb2
Support 'make check-parallel' in gdb's build dir

Currently, you can cd to the gdb/testsuite/ dir and use
make check-parallel, instead of using FORCE_PARALLEL:

 $ make -j8 check-parallel RUNTESTFLAGS="--target_board=native-gdbserver"
 $ make -j8 check RUNTESTFLAGS="--target_board=native-gdbserver" FORCE_PARALLEL=1

But you can't do that in the build/gdb/ dir:

 $ make check-parallel RUNTESTFLAGS="--target_board=native-gdbserver"
 make: *** No rule to make target `check-parallel'.  Stop.

I find check-parallel a bit more convenient, and more typo-proof, so
this patch makes it work from the gdb build dir too.

While documenting this in testsuite/README, I found that the parallel
testing mode would better be pulled out to its own section and
extended.

gdb/ChangeLog:
2016-02-11  Pedro Alves  <palves@redhat.com>

* Makefile.in (check-parallel): New rule.

gdb/testsuite/ChangeLog:
2016-02-11  Pedro Alves  <palves@redhat.com>

* README (Parallel testing): New section.
(GDB_PARALLEL): Rewrite.
(FORCE_PARALLEL): Document.
gdb/ChangeLog
gdb/Makefile.in
gdb/testsuite/ChangeLog
gdb/testsuite/README