lua-aot-5.4 icon indicating copy to clipboard operation
lua-aot-5.4 copied to clipboard

Add a test suite

Open hugomg opened this issue 4 years ago • 2 comments
trafficstars

We should be able to leverage the existing Lua test suite.

  • [x] Test without compilation (to test the changes to the interpreter)
  • [x] Test with compilation (to test the code generator)
  • [ ] Automate the tests using Github Actions

hugomg avatar Sep 04 '21 17:09 hugomg

For some reason, the following test case in "files.lua" fails on my machine, even for unmodified Lua. Could it be because I am using Fish shell?

{"sh -c 'kill -s HUP $$'", "exit"},

hugomg avatar Sep 06 '21 03:09 hugomg

Could it be because I am using Fish shell?

Not unless fish is your sh, which is unlikely. But your sh may not be bash, and instead be a lighterweight shell aimed at scripting only such as dash. Try replacing sh with bash and see what happens. If that does the trick, then your sh has some limitation in the behavior of kill or $$.

hishamhm avatar Feb 26 '24 15:02 hishamhm