aboutsummaryrefslogtreecommitdiff
path: root/spec/fixtures (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tests: run tests on Lua 5.4 and LuaJIT 2.1Hisham Muhammad2022-04-1611-0/+190
|
* tests: don't download sailorHisham Muhammad2022-03-064-0/+44
| | | | | | 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-062-35/+23
| | | | | | | | 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.
* pack: check that directory inside archive actually existsHisham Muhammad2021-03-221-0/+19
|
* tests: drop LuaSec dependency on tests, use fixtures insteadHisham Muhammad2020-01-253-0/+22
|
* dependency pinning: luarocks.lock file and --pin flagHisham Muhammad2019-11-298-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* cmd: add compatibility mode for pre-argparse external commandsHisham Muhammad2019-09-032-0/+51
| | | | See #1070.
* Add --sign option to `luarocks pack`Hisham Muhammad2019-04-014-0/+0
| | | | | | | | * Introduce a new module, `luarocks.signing` * Add `--sign` option to `luarocks pack`, which produces a detached GPG signature * Includes a basic test, along with some fixtures with a password-less GPG key
* Tests: add test cases for rocks with conflicting module namesHisham Muhammad2018-09-046-0/+53
| | | | | This tests the behavior of upgrades and downgrades on rocks that deploy both foo.lua and foo.so
* Tests: refactor and add fixtures for the doc testsGeorge Roman2018-07-311-0/+1
|
* Tests: use more fixtures in the build testsGeorge Roman2018-07-222-24/+0
|
* fs: make unpack_archive platform-agnostic using specific fs functionsHisham Muhammad2018-07-181-0/+0
| | | | | | | Use luarocks.tools.tar for handling tar files, and add platform-specific functions fs.zip, fs.unzip, fs.bunzip2, fs.gunzip, giving them native implementations using Lua modules or alternative implementations using third-party tools.
* Tests: remove precompiled header added incorrectlyHisham Muhammad2018-07-011-0/+0
|
* Tests: replace small fixture files with inline contentGeorge Roman2018-06-2116-124/+0
|
* Tests: improve patch.lua testsGeorge Roman2018-06-204-63/+0
|
* Tests: patch.luaGeorge Roman2018-06-144-0/+63
|
* builtin: auto-detect modules when build.modules (or build!) is absentHisham Muhammad2018-06-141-0/+1
|
* Tests: luarocks init (#811)George Roman2018-06-055-0/+44
|
* Improve the tests for the fetch moduleGeorge Roman2018-05-318-0/+53
|
* Tests: test the "busted" backend of `luarocks test` with a local fixtureHisham Muhammad2018-05-0711-0/+78
|
* Tests: add fixture for a project with Busted-based testsHisham Muhammad2018-05-072-0/+17
|
* Tests: build_dependenciesHisham Muhammad2018-04-139-0/+132
|
* Add support for namespaces.Hisham Muhammad2018-04-114-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1122-0/+257
|
* Tests: add missing fixturesHisham Muhammad2018-04-024-0/+24
|
* Reorganize test suite filesHisham Muhammad2018-01-0823-0/+298