aboutsummaryrefslogtreecommitdiff
path: root/spec/util (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Tests: ensure that tests do not accidentally find a project dirHisham Muhammad2018-07-011-0/+1
|
* cfg, cmd: major reorganizationHisham Muhammad2018-07-011-13/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `--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: disable customized external_deps_dirsHisham Muhammad2018-06-141-12/+0
|
* Tests: do not rebuild mock server rocks if already builtHisham Muhammad2018-06-141-5/+20
|
* build: make "builtin" the default build.typeHisham Muhammad2018-06-061-8/+13
|
* Add temporary path utility function to test_envGeorge Roman2018-05-291-0/+9
|
* Tests: cache build of mock server dependencies to speed up testsHisham Muhammad2018-05-281-33/+42
|
* Make the mock server run on WindowsGeorge Roman2018-05-282-6/+22
|
* Tests: test the "busted" backend of `luarocks test` with a local fixtureHisham Muhammad2018-05-072-5/+3
|
* Tests: ensure that extra_rocks specified in test files were downloadedHisham Muhammad2018-05-071-2/+2
|
* Tests: avoid race between setup_specs and async start of mock-serverHisham Muhammad2018-04-111-1/+6
|
* mock-server: make initialization independent of cwdHisham Muhammad2018-04-112-1/+4
|
* Tests: make verbose mode even more verboseHisham Muhammad2018-04-111-1/+1
| | | | | When running busted with `-Xhelper verbose`, now it will display the full output of every command.
* Add support for namespaces.Hisham Muhammad2018-04-112-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For details of the new feature, see https://github.com/luarocks/luarocks/wiki/Namespaces This ended up being a huge commit because of some major refactoring motivated by the new feature: * new modules for some object types: * `luarocks.queries` - all functions that look for rocks in local or remote repositories now use objects constructed by this module: query objects contain the name, namespace and query constraints. Dependencies in a rockspec are also stored as query objects. * `luarocks.results` - all individual results produces from queries are returned in this format: result objects contain the name, namespace, version, arch and repo. * the `results` object was renamed to `result_tree`, to better reflect that it is not an array of `result` objects. * `luarocks.vers` was removed, its functionality was moved to better locations. Specifically on namespaces: * Commands that take a rock `name` can now take `namespace/name` (and alternately `--flags=namespace` so that URLs can be also installed with a nominal namespace). * Rocks installed from a namespace now create a `rock_namespace` file alongside `rock_manifest`, which is used when matching namespaced dependencies against locally-installed rocks. * Using namespaced dependencies in a rockspec, requires `rockspec_format = "3.0"`. * Tests under the `#namespaces` hashtag, all using a local repository.
* Fix the way we compare environmentsHisham Muhammad2018-04-111-1/+1
| | | | | | This is not even using a md5sum hash anymore. Seems to work fine on Linux, will probably end up doing the same on other platforms.
* Tests: run our own local git-daemon repository for git testsHisham Muhammad2018-03-302-6/+125
|
* Tests: make sure tests run from testrun/Hisham Muhammad2018-03-302-7/+9
|
* Tests: isolate test environment from existing Lua variablesHisham Muhammad2018-03-291-1/+16
|
* Tests: modify platform detectionHisham Muhammad2018-01-111-8/+11
|
* Reorganize test suite filesHisham Muhammad2018-01-082-0/+892