binutils-gdb/libctf
Nick Alcock c59e30ed17 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.
2021-01-05 14:53:40 +00:00
..
testsuite libctf: new testsuite 2021-01-05 14:53:40 +00:00
.gitignore
aclocal.m4
ChangeLog libctf: new testsuite 2021-01-05 14:53:40 +00:00
ChangeLog-2020 ChangeLog rotation 2021-01-01 10:31:02 +10:30
config.h.in
configure libctf: rip out BFD_DEPENDENCIES / BFD_LIBADD 2021-01-05 14:53:40 +00:00
configure.ac libctf: rip out BFD_DEPENDENCIES / BFD_LIBADD 2021-01-05 14:53:40 +00:00
ctf-archive.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-create.c libctf, ld: prohibit getting the size or alignment of forwards 2021-01-05 14:53:39 +00:00
ctf-decl.c libctf, ld: dump enums: generally improve dump formatting 2021-01-05 14:53:39 +00:00
ctf-decls.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-dedup.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-dump.c libctf, ld: dump enums: generally improve dump formatting 2021-01-05 14:53:39 +00:00
ctf-endian.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-error.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-hash.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-impl.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-inlines.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-intl.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-labels.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-link.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-lookup.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-open-bfd.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-open.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-qsort_r.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-sha1.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-sha1.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-string.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-subr.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ctf-types.c libctf, ld: dump enums: generally improve dump formatting 2021-01-05 14:53:39 +00:00
ctf-util.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
elf.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
libctf.ver Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
Makefile.am libctf: new testsuite 2021-01-05 14:53:40 +00:00
Makefile.in libctf: new testsuite 2021-01-05 14:53:40 +00:00
swap.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30