-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test framework for lua system #269
Comments
A basic syntax check can be performed on lua files with Could just add this to |
|
I just checked and luac: lua/crowlib.lua:71: syntax error near 'll'
Makefile:276: recipe for target 'lua/crowlib.lua.h' failed
make: *** [lua/crowlib.lua.h] Error 1 Is that enough of a check? Can we close this issue? |
Yeah, that looks perfect! I'll go ahead and close this issue then :) |
Adding a simple set of mocks for the C-interop functions would allow the lua libraries to at least be syntax checked by the build system. At present, if you make a syntax error in a lua file, this won't stop the build and you won't know things are broken until trying to use the library that contains the error.
A simple test script should load the mocks into a lua interpreter and then load each lua library, reporting any syntax errors to the user.
A basic syntax check should be performed on ii descriptors, as it's easy to miss a curly brace if your editor doesn't have linting. The build system will fail in this case, but the error will be called from a code generation script or worse, the C compiler, which makes it difficult to trace back where the issue originates.
The text was updated successfully, but these errors were encountered: