aboutsummaryrefslogtreecommitdiff
path: root/tests/test.sh
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-14 15:52:01 +0330
committerGravatar zinc <zinc@downsta.ir> 2026-10-14 15:52:01 +0330
commit4fc8f54a21f7a9d8712665501b40c3a52b3eede9 (patch)
treefcb16d3185c1f80fae8d54cd9062bd68d6c0c88d /tests/test.sh
parentline tables and backtraces: port agent/line-tables onto main, op 56 on the x8... (diff)
parentmerge spec conformance suite (diff)
merge main into work/line-tables
Diffstat (limited to 'tests/test.sh')
-rwxr-xr-xtests/test.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test.sh b/tests/test.sh
index ec51838..a1a5453 100755
--- a/tests/test.sh
+++ b/tests/test.sh
@@ -234,6 +234,10 @@ s_interp() {
T=$ROOT/interp
$CC -pthread -O2 -w -fwrapv -DJTYPE=int src/core/core.c src/core/io_linux.c $GI -o $T/zy
run $T/zy "interp"
+ # docs/SPEC.md conformance programs; failures listed in tests/conformance/known.txt do not count
+ bash tests/conformance/run.sh --zy $T/zy -w $T/conformance -q > $T/conformance.out 2>&1; r=$?
+ grep '^FAIL' $T/conformance.out
+ chk $r 0 "interp conformance suite: $(grep '^ total' $T/conformance.out | sed 's/ */ /g')"
python3 tests/drivers/array_methods_test.py $T/zy > $T/arrays.out 2>&1; r=$?
grep -v '^ok' $T/arrays.out
chk $r 0 "native array receiver, algorithm and ownership contracts"
@@ -605,6 +609,9 @@ s_lsp() {
node tests/drivers/lsp_sandbox.js $lsp > $T/lspsb.out 2>&1; r=$?
grep -v '^ok' $T/lspsb.out
chk $r 0 "lsp: compile-time code in a checked file cannot write files"
+ bash src/tools/xref_selftest.sh $lsp > $T/xref.out 2>&1; r=$?
+ grep -v '^ok' $T/xref.out
+ chk $r 0 "xref: --check passes on tests/xref.baseline and fails on a missing writer"
# the diagnostics cache: its key rules, then the extension's client end to end on the built-in server
node tests/drivers/diagcache_test.js > $T/dcache.out 2>&1; r=$?
grep -v '^ok' $T/dcache.out