diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2021-01-05 13:25:56 +0000 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2021-01-05 14:53:40 +0000 |
commit | c59e30ed1727135f8efb79890f2c458f73709757 (patch) | |
tree | ed4d06b6438829589f49f3141791debf18b95149 /Makefile.in | |
parent | 1038406a8f6609ad0a449746da70393b0835f699 (diff) | |
download | gdb-c59e30ed1727135f8efb79890f2c458f73709757.zip gdb-c59e30ed1727135f8efb79890f2c458f73709757.tar.gz gdb-c59e30ed1727135f8efb79890f2c458f73709757.tar.bz2 |
libctf: new testsuite
This introduces a new lookup testsuite under libctf, which operates by
compiling (with libtool) a "lookup" .c file that uses libctf to analyze
some other program, then compiling some number of test object files with
CTF and optionally linking them together and running the lookup program
on the test object files (or linked test binary), before diffing the
result much as run_dump_test does.
This lets us test the portions of libctf that are not previously
testable, notably the portions that do lookup on linked output and
that create dynamic dictionaries and then do lookup on them before
writing them out, something that is not tested by the ld-ctf testsuite
because the linker never does this.
A couple of simple tests are added: one testing the functionality of
enum lookups, and one testing that the recently-added commit adding
extra paranoia to incomplete type handling doesn't break linking and
that the result of the link is an (otherwise-impossible) array of
forward type in the shared CTF dict.
ChangeLog
2021-01-05 Nick Alcock <nick.alcock@oracle.com>
* Makefile.def (libctf): No longer no_check. Checking depends on
all-ld.
* Makefile.in: Regenerated.
libctf/ChangeLog
2021-01-05 Nick Alcock <nick.alcock@oracle.com>
* Makefile.am (EXPECT): New.
(RUNTEST): Likewise.
(RUNTESTFLAGS): Likewise.
(CC_FOR_TARGET): Likewise.
(check-DEJAGNU): Likewise.
(AUTOMAKE_OPTIONS): Add dejagnu.
* Makefile.in: Regenerated.
* testsuite/config/default.exp: New.
* testsuite/lib/ctf-lib.exp: Likewise.
* testsuite/libctf-lookup/enum.lk: New test.
* testsuite/libctf-lookup/enum-ctf.c: New CTF input.
* testsuite/libctf-lookup/enum.c: New lookup test.
* testsuite/libctf-lookup/ambiguous-struct*.c: New test.
* testsuite/libctf-lookup/lookup.exp: New.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index fe34132..4fe7321 100644 --- a/Makefile.in +++ b/Makefile.in @@ -34761,6 +34761,12 @@ maybe-check-libctf: maybe-check-libctf: check-libctf check-libctf: + @: $(MAKE); $(unstage) + @r=`${PWD_COMMAND}`; export r; \ + s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ + $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ + (cd $(HOST_SUBDIR)/libctf && \ + $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) @endif libctf @@ -52366,6 +52372,13 @@ configure-stage3-libctf: maybe-all-stage3-libiconv configure-stage4-libctf: maybe-all-stage4-libiconv configure-stageprofile-libctf: maybe-all-stageprofile-libiconv configure-stagefeedback-libctf: maybe-all-stagefeedback-libiconv +check-libctf: maybe-all-ld +check-stage1-libctf: maybe-all-stage1-ld +check-stage2-libctf: maybe-all-stage2-ld +check-stage3-libctf: maybe-all-stage3-ld +check-stage4-libctf: maybe-all-stage4-ld +check-stageprofile-libctf: maybe-all-stageprofile-ld +check-stagefeedback-libctf: maybe-all-stagefeedback-ld distclean-gnulib: maybe-distclean-gdb distclean-gnulib: maybe-distclean-gdbserver all-bison: maybe-all-build-texinfo |