Commit Graph

13 Commits

Author SHA1 Message Date
Marc Jakobi
1c3e8d2cb8 lua5_5: update tests 2026-01-07 23:00:27 +01:00
Aliaksandr
f60a6c51e6 treewide: prefer standard name for old and final Attrs 2025-12-13 23:29:51 +02:00
Aliaksandr
03bb7d8195 all-packages: do not export lib functions from pkgs 2025-10-30 22:38:49 +02:00
Austin Horstman
25e5402a49 tests/lua-5: format tweak 2025-03-16 10:35:03 -05:00
Austin Horstman
e3864d7d89 tests/lua-5: fix checkInterpreterPath test name
Checking a path location, not a patch.
2025-03-15 09:44:49 -05:00
Austin Horstman
4249106f2e tests/lua-5: fix lint errors
Unnecessary parenthesis
2025-03-15 09:44:49 -05:00
Austin Horstman
609b8b61be tests/lua-5: fix checkPropogatedBuildInputs test
Dependencies changed in https://github.com/NixOS/nixpkgs/pull/342196
2025-03-15 09:44:31 -05:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Matthieu C.
665f3f694b lua: take into propagated-build-inputs when building LUA_PATH
so far we ignored propagated-build-inputs
2024-06-12 15:31:04 +02:00
Matthieu Coudron
b8be016426 lua.tests.checkSetupHook: test lua setup hook for http package
the 'http' package is an interesting one to test because all its lua
files are in a 'http' subfolder, ie., there is no share/lua/5.1/*.lua,
only share/lua/5.1/http/*.lua files unlike most packages. This tests we
can match those subfolders.
2024-04-02 11:20:36 +02:00
Matthieu Coudron
815d3683f7 lua.tests: update golden values for default LUA_PATH
when LUA_PATH contains `;;`, it is replaced by `;LUA_PATH_DEFAULT;` in
lua 5.1:
Updated 69ea087dff/loadlib.c (L599)
More recent versions might be smarter ?
65b07dd53d/loadlib.c (L301)
2024-03-16 14:37:10 +01:00
Matthieu Coudron
ff5b2d7d00 lua.tests: add test for relative import
better error message as well
extracted from https://github.com/NixOS/nixpkgs/pull/273342

written by heyarne
2024-02-06 23:21:41 +01:00
Matthieu Coudron
c4b5c2574b lua: test the interpreter
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
2022-10-14 00:10:40 +02:00