Skip to content

Commit 6e11105

Browse files
committed
Disable WebAssembly tests on Ubuntu 20.04: libc is too old for LLVM 19
1 parent 513876d commit 6e11105

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

tests/scripts/run_tests.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,19 @@
1616
set -euo pipefail
1717

1818
toolchain_name=""
19+
disable_wasm_tests=""
1920

20-
while getopts "t:h" opt; do
21+
while getopts "t:hW" opt; do
2122
case "${opt}" in
2223
"t") toolchain_name="${OPTARG}" ;;
2324
"h")
2425
echo "Usage:"
2526
echo "-t - Toolchain name to use for testing; default is llvm_toolchain"
2627
exit 2
2728
;;
29+
"W")
30+
disable_wasm_tests="yes"
31+
;;
2832
*)
2933
echo "invalid option: -${OPTARG}"
3034
exit 1
@@ -68,7 +72,7 @@ fi
6872
# to run out of disk space.
6973
#
7074
# Mitigate this by expunging the workspace before trying to build Wasm targets.
71-
if [[ -z ${toolchain_name} ]]; then
75+
if [[ -z ${toolchain_name} && -z ${disable_wasm_tests} ]]; then
7276
# Redefine `test_args` without `--linkopt=-Wl,-v`, which breaks `wasm-ld`.
7377
#
7478
# https://github.com/llvm/llvm-project/issues/112836

tests/scripts/ubuntu_20_04_test.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ apt-get -qq -y install apt-utils curl libtinfo5 libxml2 pkg-config zlib1g-dev >/
3434
# The above command gives some verbose output that can not be silenced easily.
3535
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=288778
3636
37+
# The WebAssembly tests use an LLVM version that is too new for the GNU libc
38+
# distributed in Ubuntu 20.04.
39+
disable_wasm_tests='-W'
40+
3741
# Run tests
3842
cd /src
39-
tests/scripts/run_tests.sh
43+
tests/scripts/run_tests.sh \${disable_wasm_tests}
4044
"""
4145
done

0 commit comments

Comments
 (0)