aboutsummaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-07-11Make package.path and package.cpath unique in win32 bin scripts.Xpol Wan2-1/+3
2016-07-11Fix crash when given a remote rockspec.Hisham1-5/+9
2016-07-10Update new_version_spec.luarobooo1-6/+1
2016-07-10Doc testsroboo1-1/+18
2016-07-10Tests added - new_versionroboo1-1/+19
2016-07-08Infer Lua version using luarocks.cfg when not on travisPeter Melnichenko1-26/+6
2016-07-08Tests: add file/dir existence check utility functionPeter Melnichenko1-14/+16
Use it instead of os.rename(path, path).
2016-07-08Tests: adjust rock/rockspec downloadingPeter Melnichenko1-26/+25
2016-07-08Tests: adjust build_environmentPeter Melnichenko1-7/+11
2016-07-08Tests: utility function for marking sectionsPeter Melnichenko1-11/+11
2016-07-08Tests: move luarocks installation into its own functionPeter Melnichenko1-13/+18
2016-07-08Tests: adjust file/dir removing functionsPeter Melnichenko1-13/+9
2016-07-08Tests: move clean() into separate function, fix a patternPeter Melnichenko1-7/+11
2016-07-08Tests: remove optional .main() argumentsPeter Melnichenko1-13/+10
2016-07-08Tests: move config creation into its functionPeter Melnichenko1-38/+44
2016-07-08Tests: fix need_luasocket()Peter Melnichenko1-11/+6
Return false if installation failed. Also, remove optional arguments.
2016-07-08Tests: remove optional OS argument in hash_environmentPeter Melnichenko1-14/+8
2016-07-08Tests: fix config creation error handlingPeter Melnichenko1-2/+1
2016-07-08Tests: reformat help messagePeter Melnichenko1-15/+21
2016-07-08Tests: refactor config creationPeter Melnichenko1-64/+81
2016-07-08Tests: fix luabitop installation conditionPeter Melnichenko1-1/+1
2016-07-08Remove some more unused stuff and globals from testsPeter Melnichenko12-21/+17
2016-07-08Make env vars, paths and run commands available on test env loadPeter Melnichenko25-92/+82
2016-07-08Tests: disable insulation and use describe() instead of expose()Peter Melnichenko25-25/+26
2016-07-08Test suite: use test/test_environment as busted helperPeter Melnichenko2-29/+18
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.
2016-07-08Remove all the unused imports in test suitePeter Melnichenko23-49/+13
2016-07-08Tests: infer Lua/LuaJIT versionPeter Melnichenko2-31/+27
2016-07-08.travis.yml: don't use virtualenvPeter Melnichenko1-7/+3
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.
2016-07-07New test-suite for LuaRocks (#581)robooo30-1143/+2281
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
2016-07-05Fix implicit number-to-string coversion in luarocks.helpPeter Melnichenko1-1/+1
2016-07-05Fix field name building in type_check.luaPeter Melnichenko1-2/+5
Use 'parent[field]' notation for non-string fields.
2016-06-22Mention failed action on invalid archive extensionPeter Melnichenko2-4/+2
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.
2016-06-22Handle unpack_archive errorsPeter Melnichenko1-1/+2
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>'.
2016-06-13Fix an accidental global in luarocks.buildPeter Melnichenko1-1/+1
2016-06-13Don't use 'run' interface in luarocks.buildPeter Melnichenko1-1/+1
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.
2016-06-13Use install.command instead of install.run in luarocks.depsPeter Melnichenko1-1/+1
2016-06-09Use utils.see_help() consistently for all commandsPeter Melnichenko2-2/+2
2016-06-07Check external_dependencies before dependencies.Hisham1-6/+8
This allows us to fail quicker before installing a bunch of other rocks.
2016-06-03Get rid of util.forward_flagsPeter Melnichenko2-34/+2
Use 'commands' functions directly.
2016-06-03Refactor CLI to avoid double args parsingPeter Melnichenko26-91/+64
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'.
2016-05-31Remove commented module() callsPeter Melnichenko51-51/+0
2016-05-31Remove unused imports in luarocks.makePeter Melnichenko1-2/+0
2016-05-30luarocks.persist: put pairs with number values on one linePeter Melnichenko1-1/+1
Instead of pairs with number keys. Keeps parsed version representation compact but puts items in regular arrays each on its own line.
2016-05-25luarocks new-version: make rockspec arg optionalPeter Melnichenko2-5/+10
Infer it same way `luarocks make` does.
2016-05-25luarocks make: move rockspec picking into an util functionPeter Melnichenko2-55/+69
2016-05-25Ensure entries are readable.Hisham2-3/+3
2016-05-25Fixes #465 ensuring the binaries are +x.Hisham1-0/+1
2016-05-23write-rockspec: improve homepage detectionPeter Melnichenko1-4/+13
* 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'.
2016-05-23write-rockspec: infer git and hg urls from local reposPeter Melnichenko1-0/+29
2016-05-23Fallback to vcvarsall.bat if compiler specific bat not found.Xpol Wan1-0/+8