https://gitlab.synchro.net/main/sbbs/-/commit/764ae6b2cc5d36b3009e79da
Modified Files:
exec/tests/file/ini_unescape.js exec/tests/inet_domains/config/scratch.inc exec/tests/msgbase/notify/scratch.inc exec/tests/webmail/api_write.js client.js strings.js
Log Message:
tests: run in the CI test tree, and stop replacing write() and read()
Three faults in tests that the CI jobs found, none in the code under
test:
- file/ini_unescape.js and webmail/api_write.js each declared a
top-level function named write, and webmail/client.js and strings.js
one named read. The runner executes every test in one process and
such a declaration replaces the built-in function for every test
that runs later: global/rtypes.js then called the test's write("")
and failed. The helpers are renamed.
- The scratch configurations of inet_domains/config and msgbase/notify
copied node1/node.ini from the installation. The CI test tree has no
node directories; an empty node.ini is now created there instead.
- They also gave the scratch node directory as an absolute path, which
the configuration cuts at 100 characters: too short for the temp
directory of most CI runners. It is now relative to the scratch ctrl
directory.
The whole suite (jsexec -U -S -f exec/tests/test.js) now passes in a
tree laid out as the CI one, with only ctrl and exec and a long path;
under jsdoor, file/ini_unescape.js and global/rtypes.js pass there.
Co-Authored-By: Claude Fable 5.2 <
noreply@anthropic.com>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net