| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When parsing test options, instead of directly looking
for '-Xhelper' in arguments and splitting the next arguments on commas
add .busted config to set test/test_environment as busted helper.
Then busted will do the splitting on its own and set global arg to
split options.
|
| | | | |
|
| | | | |
|
| | |/
| | |
| | |
| | |
| | |
| | |
| | | |
Install python 2 and avoid using virtualenv, pip on osx works fine
without it.
Also remove unnecessary path prefix and add newline at the end.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
|
| | |
| | |
| | |
| | | |
Use 'parent[field]' notation for non-string fields.
|
| |/ |
|
|\ \
| | |
| | | |
Core modules reorganization.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Isolate all modules used by luarocks.loader in a
luarocks.core.* namespace. Core modules can only require
other core modules, and they only use require() at the
top-level chunk. In other words, after luarocks.loader
is setup, package.path can be altered at will and it
should not affect the ability of luarocks.loader to run,
and the luarocks.loader modules should not interfere
with modules loaded later.
This was motivated by @robooo's GSoC work on porting
the LuaRocks test suite to Lua using Busted. Busted itself
runs using luarocks.loader, and we need to ensure that
the modules loaded by the tests do not conflict with
the ones used by luarocks.loader.
A circular dependency between luarocks.manif and
luarocks.search was removed by creating a separate
luarocks.manif.writer module.
Also, luarocks-admin commands were moved to a
luarocks.admin.* namespace.
|
|\| |
|
| |\
| | |
| | | |
Improve error on archive unpack error
|
| | |
| | |
| | |
| | |
| | |
| | | |
Return `Couldn't extract archive <file>: unrecognized filename extension`
instead of `Unrecognized extension <ext>`, so that it's clear
that the file is being interpreted as an archive.
|
| |/
| |
| |
| |
| |
| | |
In particular, when installing a rock, fail with a message related
to extraction error or unrecognized archive extension instead of
'Directory <name> not found inside archive <name>.<ext>'.
|
| | |
|
| | |
|
| | |
|
|\| |
|
| |
| |
| |
| |
| |
| | |
Use local 'do_build' function as function for search.act_on_src_or_rockspec
instead. This also gets rid of double permission check and double removal
of other versions.
|
| | |
|
|\| |
|
| |\
| | |
| | | |
Refactor cli to avoid double args parsing
|
| | |
| | |
| | |
| | | |
Use 'commands' functions directly.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
New command module interface: instead of 'run' function
they must have 'command' function that accepts flags table
and other arguments. For compatibility a new util function
is called on all command modules: it adds 'run' function
that parses command-line args before passing them to 'command'.
|
| |\ \
| | | |
| | | | |
Add cross compiling support for MSVC.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
This is needed, when native compiler is not installed but cross compiler does.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This allows us to fail quicker before installing
a bunch of other rocks.
|
| |\ \ \
| | | |/
| | |/| |
|
| | | | |
|
| | | | |
|
| | |\ \
| | | | |
| | | | | |
Don't put array items on the same line when persisting
|
| | |/ /
| | | |
| | | |
| | | |
| | | | |
Instead of pairs with number keys. Keeps parsed version representation
compact but puts items in regular arrays each on its own line.
|
| | |\ \
| | | | |
| | | | | |
Write rockspec infer scm url
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* Perform detection later to take into account URL inferred from
local scm repo.
* Support more protocols instead of just 'git://'.
* Support Bitbucket and Gitlab in addition to Github.
* Strip trailing '.git'.
|
| | | | | |
|
| | |\ \ \
| | | | | |
| | | | | | |
luarocks new-version: make rockspec argument optional
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Infer it same way `luarocks make` does.
|
| | |/ / / |
|
| |/ / / |
|
| |\| | |
|