File tree 2 files changed +11
-3
lines changed 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 16
16
set -euo pipefail
17
17
18
18
toolchain_name=" "
19
+ disable_wasm_tests=" "
19
20
20
- while getopts " t:h " opt; do
21
+ while getopts " t:hW " opt; do
21
22
case " ${opt} " in
22
23
" t" ) toolchain_name=" ${OPTARG} " ;;
23
24
" h" )
24
25
echo " Usage:"
25
26
echo " -t - Toolchain name to use for testing; default is llvm_toolchain"
26
27
exit 2
27
28
;;
29
+ " W" )
30
+ disable_wasm_tests=" yes"
31
+ ;;
28
32
* )
29
33
echo " invalid option: -${OPTARG} "
30
34
exit 1
68
72
# to run out of disk space.
69
73
#
70
74
# 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
72
76
# Redefine `test_args` without `--linkopt=-Wl,-v`, which breaks `wasm-ld`.
73
77
#
74
78
# https://github.com/llvm/llvm-project/issues/112836
Original file line number Diff line number Diff line change @@ -34,8 +34,12 @@ apt-get -qq -y install apt-utils curl libtinfo5 libxml2 pkg-config zlib1g-dev >/
34
34
# The above command gives some verbose output that can not be silenced easily.
35
35
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=288778
36
36
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
+
37
41
# Run tests
38
42
cd /src
39
- tests/scripts/run_tests.sh
43
+ tests/scripts/run_tests.sh \$ {disable_wasm_tests}
40
44
" " "
41
45
done
You can’t perform that action at this time.
0 commit comments