-
-
Notifications
You must be signed in to change notification settings - Fork 14k
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
lua: test the interpreter #177556
lua: test the interpreter #177556
Conversation
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I appreciate your intent to allow your code to be reused, but this is a separate task that will both delay your PR and make your reusable test framework idea less successful because it deserves attention from a different audience of reviewers and collaborators, who may have little interest in lua.
lib/tests/assert.sh
Outdated
@@ -0,0 +1,16 @@ | |||
# Always failing assertion with a message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lib/tests
is for code that supports the testing of lib
itself. Please move this file near where it's used.
pkgs/test/make-wrapper/lib.nix
Outdated
@@ -0,0 +1,15 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep it near your test for this PR. You can follow it up with a proposal to make it available to other code later, which is a different goal from testing lua, and needs different reviewers. By splitting the work, your PR will be easier to merge.
nmt = fetchFromGitLab { | ||
owner = "rycee"; | ||
repo = "nmt"; | ||
rev = "d2cc8c1042b1c2511f68f40e2790a8c0e29eeb42"; | ||
sha256 = "1ykcvyx82nhdq167kbnpgwkgjib8ii7c92y3427v986n2s5lsskc"; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nmt
here is unused code.
llvmPackages_{14, git}.clang: add nostdlibinc flag
compiler-rt: build builtins on darwin
Test with: nix-build -A lua.tests pass Tests are very limited for now, goal is mostly to put the infra into place and enrich the tests when dealing with lua issues. add luaPath/luaCpath as passthrough makes it easier to generate LUA_PATH/LUA_CPATH
does it rely on the changes in staging? if not, perhaps we should rebase it to master |
add some basic tests to the lua interpreter. Some aspects of the nix lua ecosystem are certainly broken so I would like to have some tests to improve it and prevent regressions.
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes