summaryrefslogtreecommitdiff
path: root/spec/build_spec.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tests: run tests on Lua 5.4 and LuaJIT 2.1Hisham Muhammad2022-04-161-8/+3
|
* tests: avoid repeated hardcoded package version numbers all overHisham Muhammad2022-04-121-5/+5
|
* tests: don't use validate-args rockspec in testsHisham Muhammad2022-03-061-1/+0
| | | | | | | | 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: bump luacov to 0.15.0Hisham Muhammad2021-07-221-2/+2
|
* editorconfig: trim trailing whitespaceHisham Muhammad2021-03-161-25/+25
|
* Support --pin and --only-deps together (#1222)Hisham Muhammad2020-09-231-0/+36
|
* tests: check that builtin auto-reads lua/ when modules table is emptyHisham Muhammad2020-07-211-0/+21
| | | | Test case for issue reported at https://github.com/Kong/kong/issues/5017
* fix downgrades of rocks containing directories (#1151)Hisham Muhammad2020-02-071-0/+8
| | | | Fixes #1141
* tests: drop LuaSec dependency on tests, use fixtures insteadHisham Muhammad2020-01-251-24/+20
|
* dependency pinning: luarocks.lock file and --pin flagHisham Muhammad2019-11-291-3/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* tests: simplify descriptions and set lazy setup/teardownHisham Muhammad2019-11-291-32/+32
|
* build: fix --branch flagHisham Muhammad2019-09-031-6/+29
| | | | | | | | | | | | 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.
* cfg: avoid setting LUA_LIBDIR and LUA_INCDIR too earlyHisham Muhammad2019-07-261-1/+2
|
* update to luacov 0.13.1 + cluacov 0.1.1Hisham Muhammad2019-04-031-2/+2
|
* Tests: add test_env.run_in_tmp utility functionGeorge Roman2018-07-241-189/+147
|
* fs.copy: skip copying if the source and destination are the same filesGeorge Roman2018-07-221-1/+1
|
* Tests: use more fixtures in the build testsGeorge Roman2018-07-221-29/+101
|
* Tests: support running with the default detected OpenSSL locationsHisham Muhammad2018-07-181-6/+3
|
* Tests: use fixtures for some build integration testsGeorge Roman2018-07-181-24/+80
|
* Tests: remove redundant build testsGeorge Roman2018-07-051-43/+0
|
* Tests: unit tests for build.builtinGeorge Roman2018-07-051-19/+454
|
* Tests: separate OPENSSL_DIRS into OPENSSL_INCDIR and OPENSSL_LIBDIRGeorge Roman2018-07-051-3/+6
|
* Tests: replace small fixture files with inline contentGeorge Roman2018-06-211-9/+90
|
* builtin: if "libraries" is used but "external_dependencies" is not given, ↵Hisham Muhammad2018-06-141-0/+27
| | | | | | | | autogenerate it The approach is slightly ugly since it adds builtin-specific knowledge to `luarocks.deps`, but I don't think any other build backends will support this behavior any time soon.
* builtin: auto-detect modules when build.modules (or build!) is absentHisham Muhammad2018-06-141-0/+42
|
* build: make "builtin" the default build.typeHisham Muhammad2018-06-061-0/+27
|
* Tests: luarocks init (#811)George Roman2018-06-051-4/+19
|
* Tests: replace #blackbox with #integration and #whitebox with #unitGeorge Roman2018-06-041-1/+1
|
* Tests: cache build of mock server dependencies to speed up testsHisham Muhammad2018-05-281-2/+2
|
* Tests: build: pin version in testHisham Muhammad2018-05-071-1/+1
|
* Tests: build_dependenciesHisham Muhammad2018-04-131-0/+8
|
* Add support for namespaces.Hisham Muhammad2018-04-111-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Reorganize test suite filesHisham Muhammad2018-01-081-6/+6
|
* Tests: add dependencies to mock-server testsHisham Muhammad2018-01-041-2/+2
|
* Tests: mark tests with #mock to fix Appveyor failuresHisham Muhammad2018-01-021-1/+1
|
* Tests: build using INCDIR for an external dependencyHisham Muhammad2017-11-061-4/+22
|
* Use versioned files only. (#734)Hisham Muhammad2017-10-041-20/+20
| | | | | | | | 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
* Tests: luarocks_bool commands log their outputs on failure.Hisham2016-09-081-4/+4
|
* Change APPVEYOR_OPENSSL to OPENSSL_DIRS for better test readabilityroboo2016-08-221-15/+3
|
* Windows and appveyor support for testsroboo2016-08-211-29/+60
|
* Test improvementsroboo2016-07-191-17/+19
|
* need_rock() added, new flag noreset environmentroboo2016-07-141-2/+0
|
* 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-1/+0
|
* New test-suite for LuaRocks (#581)robooo2016-07-071-0/+182
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