aboutsummaryrefslogtreecommitdiff
path: root/spec (follow)
Commit message (Collapse)AuthorAgeFilesLines
* feat: better error message when lacking permissionsfeat-better-perm-messageHisham Muhammad2024-02-291-7/+28
| | | | | | The lock error message has clobbered the check_command_permissions error message. This is an interim solution, but we should probably move the permissions check further up for a more informative error.
* tests: mark a couple of problematic tests as pendingHisham Muhammad2024-02-291-2/+2
|
* tests: speed up and simplifyHisham Muhammad2024-02-2923-280/+491
|
* tests: disable luacov runner tickHisham Muhammad2024-02-2912-36/+23
|
* feat: more informative reports no bad LUA_{INC,LIB}DIR configsHisham Muhammad2024-02-295-19/+132
|
* do not check coverage or luacheck for vendored modulesHisham Muhammad2024-02-291-0/+3
| | | | | These are treated as dependencies, and are managed and tested by upstream.
* feat(build,install): only rebuild and reinstall when using --forceHisham Muhammad2024-02-292-0/+82
|
* tests: reorganize and speed up unit testsHisham Muhammad2024-02-2746-736/+743
|
* fix(fs): make current_dir always return 1 arg onlyHisham Muhammad2024-02-279-0/+0
|
* tests(fetch): do not use restserverHisham Muhammad2024-02-274-282/+309
|
* tests(build): split unit and integration filesHisham Muhammad2024-02-272-352/+369
| | | | use restserver only in integration part
* tests: enable coverage on quick testsHisham Muhammad2024-02-261-2/+3
|
* tests: replace some more tests with quick testsHisham Muhammad2024-02-263-84/+287
|
* fix: better normalization for paths and slashesHisham Muhammad2024-02-2311-292/+367
| | | | Fixes #1195.
* tests: introduce quick testsHisham Muhammad2024-02-2311-62/+694
|
* fix: handle error if test.command is not a string.Hisham Muhammad2024-02-211-0/+51
| | | | Fixes #1055.
* improve and simplify Lua interpreter searchHisham Muhammad2024-02-201-1/+1
| | | | | | | * do not proceed with commands if interpreter is not found * begin retiring LUA_DIR and LUA_BINDIR, and promote LUA as the main way to setup the interpreter location (from which we derive the rest)
* fix(config): print boolean values correctly on Lua 5.1Hisham Muhammad2024-02-191-0/+14
|
* fix(lint): don't crash when missing descriptionHisham Muhammad2024-02-191-0/+14
|
* fix(build): don't look for Lua headers when installing pure-Lua rocksHisham Muhammad2024-02-192-117/+143
| | | | | | | This only applies to 'builtin' as we can't know about other modes, but this should be good enough. Fixes #1275.
* vendor in the dkjson dependencyHisham Muhammad2024-02-192-17/+0
| | | | | | Fixes #1243. Fixes #1168. Fixes #559.
* drop cfg.lua_interpreter, use cfg.variables.LUAHisham Muhammad2024-02-181-38/+58
|
* feat(init): add --no-gitignore, --no-wrapper-scripts, --wrapper-dirHisham Muhammad2024-02-171-0/+63
| | | | Closes #1513.
* feat: auto-add luarocks-build-<build.type> build dependency (#1542)Hisham Muhammad2023-10-311-0/+126
|
* tests: auto-find interpreter at /usr/bin/lua (#1544)Hisham Muhammad2023-10-311-16/+33
|
* Fix problems in path normalisation algorithm (#1541)Aleksei Volkov2023-10-301-0/+8
| | | | | | | | Current implementation of path normalisation contains various flaws: - Trailing `.` and `..` at the end of path don't get normalised, - Path `/` turns into an empty string after normalisation. This patch changes implementation of normalisation to fix these.
* fix `test --prepare` with non-busted rocks (#1453)Pierre Chapuis2022-11-281-0/+9
| | | * fix `test --prepare` with non-busted rocks
* tests: run quiet curl in mock API callsHisham Muhammad2022-08-261-1/+1
|
* tests: only run luasocket rollback test on minimal environmentHisham Muhammad2022-08-261-22/+24
|
* tests: run full tests with LuaSecHisham Muhammad2022-08-262-5/+9
|
* tests: tests for util.variable_substitutionsHisham Muhammad2022-06-061-0/+25
|
* loader.which: new option for searching package.path and cpathHisham Muhammad2022-06-061-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | Adds a new second argument, `where`, a string which indicates places to search for the module. If `where` contains "l", it will search using the LuaRocks loader; if it contains "p", it will look in the filesystem using package.path and package.cpath. You can use both at the same time. If successful, it will return four values. * If found using the LuaRocks loader, it will return: * filename of the module (eg. "/usr/local/lib/lua/5.1/socket/core.so"), * rock name * rock version * "l" to indicate the match comes from the loader. * If found scanning package.path and package.cpath, it will return: * filename of the module (eg. "/usr/local/lib/lua/5.1/socket/core.so"), * "path" or "cpath" * nil * "p" to indicate the match comes from scanning package.path and cpath. If unsuccessful, nothing is returned.
* tests: accept full path in -Xhelper lua_interpreterHisham Muhammad2022-06-061-9/+14
|
* tests: run tests on Lua 5.4 and LuaJIT 2.1Hisham Muhammad2022-04-1618-33/+220
|
* fs.unix: fallback for when $USER variable is unsetHisham Muhammad2022-04-161-1/+3
| | | | | | Also, declare Unix version of current_user in luarocks.fs.unix.tools, so that the pure-Lua version based on LuaPosix takes precedence when available.
* tests: avoid repeated hardcoded package version numbers all overHisham Muhammad2022-04-1213-178/+291
|
* add DragonFly BSD supportHisham Muhammad2022-04-111-0/+2
|
* tests: don't download sailorHisham Muhammad2022-03-065-5/+49
| | | | | | Use a small fixture instead to test the regression for sailorproject/sailor#138 Sailor was the largest rock downloaded by the test suite, so this should improve download times.
* tests: don't use validate-args rockspec in testsHisham Muhammad2022-03-067-49/+36
| | | | | | | | We only used the rockspec in testing, but since the app it refers to is GPL-3, it could cause confusion among users, so let's just drop it from the test suite. Closes #1387.
* tests: remove Travis CI, add Github ActionsHisham Muhammad2022-02-172-10/+10
|
* tests: wait longer for mock server to startHisham Muhammad2022-02-172-14/+29
|
* fix deployment on non-wrapped binaries (#1375)Hisham Muhammad2022-02-161-2/+2
| | | | | | | * fix deployment on non-wrapped binaries Fixes #1374. * Do not add .bat extension inside win32.wrap_script
* Fix crash when --lua-version is malformedHisham Muhammad2022-02-081-0/+5
|
* upload: support uploading pre-packaged .src.rock files (#1321)Hisham Muhammad2021-08-131-0/+8
| | | | | upload: support uploading pre-packaged .src.rock files Co-authored-by: daurnimator <quae@daurnimator.com>
* tests: bump luacov to 0.15.0Hisham Muhammad2021-07-225-14/+14
|
* luarocks test: add --prepare flag (#1314)Deepak Singh Rathore2021-06-221-0/+26
| | | | | | * Added prepare flag in test command * Added test for prepare flag in spec/test_spec.lua Fixes #1303
* tests: add basic test for XDG_CONFIG_HOMEHisham Muhammad2021-04-061-0/+25
|
* fix: pack: rockspec with a bare file in the urlHisham Muhammad2021-03-224-5/+87
|
* pack: check that directory inside archive actually existsHisham Muhammad2021-03-222-0/+25
|
* repos: double-check that all files from a rock are installedHisham Muhammad2021-03-191-1/+34
| | | | | | | Ensure that `luarocks` fails if an installation does not successfully deploy all files registered in the `rock_manifest`. See #1276.