teal-language / tl

The compiler for Teal, a typed dialect of Lua
MIT License
2.04k stars 101 forks source link

build failing #587

Closed hramrach closed 1 year ago

hramrach commented 1 year ago
[    9s] + /usr/bin/make -O -j2 V=1 VERBOSE=1
[   12s] cp tl.lua tl.lua.bak
[   12s] ./tl gen --check tl.tl && cp tl.lua tl.lua.1 || { cp tl.lua tl.lua.1; cp tl.lua.bak tl.lua; exit 1; }
[   12s] Wrote: tl.lua
[   12s] ./tl gen --check tl.tl && cp tl.lua tl.lua.2 || { cp tl.lua tl.lua.2; cp tl.lua.bak tl.lua; exit 1; }
[   12s] Wrote: tl.lua
[   12s] diff tl.lua.1 tl.lua.2
[   18s] busted --suppress-pending -v 
[   18s] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-+-/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -----/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -----/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] ----/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -+++++++++++++++++++++++++++--/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] -----------------*/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s] stack traceback:
[   18s]    /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]    [C]: in ?
[   18s] ----+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[   18s] 933 successes / 52 failures / 1 error / 0 pending : 8.380478 seconds
[   18s] 
[   18s] Failure -> spec/cli/build_script_spec.lua @ 289
[   18s] build.tl Should give an error if the key gen_code exists, but it is not a function
[   18s] ./spec/util.lua:150: batch assertion failed: 
[   18s]    [1] (number) 0
[   18s]       Expected objects to be equal.
[   18s]       Passed in:
[   18s]       (string) '/usr/bin/lua5.4: /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: attempt to index a boolean value (local 'tl')
[   18s]       stack traceback:
[   18s]        /home/abuild/rpmbuild/BUILD/tl-0.14.1/tl:28: in main chunk
[   18s]        [C]: in ?
[   18s]       '
[   18s]       Expected:
[   18s]       (string) 'the key "gen_code" exists in the build file, but it is not a function. Value: I am a string
[   18s]       '
[   18s] 
[   18s] stack traceback:
[   18s]    ./spec/util.lua:150: in method 'assert'
[   18s]    ./spec/util.lua:360: in function 'spec.util.run_mock_project'
[   18s]    spec/cli/build_script_spec.lua:290: in function <spec/cli/build_script_spec.lua:289>
[   18s] 
[   18s] 

Are the tests suppossed to pass?

If not maybe the --suppress-pending as default is not such a great idea?

hishamhm commented 1 year ago

The Teal Makefile does not support -j. It is also not needed, since it builds in around 1 second and runs the testsuite in around 3 seconds.