aboutsummaryrefslogtreecommitdiff
path: root/spec/config_spec.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tests: speed up and simplifyHisham Muhammad2024-02-291-1/+1
|
* tests: reorganize and speed up unit testsHisham Muhammad2024-02-271-4/+2
|
* tests: introduce quick testsHisham Muhammad2024-02-231-16/+0
|
* fix(config): print boolean values correctly on Lua 5.1Hisham Muhammad2024-02-191-0/+14
|
* vendor in the dkjson dependencyHisham Muhammad2024-02-191-16/+0
| | | | | | Fixes #1243. Fixes #1168. Fixes #559.
* tests: add basic test for XDG_CONFIG_HOMEHisham Muhammad2021-04-061-0/+25
|
* editorconfig: trim trailing whitespaceHisham Muhammad2021-03-161-16/+16
|
* config: fix --unsetHisham Muhammad2019-11-291-0/+21
|
* config: add modes for reading, writing and unsetting individual entriesHisham Muhammad2019-04-031-65/+176
| | | | | | | | | | | | | | | | | | | | Includes special config keys `lua_dir` and `lua_version`, which are essentially persistent versions of --lua-dir and --lua-version: * `lua_dir` writes a number of LUA_* variables and cfg.lua_interpreter in the current scope's config file. * `lua_version` writes default-lua-version.lua to the given scope. Also deprecates the "flag" versions for various getters: * `--lua-incdir`: use `luarocks config variables.LUA_INCDIR` * `--lua-libdir`: use `luarocks config variables.LUA_LIBDIR` * `--lua-ver`: use `luarocks config lua_version` * `--system-config`: use `luarocks config config_files.system.file` * `--user-config`: use `luarocks config config_files.user.file` * `--rock-trees`: use `luarocks config rocks_trees`
* cmd: fix setting up deployment paths from a treeFYP2018-10-291-0/+17
| | | | | | (Amended with a regression test.) Co-authored-by: Hisham Muhammad <hisham@gobolinux.org>
* Let LuaRocks find LUA_LIBDIR and LUA_INCDIR by itselfHisham Muhammad2018-07-011-4/+4
|
* Tests: config: no need for special-casing WindowsHisham Muhammad2018-07-011-36/+20
|
* cfg, cmd: major reorganizationHisham Muhammad2018-07-011-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `--lua-dir` flag, specifying a prefix for the Lua installation to be used. This reconfigures LuaRocks entirely, including allowing a LuaRocks which is itself running using one Lua 5.x version to manage packages for a different Lua 5.y version. The resulting configuration can be checked with `luarocks config --lua-dir=<path>`. * requiring `luarocks.core.cfg` no longer has side-effects * configuration now needs to be initialized with `cfg.init([lua_data])`, where `lua_data` is a table with the configuration of the VM: * `lua_version` - e.g. `"5.3"` * `luajit_version` - e.g. `"2.1.0-beta3"` * `lua_interpreter` - e.g. `"lua5.3"` * `lua_bindir` - e.g. `"/usr/local/bin"` * `lua_libdir` - e.g. `"/usr/local/lib"` * `lua_incdir` - e.g. `"/usr/local/include/lua-5.3"` * `cfg.init` can be called multiple times, reconfiguring the global state. This is important since `luarocks.loader` now calls it, and the `--lua-dir` command line can override the configuration and reconfigure LuaRocks. * `site_config_*` is no more: LuaRocks is no longer dependent on a properly-written site_config file. Instead, it can *optionally* use `luarocks.core.hardcoded` for hardcoded values, or detect its configuration at runtime, based on OS detection, arg[-1] or command-line flags. * reduction of moving parts in the configuration: * `cfg.platforms` is no longer a globally-visible table; instead, `cfg` provides an API of read-only functions: `is_platform`, `each_platform`, `print_platforms`. * `cfg.*_proxy` options are no longer configured via the config files, but rather via the standard `*_proxy` environment variables. * `"windows"` is now the more general platform name of the Windows family. This is technically a breaking change but I don't expect it to cause problems with real-world rockspecs. * internal code reorganization in `luarocks.cmd` module
* Tests: replace #blackbox with #integration and #whitebox with #unitGeorge Roman2018-06-041-1/+1
|
* Reorganize test suite filesHisham Muhammad2018-01-081-1/+1
|
* Use versioned files only. (#734)Hisham Muhammad2017-10-041-10/+2
| | | | | | | | Let's take the opportunity of a new major version to make an important cleanup: getting rid of the error-prone unversioned configuration files. This drops support for: * Unversioned config.lua -> use config-5.x.lua * Unversioned luarocks/site_config.lua -> it always generates luarocks/core/site_config_5_x.lua * Unversioned lib/luarocks/rocks -> it always uses lib/luarocks/rocks-5.x
* This doesn't produce an error, only a warning.Hisham2016-10-291-1/+2
|
* Fix of config testroboo2016-08-221-19/+16
|
* Fix of config testroboo2016-08-221-22/+25
|
* Windows and appveyor support for testsroboo2016-08-211-19/+51
|
* Remove some more unused stuff and globals from testsPeter Melnichenko2016-07-081-1/+2
|
* Make env vars, paths and run commands available on test env loadPeter Melnichenko2016-07-081-2/+2
|
* Tests: disable insulation and use describe() instead of expose()Peter Melnichenko2016-07-081-1/+1
|
* Remove all the unused imports in test suitePeter Melnichenko2016-07-081-2/+1
|
* New test-suite for LuaRocks (#581)robooo2016-07-071-0/+90
First version of new test-suite, using Busted framework based on Google Summer of Code project: https://summerofcode.withgoogle.com/projects/#5695811874717696 * Rewritten from Bash to Lua * Tests now check if they did what they were supposed to, beyond only checking success or failure of the `luarocks` command * Support for black-box (launching `luarocks` as an external command) and white-box (testing functions in modules directly) testing