]> git.ipfire.org Git - thirdparty/elfutils.git/commit
tests: Split up run-strip-reloc.sh test in three subtests
authorMark Wielaard <mark@klomp.org>
Sat, 17 Jun 2023 19:37:41 +0000 (21:37 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 17 Jun 2023 19:37:41 +0000 (21:37 +0200)
commit0a3ea24da509efe18fe04b931ed89b4013e66340
treed22ace3ca88457c57d55871fb22f2cf462b32055
parent4ef4fea4a8c3ae69cb3259f073dfc53d261b263b
tests: Split up run-strip-reloc.sh test in three subtests

This test can take a very long time under valgrind (on s390x).
Split it into three tests for kernel modules, self-test and ppc64.
That way the tests can run in parallel and each individual
test produces a result (so the buildbot won't time out).

Also change the comparison to elfcmp instead of doing
readelf -a on both and compare the textual output.

* tests/run-strip-reloc.sh: Split out generic part into...
* tests/strip-reloc-subr.sh: ...this file.
* tests/run-strip-reloc-ko.sh: New file.
* tests/run-strip-reloc-ppc64.sh: New file.
* tests/run-strip-reloc-self.sh: New file.
* tests/Makefile.am (TESTS): Remove run-strip-reloc.sh.
Add run-strip-reloc-ko.sh, run-strip-reloc-self.sh and
run-strip-reloc-ppc64.sh
(EXTRA_DIST): Remove run-strip-reloc.sh. Add
strip-reloc-subr.sh, run-strip-reloc-ko.sh,
run-strip-reloc-self.sh and run-strip-reloc-ppc64.sh.

Signed-off-by: Mark Wielaard <mark@klomp.org>
tests/Makefile.am
tests/run-strip-reloc-ko.sh [new file with mode: 0755]
tests/run-strip-reloc-ppc64.sh [new file with mode: 0755]
tests/run-strip-reloc-self.sh [new file with mode: 0755]
tests/run-strip-reloc.sh [deleted file]
tests/strip-reloc-subr.sh [new file with mode: 0755]