Enable automake parallel-tests for make check.
authorMark Wielaard <mjw@redhat.com>
Fri, 26 Apr 2013 21:44:25 +0000 (23:44 +0200)
committerMark Wielaard <mjw@redhat.com>
Fri, 26 Apr 2013 22:15:29 +0000 (00:15 +0200)
commit86be792c727ea0c09d687e76d98739a5af23a803
tree34066a242bf21a32f43916bdfc069dbc4cb6a6e0
parent1704baf67698c269bc81fbaec0483e53d9709702
Enable automake parallel-tests for make check.

The parallel-tests option was introduced in automake 1.11 and is the
default since automake 1.13. All tests can now be ran in parallel with
make check -j. To enable this all tests are ran in their own temporary
directory so they don't stomp on each others input or output files.
On my machine (4 cores) make check takes ~20 seconds, but now with
make check -j8 takes only ~4 seconds.

ChangeLog:

       * configure.ac (AM_INIT_AUTOMAKE): Request parallel-tests.

tests/ChangeLog:

       * Makefile.am (installed_TESTS_ENVIRONMENT): Export environment,
       remove wrapper.
       (TESTS_ENVIRONMENT): Likewise.
       (installed_LOG_COMPILER): New variable defining wrapper.
       (LOG_COMPILER): Likewise.
       * run-*.sh: Fixup location of input and output files.
       * test-subr.sh: Create test_dir, pushd to execute test in.
       (trap): Remove test_dir.
       (testfiles): Use abs_srcdir.
       (installed_testrun): Match on abs_builddir or abs_top_builddir.
       (self_test_files): Adjust path.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
70 files changed:
ChangeLog
configure.ac
tests/ChangeLog
tests/Makefile.am
tests/run-addrname-test.sh
tests/run-addrscopes.sh
tests/run-alldts.sh
tests/run-allfcts.sh
tests/run-allregs.sh
tests/run-arextract.sh
tests/run-arsymtest.sh
tests/run-bug1-test.sh
tests/run-disasm-x86-64.sh
tests/run-disasm-x86.sh
tests/run-dwarf-getmacros.sh
tests/run-dwarf-getstring.sh
tests/run-dwfl-addr-sect.sh
tests/run-dwfl-bug-offline-rel.sh
tests/run-dwfl-report-elf-align.sh
tests/run-dwfllines.sh
tests/run-dwflsyms.sh
tests/run-early-offscn.sh
tests/run-ecp-test.sh
tests/run-ecp-test2.sh
tests/run-elf_cntl_gelf_getshdr.sh
tests/run-elflint-self.sh
tests/run-elflint-test.sh
tests/run-find-prologues.sh
tests/run-funcscopes.sh
tests/run-get-aranges.sh
tests/run-get-files.sh
tests/run-get-lines.sh
tests/run-get-pubnames.sh
tests/run-line2addr.sh
tests/run-low_high_pc.sh
tests/run-macro-test.sh
tests/run-native-test.sh
tests/run-nm-self.sh
tests/run-prelink-addr-test.sh
tests/run-ranlib-test.sh
tests/run-ranlib-test2.sh
tests/run-readelf-aranges.sh
tests/run-readelf-d.sh
tests/run-readelf-dwz-multi.sh
tests/run-readelf-gdb_index.sh
tests/run-readelf-line.sh
tests/run-readelf-loc.sh
tests/run-readelf-macro.sh
tests/run-readelf-mixed-corenote.sh
tests/run-readelf-s.sh
tests/run-readelf-self.sh
tests/run-readelf-test1.sh
tests/run-readelf-test2.sh
tests/run-readelf-test3.sh
tests/run-readelf-test4.sh
tests/run-readelf-twofiles.sh
tests/run-readelf-vmcoreinfo.sh
tests/run-rerequest_tag.sh
tests/run-show-abbrev.sh
tests/run-show-die-info.sh
tests/run-strings-test.sh
tests/run-strip-groups.sh
tests/run-strip-reloc.sh
tests/run-strip-test.sh
tests/run-test-archive64.sh
tests/run-test-flag-nobits.sh
tests/run-typeiter.sh
tests/run-unstrip-n.sh
tests/run-unstrip-test.sh
tests/test-subr.sh