]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - ld/testsuite/ld-ctf/ctf.exp
ld, testsuite: only run CTF tests when ld and GCC support CTF
authorNick Alcock <nick.alcock@oracle.com>
Thu, 11 Jun 2020 14:44:48 +0000 (15:44 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 22 Jul 2020 17:05:32 +0000 (18:05 +0100)
commit7cdfc3462fbbb27727ddd83d356cf79af8854740
tree8099e7b67ee5dfcf13bcb816a85e87efc0e19c44
parentb1b33524ad3c439badba3ce4fa51c0d5a317c4a5
ld, testsuite: only run CTF tests when ld and GCC support CTF

The CTF testsuite runs GCC to generate CTF that it knows matches the
input .c files before doing a run_dump_test over it.  So we need a GCC
capable of doing that, and we need to always avoid running those tests
if libctf was disabled because the linker will never be capable of it.

ld/
* configure.ac (enable_libctf): Substitute it.
* Makefile.am (enablings.exp): New.
(EXTRA_DEJAGNU_SITE_CONFIG): Add it.
(DISTCLEANFILES): Likewise.
* Makefile.in: Regenerate.
* configure: Likewise.
* testsuite/lib/ld-lib.exp (compile_one_cc): New.
(check_ctf_available): Likewise.
(skip_ctf_tests): Likewise.
* testsuite/ld-ctf/ctf.exp: Call skip_ctf_tests.
ld/ChangeLog
ld/Makefile.am
ld/Makefile.in
ld/configure
ld/configure.ac
ld/testsuite/ld-ctf/ctf.exp
ld/testsuite/lib/ld-lib.exp