summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorShahab Vahedi <shahab@synopsys.email>2022-12-21 12:27:05 +0100
committerMark Wielaard <mark@klomp.org>2022-12-22 00:16:14 +0100
commitde3d46b3e7cb0f8f5bd9164ee83177c13c37355b (patch)
tree2c83b5a8cd6158248aa5a43e8a6e77976989cc81 /tests
parent8abee8bdecbeb3496af34038694da626b69b41c0 (diff)
downloadelfutils-de3d46b3e7cb0f8f5bd9164ee83177c13c37355b.tar.gz
Add support for Synopsys ARCv2 processors
There is no regression in tests for an x86_64 build, while the new hello_arc_hs4.ko is added as well. This is the only meaningful test that I could add at the moment, given the features supported by this port. $ cat tests/test-suite.log ========================================== elfutils 0.188: tests/test-suite.log ========================================== # TOTAL: 236 # PASS: 235 # SKIP: 1 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 SKIP: run-lfs-symbols.sh ======================== LFS testing is irrelevant on this system SKIP run-lfs-symbols.sh (exit status: 77) $ cat tests/run-strip-reloc.sh.log runtest hello_i386.ko runtest hello_x86_64.ko runtest hello_ppc64.ko runtest hello_s390.ko runtest hello_aarch64.ko runtest hello_m68k.ko runtest hello_riscv64.ko runtest hello_csky.ko runtest hello_arc_hs4.ko <-- [ new ARC HS4 test ] runtest /home/shahab/pahole_pkg/elfutils-git/bld_arc/src/strip runtest /home/shahab/pahole_pkg/elfutils-git/bld_arc/src/strip.o runtest strip-uncompressed.o runtest strip-compressed.o runtest testfile-debug-rel-ppc64.o runtest testfile-debug-rel-ppc64-z.o runtest testfile-debug-rel-ppc64-g.o PASS run-strip-reloc.sh (exit status: 0) Signed-off-by: Shahab Vahedi <shahab@synopsys.email>
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog6
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/hello_arc_hs4.ko.bz2bin0 -> 15004 bytes
-rwxr-xr-xtests/run-strip-reloc.sh4
4 files changed, 10 insertions, 1 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index b656029f..8c841fa1 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,9 @@
+2022-12-21 Shahab Vahedi <shahab@synopsys.email>
+
+ * hello_arc_hs4.ko.bz2: New testfile.
+ * run-strip-reloc.sh: Add ARC HS4 test.
+ * Makefile.am (EXTRA_DIST): Add hello_arc_hs4.ko.bz2.
+
2022-11-01 Aaron Merey <amerey@redhat.com>
* run-debuginfod-section.sh (RPM_BUILDID): Use buildid from non-zstd
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 356b3fbf..c35a7c33 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -285,6 +285,7 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh run-ar.sh \
run-strip-reloc.sh hello_i386.ko.bz2 hello_x86_64.ko.bz2 \
hello_ppc64.ko.bz2 hello_s390.ko.bz2 hello_aarch64.ko.bz2 \
hello_m68k.ko.bz2 hello_riscv64.ko.bz2 hello_csky.ko.bz2 \
+ hello_arc_hs4.ko.bz2 \
run-unstrip-test.sh run-unstrip-test2.sh \
testfile-info-link.bz2 testfile-info-link.debuginfo.bz2 \
testfile-info-link.stripped.bz2 run-unstrip-test3.sh \
diff --git a/tests/hello_arc_hs4.ko.bz2 b/tests/hello_arc_hs4.ko.bz2
new file mode 100644
index 00000000..56ccb3c4
--- /dev/null
+++ b/tests/hello_arc_hs4.ko.bz2
Binary files differ
diff --git a/tests/run-strip-reloc.sh b/tests/run-strip-reloc.sh
index b7ec1420..033ed278 100755
--- a/tests/run-strip-reloc.sh
+++ b/tests/run-strip-reloc.sh
@@ -18,7 +18,8 @@
. $srcdir/test-subr.sh
testfiles hello_i386.ko hello_x86_64.ko hello_ppc64.ko hello_s390.ko \
- hello_aarch64.ko hello_m68k.ko hello_riscv64.ko hello_csky.ko
+ hello_aarch64.ko hello_m68k.ko hello_riscv64.ko hello_csky.ko \
+ hello_arc_hs4.ko
tempfiles readelf.out readelf.out1 readelf.out2
tempfiles out.stripped1 out.debug1 out.stripped2 out.debug2
@@ -120,6 +121,7 @@ runtest hello_aarch64.ko 1
runtest hello_m68k.ko 1
runtest hello_riscv64.ko 1
runtest hello_csky.ko 1
+runtest hello_arc_hs4.ko 1
# self test, shouldn't impact non-ET_REL files at all.
runtest ${abs_top_builddir}/src/strip 0