aboutsummaryrefslogtreecommitdiff
path: root/spec/install_spec.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tests: convert some install testsHisham Muhammad2024-03-131-26/+0
|
* tests: rockspec use cleanupsHisham Muhammad2024-03-131-3/+0
|
* tests: mark a couple of problematic tests as pendingHisham Muhammad2024-02-291-2/+2
|
* tests: speed up and simplifyHisham Muhammad2024-02-291-35/+0
|
* tests: reorganize and speed up unit testsHisham Muhammad2024-02-271-8/+6
|
* tests: replace some more tests with quick testsHisham Muhammad2024-02-261-69/+0
|
* tests: only run luasocket rollback test on minimal environmentHisham Muhammad2022-08-261-22/+24
|
* tests: run tests on Lua 5.4 and LuaJIT 2.1Hisham Muhammad2022-04-161-4/+4
|
* 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-121-28/+33
|
* tests: don't download sailorHisham Muhammad2022-03-061-5/+5
| | | | | | 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.
* editorconfig: trim trailing whitespaceHisham Muhammad2021-03-161-7/+7
|
* fs: always check for failure of fs.which_tool (#1157)Hisham Muhammad2020-02-201-0/+12
|
* tests: drop LuaSec dependency on tests, use fixtures insteadHisham Muhammad2020-01-251-11/+10
|
* Add --no-manifest flag to skip creating/updating a global manifestdaurnimator2019-11-301-1/+10
|
* dependency pinning: luarocks.lock file and --pin flagHisham Muhammad2019-11-291-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for pinning dependencies in projects and rocks: * Adds a new flag called `--pin` which creates a `luarocks.lock` when building a rock with `luarocks build` or `luarocks make`. This lock file contains the exact version numbers of every direct or indirect dependency of the rock (in other words, it is the transitive closure of the dependencies.) For `make`, the `luarocks.lock` file is created in the current directory. The lock file is also installed as part of the rock in its metadata directory alongside its rockspec. When using `--pin`, if a lock file already exists, it is ignored and overwritten. * When building a rock with `luarocks make`, if there is a `luarocks.lock` file in the current directory, the exact versions specified there will be used for resolving dependencies. * When building a rock with `luarocks build`, if there is a `luarocks.lock` file in root of its sources, the exact versions specified there will be used for resolving dependencies. * When installing a `.rock` file with `luarocks install`, if the rock contains a `luarocks.lock` file (i.e., if its dependencies were pinned with `--pin` when the rock was built), the exact versions specified there will be used for resolving dependencies.
* refactor dependency scanning for reuse when building lockfileHisham Muhammad2019-11-291-1/+1
|
* repos: rollback on installation failure (#1101)Hisham Muhammad2019-10-181-1/+34
|
* build: fix --branch flagHisham Muhammad2019-09-031-1/+28
| | | | | | | | | | | | The `--branch` flag is optional and takes a string argument. The `--branch` flag does not make sense for `luarocks make` because it does not fetch sources, it builds/installs based on whatever is in the current directory. This also adds tests that verify the behavior, but these don't run in Travis CI because of issues running a Git daemon there. They were verified locally.
* Support installations without documentationGeorge Roman2019-02-121-2/+6
|
* Tests: add test_env.run_in_tmp utility functionGeorge Roman2018-07-241-12/+6
|
* Tests: support running with the default detected OpenSSL locationsHisham Muhammad2018-07-181-4/+2
|
* Tests: separate OPENSSL_DIRS into OPENSSL_INCDIR and OPENSSL_LIBDIRGeorge Roman2018-07-051-2/+4
|
* Experimental Windows cross-compiled binary buildHisham Muhammad2018-07-021-0/+11
| | | | | | | | | | | | This commit consolidates the work that has been ongoing over the last few weeks in producing the single-binary builds of LuaRocks based on the new distribution model described in https://github.com/luarocks/luarocks/wiki/Project:-LuaRocks-new-distribution-model The single-binary build is in a good shape for Linux, it's a work-in-progress for Windows (binaries do build, but some work on the dependencies is still necessary), and is untested in macOS.
* Tests: remove outdated testHisham Muhammad2018-07-011-20/+0
| | | | | Remove regression test for #304 because LuaRocks no longer conflates foo and foo.init as the same module.
* Tests: replace small fixture files with inline contentGeorge Roman2018-06-211-1/+14
|
* Tests: replace #blackbox with #integration and #whitebox with #unitGeorge Roman2018-06-041-1/+1
|
* Tests: build_dependenciesHisham Muhammad2018-04-131-0/+9
|
* Add support for namespaces.Hisham Muhammad2018-04-111-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Tests: add test for namespaced installHisham Muhammad2018-04-111-25/+33
|
* Reorganize test suite filesHisham Muhammad2018-01-081-3/+3
|
* Use versioned files only. (#734)Hisham Muhammad2017-10-041-6/+6
| | | | | | | | 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
* Add test for #632.Hisham2016-10-281-0/+13
|
* Add a test for sailor/sailorproject#138Peter Melnichenko2016-10-201-0/+12
|
* Add a test for wrapped script backupPeter Melnichenko2016-10-201-0/+2
|
* Add a test for #302Peter Melnichenko2016-10-191-0/+22
|
* Fix tests on Windows with Lua 5.3Peter Melnichenko2016-10-191-4/+4
| | | | | Don't install luafilesystem 1.6.1 on Windows with Lua 5.3, it fails.
* Test case for issue #268Hisham2016-10-181-1/+14
|
* Tests: luarocks_bool commands log their outputs on failure.Hisham2016-09-081-6/+6
|
* Change APPVEYOR_OPENSSL to OPENSSL_DIRS for better test readabilityroboo2016-08-221-10/+2
|
* Windows and appveyor support for testsroboo2016-08-211-14/+22
|
* Test improvementsroboo2016-07-191-6/+6
|
* Fix of upload tests for lua5.3roboo2016-07-181-2/+2
|
* Fix of luasocket binary rock testsroboo2016-07-141-7/+11
|
* need_rock() added, new flag noreset environmentroboo2016-07-141-3/+0
|
* Remove some more unused stuff and globals from testsPeter Melnichenko2016-07-081-6/+5
|
* Make env vars, paths and run commands available on test env loadPeter Melnichenko2016-07-081-3/+3
|
* 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/+130
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