Closed purplejacket closed 2 years ago
Huh. This was a problem with the node version. Version 16 seems to fail but version 17 works. Above the failure is with v16.13.2 but it also fails with v16.14.0 -- and that's an LTS version. However, this works:
$ node --version
v17.7.1
$ make "test^js^step0"
/Library/Developer/CommandLineTools/usr/bin/make -C impls/js step0_repl.js
make[1]: Nothing to be done for `step0_repl.js'.
(call STEP_TEST_FILES,js,step0): impls/tests/step0_repl.mal
----------------------------------------------
Testing test^js^step0; step file: impls/js/step0_repl.js, test file: tests/step0_repl.mal
Running: env STEP=step0_repl MAL_IMPL=js ../../runtest.py --deferrable --optional ../tests/step0_repl.mal -- ../js/run
Testing basic string
TEST: 'abcABC123' -> ['',abcABC123] -> SUCCESS
Testing string containing spaces
TEST: 'hello mal world' -> ['',hello mal world] -> SUCCESS
Testing string containing symbols
TEST: '[]{}"\'* ;:()' -> ['',[]{}"'* ;:()] -> SUCCESS
Test long string
TEST: 'hello world abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789 (;:() []{}"\'* ;:() []{}"\'* ;:() []{}"\'*)' -> ['',hello world abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789 (;:() []{}"'* ;:() []{}"'* ;:() []{}"'*)] -> SUCCESS
Non alphanumeric characters
TEST: '!' -> ['',!] -> SUCCESS
TEST: '&' -> ['',&] -> SUCCESS
TEST: '+' -> ['',+] -> SUCCESS
TEST: ',' -> ['',,] -> SUCCESS
TEST: '-' -> ['',-] -> SUCCESS
TEST: '/' -> ['',/] -> SUCCESS
TEST: '<' -> ['',<] -> SUCCESS
TEST: '=' -> ['',=] -> SUCCESS
TEST: '>' -> ['',>] -> SUCCESS
TEST: '?' -> ['',?] -> SUCCESS
TEST: '@' -> ['',@] -> SUCCESS
TEST: '^' -> ['',^] -> SUCCESS
TEST: '_' -> ['',_] -> SUCCESS
TEST: '`' -> ['',`] -> SUCCESS
TEST: '~' -> ['',~] -> SUCCESS
------- Optional Functionality --------------
------- (Not needed for self-hosting) -------
Non alphanumeric characters
TEST: '#' -> ['',#] -> SUCCESS
TEST: '$' -> ['',$] -> SUCCESS
TEST: '%' -> ['',%] -> SUCCESS
TEST: '.' -> ['',.] -> SUCCESS
TEST: '|' -> ['',|] -> SUCCESS
TEST RESULTS (for ../tests/step0_repl.mal):
0: soft failing tests
0: failing tests
24: passing tests
24: total tests
$ make "test^mal^step0"
/Library/Developer/CommandLineTools/usr/bin/make -C impls/mal step0_repl.mal
make[1]: `step0_repl.mal' is up to date.
(call STEP_TEST_FILES,mal,step0): impls/tests/step0_repl.mal
----------------------------------------------
Testing test^mal^step0; step file: impls/mal/step0_repl.mal, test file: tests/step0_repl.mal
Running: env STEP=step0_repl MAL_IMPL=js RAW=1 ../../runtest.py --deferrable --optional --start-timeout 60 --test-timeout 120 ../tests/step0_repl.mal -- ../mal/run
Testing basic string
TEST: 'abcABC123' -> ['',abcABC123] -> SUCCESS
Testing string containing spaces
TEST: 'hello mal world' -> ['',hello mal world] -> SUCCESS
Testing string containing symbols
TEST: '[]{}"\'* ;:()' -> ['',[]{}"'* ;:()] -> SUCCESS
Test long string
TEST: 'hello world abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789 (;:() []{}"\'* ;:() []{}"\'* ;:() []{}"\'*)' -> ['',hello world abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789 (;:() []{}"'* ;:() []{}"'* ;:() []{}"'*)] -> SUCCESS
Non alphanumeric characters
TEST: '!' -> ['',!] -> SUCCESS
TEST: '&' -> ['',&] -> SUCCESS
TEST: '+' -> ['',+] -> SUCCESS
TEST: ',' -> ['',,] -> SUCCESS
TEST: '-' -> ['',-] -> SUCCESS
TEST: '/' -> ['',/] -> SUCCESS
TEST: '<' -> ['',<] -> SUCCESS
TEST: '=' -> ['',=] -> SUCCESS
TEST: '>' -> ['',>] -> SUCCESS
TEST: '?' -> ['',?] -> SUCCESS
TEST: '@' -> ['',@] -> SUCCESS
TEST: '^' -> ['',^] -> SUCCESS
TEST: '_' -> ['',_] -> SUCCESS
TEST: '`' -> ['',`] -> SUCCESS
TEST: '~' -> ['',~] -> SUCCESS
------- Optional Functionality --------------
------- (Not needed for self-hosting) -------
Non alphanumeric characters
TEST: '#' -> ['',#] -> SUCCESS
TEST: '$' -> ['',$] -> SUCCESS
TEST: '%' -> ['',%] -> SUCCESS
TEST: '.' -> ['',.] -> SUCCESS
TEST: '|' -> ['',|] -> SUCCESS
TEST RESULTS (for ../tests/step0_repl.mal):
0: soft failing tests
0: failing tests
24: passing tests
24: total tests
I've cloned the mal project and am attempting a few basic tests. These three work:
I'm running MacOS:
These versions of node, python:
(I tried deleting node_modules and ran
make all
in the impls/js directory, no help.)This is what I'm getting, from a fresh clone of the repo:
Interesting, I note that this also fails, and in almost the same way: