mold/0001-Skip-tests-that-fail-o...

120 lines
4.0 KiB
Diff
Raw Normal View History

2022-06-18 19:46:53 +00:00
From 5cb5f63ea2f2fc6d6ea24a3a9f1e73f6fc6c9fc9 Mon Sep 17 00:00:00 2001
Message-Id: <5cb5f63ea2f2fc6d6ea24a3a9f1e73f6fc6c9fc9.1655550664.git.github@sicherha.de>
2022-04-30 19:32:09 +00:00
From: Christoph Erhardt <github@sicherha.de>
Date: Fri, 29 Apr 2022 21:44:33 +0200
2022-06-18 19:46:53 +00:00
Subject: [PATCH] Skip tests that fail on armv7l
2022-04-30 19:32:09 +00:00
---
test/elf/exception.sh | 2 ++
2022-06-18 19:46:53 +00:00
test/elf/gdb-index-compress-output.sh | 1 +
test/elf/gdb-index-dwarf2.sh | 1 +
test/elf/gdb-index-dwarf3.sh | 1 +
test/elf/gdb-index-dwarf4.sh | 1 +
test/elf/gdb-index-dwarf5.sh | 1 +
2022-04-30 19:32:09 +00:00
test/elf/hello-static.sh | 2 ++
test/elf/ifunc-static.sh | 2 ++
2022-06-18 19:46:53 +00:00
8 files changed, 11 insertions(+)
2022-04-30 19:32:09 +00:00
diff --git a/test/elf/exception.sh b/test/elf/exception.sh
2022-06-18 19:46:53 +00:00
index 3288c783..2e9f02f9 100755
2022-04-30 19:32:09 +00:00
--- a/test/elf/exception.sh
+++ b/test/elf/exception.sh
2022-06-18 19:46:53 +00:00
@@ -13,6 +13,8 @@ cd "$(dirname "$0")"/../..
2022-04-30 19:32:09 +00:00
t=out/test/elf/$testname
mkdir -p $t
+[ $MACHINE = armv7l ] && { echo skipped; exit; }
+
cat <<EOF | $CXX -c -o $t/a.o -xc++ -fPIC -
int main() {
try {
diff --git a/test/elf/gdb-index-compress-output.sh b/test/elf/gdb-index-compress-output.sh
2022-06-18 19:46:53 +00:00
index 926f70df..62eda85c 100755
2022-04-30 19:32:09 +00:00
--- a/test/elf/gdb-index-compress-output.sh
+++ b/test/elf/gdb-index-compress-output.sh
2022-06-18 19:46:53 +00:00
@@ -15,6 +15,7 @@ mkdir -p $t
2022-04-30 19:32:09 +00:00
[ $MACHINE = $(uname -m) ] || { echo skipped; exit; }
+[ $MACHINE = armv7l ] && { echo skipped; exit; }
2022-06-18 19:46:53 +00:00
[ $MACHINE = riscv64 ] && { echo skipped; exit; }
2022-04-30 19:32:09 +00:00
2022-06-18 19:46:53 +00:00
which gdb >& /dev/null || { echo skipped; exit; }
2022-04-30 19:32:09 +00:00
diff --git a/test/elf/gdb-index-dwarf2.sh b/test/elf/gdb-index-dwarf2.sh
2022-06-18 19:46:53 +00:00
index 0ee1449c..d2efba9c 100755
2022-04-30 19:32:09 +00:00
--- a/test/elf/gdb-index-dwarf2.sh
+++ b/test/elf/gdb-index-dwarf2.sh
2022-06-18 19:46:53 +00:00
@@ -15,6 +15,7 @@ mkdir -p $t
2022-04-30 19:32:09 +00:00
[ $MACHINE = $(uname -m) ] || { echo skipped; exit; }
+[ $MACHINE = armv7l ] && { echo skipped; exit; }
2022-06-18 19:46:53 +00:00
[ $MACHINE = riscv64 ] && { echo skipped; exit; }
2022-04-30 19:32:09 +00:00
2022-06-18 19:46:53 +00:00
which gdb >& /dev/null || { echo skipped; exit; }
2022-04-30 19:32:09 +00:00
diff --git a/test/elf/gdb-index-dwarf3.sh b/test/elf/gdb-index-dwarf3.sh
2022-06-18 19:46:53 +00:00
index 600adcf1..4d29416c 100755
2022-04-30 19:32:09 +00:00
--- a/test/elf/gdb-index-dwarf3.sh
+++ b/test/elf/gdb-index-dwarf3.sh
2022-06-18 19:46:53 +00:00
@@ -15,6 +15,7 @@ mkdir -p $t
2022-04-30 19:32:09 +00:00
[ $MACHINE = $(uname -m) ] || { echo skipped; exit; }
+[ $MACHINE = armv7l ] && { echo skipped; exit; }
2022-06-18 19:46:53 +00:00
[ $MACHINE = riscv64 ] && { echo skipped; exit; }
2022-04-30 19:32:09 +00:00
2022-06-18 19:46:53 +00:00
which gdb >& /dev/null || { echo skipped; exit; }
2022-04-30 19:32:09 +00:00
diff --git a/test/elf/gdb-index-dwarf4.sh b/test/elf/gdb-index-dwarf4.sh
2022-06-18 19:46:53 +00:00
index a248fbcd..0df17625 100755
2022-04-30 19:32:09 +00:00
--- a/test/elf/gdb-index-dwarf4.sh
+++ b/test/elf/gdb-index-dwarf4.sh
2022-06-18 19:46:53 +00:00
@@ -15,6 +15,7 @@ mkdir -p $t
2022-04-30 19:32:09 +00:00
[ $MACHINE = $(uname -m) ] || { echo skipped; exit; }
+[ $MACHINE = armv7l ] && { echo skipped; exit; }
2022-06-18 19:46:53 +00:00
[ $MACHINE = riscv64 ] && { echo skipped; exit; }
2022-04-30 19:32:09 +00:00
2022-06-18 19:46:53 +00:00
which gdb >& /dev/null || { echo skipped; exit; }
2022-04-30 19:32:09 +00:00
diff --git a/test/elf/gdb-index-dwarf5.sh b/test/elf/gdb-index-dwarf5.sh
2022-06-18 19:46:53 +00:00
index ee33e8d0..01d324b6 100755
2022-04-30 19:32:09 +00:00
--- a/test/elf/gdb-index-dwarf5.sh
+++ b/test/elf/gdb-index-dwarf5.sh
2022-06-18 19:46:53 +00:00
@@ -15,6 +15,7 @@ mkdir -p $t
2022-04-30 19:32:09 +00:00
[ $MACHINE = $(uname -m) ] || { echo skipped; exit; }
+[ $MACHINE = armv7l ] && { echo skipped; exit; }
2022-06-18 19:46:53 +00:00
[ $MACHINE = riscv64 ] && { echo skipped; exit; }
2022-04-30 19:32:09 +00:00
2022-06-18 19:46:53 +00:00
which gdb >& /dev/null || { echo skipped; exit; }
2022-04-30 19:32:09 +00:00
diff --git a/test/elf/hello-static.sh b/test/elf/hello-static.sh
2022-06-18 19:46:53 +00:00
index 62dce63c..6c1dde72 100755
2022-04-30 19:32:09 +00:00
--- a/test/elf/hello-static.sh
+++ b/test/elf/hello-static.sh
2022-06-18 19:46:53 +00:00
@@ -13,6 +13,8 @@ cd "$(dirname "$0")"/../..
2022-04-30 19:32:09 +00:00
t=out/test/elf/$testname
mkdir -p $t
+[ $MACHINE = armv7l ] && { echo skipped; exit; }
+
cat <<EOF | $CC -o $t/a.o -c -xc -
#include <stdio.h>
diff --git a/test/elf/ifunc-static.sh b/test/elf/ifunc-static.sh
2022-06-18 19:46:53 +00:00
index 295350a3..7f1d2686 100755
2022-04-30 19:32:09 +00:00
--- a/test/elf/ifunc-static.sh
+++ b/test/elf/ifunc-static.sh
2022-06-18 19:46:53 +00:00
@@ -16,6 +16,8 @@ mkdir -p $t
2022-04-30 19:32:09 +00:00
# IFUNC is not supported on RISC-V yet
[ $MACHINE = riscv64 ] && { echo skipped; exit; }
+[ $MACHINE = armv7l ] && { echo skipped; exit; }
+
# Skip if libc is musl because musl does not support GNU FUNC
echo 'int main() {}' | $CC -o $t/exe -xc -
readelf --dynamic $t/exe | grep -q ld-musl && { echo OK; exit; }
--
2022-06-18 19:46:53 +00:00
2.36.1
2022-04-30 19:32:09 +00:00