aboutsummaryrefslogtreecommitdiff
path: root/tests/test.sh
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-14 10:34:44 +0000
committerGravatar zinc <zinc@downsta.ir> 2026-10-14 10:34:44 +0000
commit1d3c45e270341c820de221acb6f21f193e78a8c0 (patch)
tree48aeaad7ba13ad2705ea985a531f3a70a45e2d3d /tests/test.sh
parenttodo: record the vision, priorities and settled feature decisions; add the it... (diff)
parentx86-64 jit: zyi target, ZYNOO3, bench and test timeouts, docs; drop a stray file (diff)
Merge the x86-64 jit, phase 1; todo: tick it, add phase 2
Diffstat (limited to 'tests/test.sh')
-rwxr-xr-xtests/test.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test.sh b/tests/test.sh
index 298c356..ec93827 100755
--- a/tests/test.sh
+++ b/tests/test.sh
@@ -52,9 +52,10 @@ ROOT=$T
CC=${CC:-$(sh src/tools/findcc.sh)} || exit 1
export CC
-# the language server runs on the interpreter unless the host has the arm64 jit, and a
-# check of a large document then takes many seconds: stretch the drivers' deadlines
-if [ -z "${ZC_TEST_TIMEOUT_SCALE:-}" ]; then case "$(uname -m)" in arm64|aarch64) ZC_TEST_TIMEOUT_SCALE=1;; *) ZC_TEST_TIMEOUT_SCALE=8;; esac; fi
+# the language server runs on the interpreter unless the host has a jit (arm64, or x86-64
+# linux), and a check of a large document then takes many seconds: stretch the drivers'
+# deadlines. the x86-64 jit gets a little room, since it does not compile o3 regions
+if [ -z "${ZC_TEST_TIMEOUT_SCALE:-}" ]; then case "$(uname -s)-$(uname -m)" in *-arm64|*-aarch64) ZC_TEST_TIMEOUT_SCALE=1;; Linux-x86_64) ZC_TEST_TIMEOUT_SCALE=2;; *) ZC_TEST_TIMEOUT_SCALE=8;; esac; fi
export ZC_TEST_TIMEOUT_SCALE
# the default map, generated as make does it, and the tools built against it
$CC -O2 -w -fwrapv src/tools/genmap.c -o $T/genmap || exit 1