ld: new CTF testsuite
authorEgeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
Fri, 5 Jun 2020 22:28:22 +0000 (23:28 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 22 Jul 2020 17:05:19 +0000 (18:05 +0100)
commitb1b33524ad3c439badba3ce4fa51c0d5a317c4a5
tree85ea650a62c01d5a1199801e4006723ade2b2868
parent0b88415108880f2bd6c0f40937d7c321e524c3a9
ld: new CTF testsuite

Uses the new cc option to run_dump_test to compile most tests from C
code, ensuring that the types in the C code accurately describe what the
.d file is testing.

(Some tests, mostly those testing malformed CTF, run directly from .s,
or include both .s and .c.)

ld/
* testsuite/ld-ctf/ctf.exp: New file.
* testsuite/ld-ctf/A-2.c: New file.
* testsuite/ld-ctf/A.c: New file.
* testsuite/ld-ctf/B-2.c: New file.
* testsuite/ld-ctf/B.c: New file.
* testsuite/ld-ctf/C-2.c: New file.
* testsuite/ld-ctf/C.c: New file.
* testsuite/ld-ctf/array-char.c: New file.
* testsuite/ld-ctf/array-int.c: New file.
* testsuite/ld-ctf/array.d: New file.
* testsuite/ld-ctf/child-float.c: New file.
* testsuite/ld-ctf/child-int.c: New file.
* testsuite/ld-ctf/conflicting-cycle-1.B-1.d: New file.
* testsuite/ld-ctf/conflicting-cycle-1.B-2.d: New file.
* testsuite/ld-ctf/conflicting-cycle-1.parent.d: New file.
* testsuite/ld-ctf/conflicting-cycle-2.A-1.d: New file.
* testsuite/ld-ctf/conflicting-cycle-2.A-2.d: New file.
* testsuite/ld-ctf/conflicting-cycle-2.parent.d: New file.
* testsuite/ld-ctf/conflicting-cycle-3.C-1.d: New file.
* testsuite/ld-ctf/conflicting-cycle-3.C-2.d: New file.
* testsuite/ld-ctf/conflicting-cycle-3.parent.d: New file.
* testsuite/ld-ctf/conflicting-enums.d: New file.
* testsuite/ld-ctf/conflicting-typedefs.d: New file.
* testsuite/ld-ctf/cross-tu-1.c: New file.
* testsuite/ld-ctf/cross-tu-2.c: New file.
* testsuite/ld-ctf/cross-tu-conflicting-2.c: New file.
* testsuite/ld-ctf/cross-tu-cyclic-1.c: New file.
* testsuite/ld-ctf/cross-tu-cyclic-2.c: New file.
* testsuite/ld-ctf/cross-tu-cyclic-3.c: New file.
* testsuite/ld-ctf/cross-tu-cyclic-4.c: New file.
* testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: New file.
* testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: New file.
* testsuite/ld-ctf/cross-tu-into-cycle.d: New file.
* testsuite/ld-ctf/cross-tu-noncyclic.d: New file.
* testsuite/ld-ctf/cycle-1.c: New file.
* testsuite/ld-ctf/cycle-1.d: New file.
* testsuite/ld-ctf/cycle-2.A.d: New file.
* testsuite/ld-ctf/cycle-2.B.d: New file.
* testsuite/ld-ctf/cycle-2.C.d: New file.
* testsuite/ld-ctf/diag-ctf-version-0.d: New file.
* testsuite/ld-ctf/diag-ctf-version-0.s: New file.
* testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.d: New file.
* testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.s: New file.
* testsuite/ld-ctf/diag-ctf-version-f.d: New file.
* testsuite/ld-ctf/diag-ctf-version-f.s: New file.
* testsuite/ld-ctf/diag-cttname-invalid.d: New file.
* testsuite/ld-ctf/diag-cttname-invalid.s: New file.
* testsuite/ld-ctf/diag-cttname-null.d: New file.
* testsuite/ld-ctf/diag-cttname-null.s: New file.
* testsuite/ld-ctf/diag-cuname.d: New file.
* testsuite/ld-ctf/diag-cuname.s: New file.
* testsuite/ld-ctf/diag-decompression-failure.d: New file.
* testsuite/ld-ctf/diag-decompression-failure.s: New file.
* testsuite/ld-ctf/diag-parlabel.d: New file.
* testsuite/ld-ctf/diag-parlabel.s: New file.
* testsuite/ld-ctf/diag-parname.d: New file.
* testsuite/ld-ctf/diag-parname.s: New file.
* testsuite/ld-ctf/diag-unsupported-flag.d: New file.
* testsuite/ld-ctf/diag-unsupported-flag.s: New file.
* testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: New file.
* testsuite/ld-ctf/diag-wrong-magic-number.d: New file.
* testsuite/ld-ctf/diag-wrong-magic-number.s: New file.
* testsuite/ld-ctf/enum-2.c: New file.
* testsuite/ld-ctf/enum.c: New file.
* testsuite/ld-ctf/function.c: New file.
* testsuite/ld-ctf/function.d: New file.
* testsuite/ld-ctf/slice.c: New file.
* testsuite/ld-ctf/slice.d: New file.
* testsuite/ld-ctf/super-sub-cycles.c: New file.
* testsuite/ld-ctf/super-sub-cycles.d: New file.
* testsuite/ld-ctf/typedef-int.c: New file.
* testsuite/ld-ctf/typedef-long.c: New file.
* testsuite/ld-ctf/union-1.c: New file.
74 files changed:
ld/ChangeLog
ld/testsuite/ld-ctf/A-2.c [new file with mode: 0644]
ld/testsuite/ld-ctf/A.c [new file with mode: 0644]
ld/testsuite/ld-ctf/B-2.c [new file with mode: 0644]
ld/testsuite/ld-ctf/B.c [new file with mode: 0644]
ld/testsuite/ld-ctf/C-2.c [new file with mode: 0644]
ld/testsuite/ld-ctf/C.c [new file with mode: 0644]
ld/testsuite/ld-ctf/array-char.c [new file with mode: 0644]
ld/testsuite/ld-ctf/array-int.c [new file with mode: 0644]
ld/testsuite/ld-ctf/array.d [new file with mode: 0644]
ld/testsuite/ld-ctf/child-float.c [new file with mode: 0644]
ld/testsuite/ld-ctf/child-int.c [new file with mode: 0644]
ld/testsuite/ld-ctf/conflicting-cycle-1.B-1.d [new file with mode: 0644]
ld/testsuite/ld-ctf/conflicting-cycle-1.B-2.d [new file with mode: 0644]
ld/testsuite/ld-ctf/conflicting-cycle-1.parent.d [new file with mode: 0644]
ld/testsuite/ld-ctf/conflicting-cycle-2.A-1.d [new file with mode: 0644]
ld/testsuite/ld-ctf/conflicting-cycle-2.A-2.d [new file with mode: 0644]
ld/testsuite/ld-ctf/conflicting-cycle-2.parent.d [new file with mode: 0644]
ld/testsuite/ld-ctf/conflicting-cycle-3.C-1.d [new file with mode: 0644]
ld/testsuite/ld-ctf/conflicting-cycle-3.C-2.d [new file with mode: 0644]
ld/testsuite/ld-ctf/conflicting-cycle-3.parent.d [new file with mode: 0644]
ld/testsuite/ld-ctf/conflicting-enums.d [new file with mode: 0644]
ld/testsuite/ld-ctf/conflicting-typedefs.d [new file with mode: 0644]
ld/testsuite/ld-ctf/cross-tu-1.c [new file with mode: 0644]
ld/testsuite/ld-ctf/cross-tu-2.c [new file with mode: 0644]
ld/testsuite/ld-ctf/cross-tu-conflicting-2.c [new file with mode: 0644]
ld/testsuite/ld-ctf/cross-tu-cyclic-1.c [new file with mode: 0644]
ld/testsuite/ld-ctf/cross-tu-cyclic-2.c [new file with mode: 0644]
ld/testsuite/ld-ctf/cross-tu-cyclic-3.c [new file with mode: 0644]
ld/testsuite/ld-ctf/cross-tu-cyclic-4.c [new file with mode: 0644]
ld/testsuite/ld-ctf/cross-tu-cyclic-conflicting.d [new file with mode: 0644]
ld/testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d [new file with mode: 0644]
ld/testsuite/ld-ctf/cross-tu-into-cycle.d [new file with mode: 0644]
ld/testsuite/ld-ctf/cross-tu-noncyclic.d [new file with mode: 0644]
ld/testsuite/ld-ctf/ctf.exp [new file with mode: 0644]
ld/testsuite/ld-ctf/cycle-1.c [new file with mode: 0644]
ld/testsuite/ld-ctf/cycle-1.d [new file with mode: 0644]
ld/testsuite/ld-ctf/cycle-2.A.d [new file with mode: 0644]
ld/testsuite/ld-ctf/cycle-2.B.d [new file with mode: 0644]
ld/testsuite/ld-ctf/cycle-2.C.d [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-ctf-version-0.d [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-ctf-version-0.s [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.d [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.s [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-ctf-version-f.d [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-ctf-version-f.s [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-cttname-invalid.d [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-cttname-invalid.s [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-cttname-null.d [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-cttname-null.s [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-cuname.d [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-cuname.s [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-decompression-failure.d [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-decompression-failure.s [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-parlabel.d [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-parlabel.s [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-parname.d [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-parname.s [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-unsupported-flag.d [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-unsupported-flag.s [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-wrong-magic-number-mixed.d [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-wrong-magic-number.d [new file with mode: 0644]
ld/testsuite/ld-ctf/diag-wrong-magic-number.s [new file with mode: 0644]
ld/testsuite/ld-ctf/enum-2.c [new file with mode: 0644]
ld/testsuite/ld-ctf/enum.c [new file with mode: 0644]
ld/testsuite/ld-ctf/function.c [new file with mode: 0644]
ld/testsuite/ld-ctf/function.d [new file with mode: 0644]
ld/testsuite/ld-ctf/slice.c [new file with mode: 0644]
ld/testsuite/ld-ctf/slice.d [new file with mode: 0644]
ld/testsuite/ld-ctf/super-sub-cycles.c [new file with mode: 0644]
ld/testsuite/ld-ctf/super-sub-cycles.d [new file with mode: 0644]
ld/testsuite/ld-ctf/typedef-int.c [new file with mode: 0644]
ld/testsuite/ld-ctf/typedef-long.c [new file with mode: 0644]
ld/testsuite/ld-ctf/union-1.c [new file with mode: 0644]