aboutsummaryrefslogtreecommitdiff
path: root/tests/test.sh
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-14 15:41:56 +0330
committerGravatar zinc <zinc@downsta.ir> 2026-10-14 15:41:56 +0330
commit1660c16f4f296dee8c1efc972d4671208ed05a8d (patch)
tree02d2470d7996f074475ccd553d1cbf471527b684 /tests/test.sh
parentagent/xref-report: unmerged work from previous session (diff)
xref: checked-in baseline, --check self-test hooked into the lsp section, todo
Diffstat (limited to 'tests/test.sh')
-rwxr-xr-xtests/test.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test.sh b/tests/test.sh
index 22fdf30..4ca000f 100755
--- a/tests/test.sh
+++ b/tests/test.sh
@@ -598,6 +598,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