diff options
| author | Ignacio Burgueño <iburgueno@gmail.com> | 2015-04-14 13:46:35 -0300 |
|---|---|---|
| committer | Ignacio Burgueño <iburgueno@gmail.com> | 2015-04-14 13:46:35 -0300 |
| commit | 2ee6bd7b5d840375b8887d68a89ad53b6bd53c00 (patch) | |
| tree | 05cdec68b6ac4976b68724bff6ca997550ab9a73 /test/testing.lua | |
| parent | 6dd402bb702f9eee7eecd833f9325e71c0d84a04 (diff) | |
| parent | 15ad97bb124c800a95ac0d2d46f747e711fd3f8e (diff) | |
| download | luarocks-2ee6bd7b5d840375b8887d68a89ad53b6bd53c00.tar.gz luarocks-2ee6bd7b5d840375b8887d68a89ad53b6bd53c00.tar.bz2 luarocks-2ee6bd7b5d840375b8887d68a89ad53b6bd53c00.zip | |
Merge pull request #349 from ignacio/build_only_deps
Adds --only-deps flag to the 'build' command.
Diffstat (limited to 'test/testing.lua')
| -rw-r--r-- | test/testing.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/testing.lua b/test/testing.lua index 376d6e9a..86f3ab34 100644 --- a/test/testing.lua +++ b/test/testing.lua | |||
| @@ -140,6 +140,18 @@ local tests = { | |||
| 140 | and rm "./validate-args-${verrev_validate_args}.rockspec" | 140 | and rm "./validate-args-${verrev_validate_args}.rockspec" |
| 141 | end, | 141 | end, |
| 142 | test_build_supported_platforms = function() return run "$luarocks build lpty" end, | 142 | test_build_supported_platforms = function() return run "$luarocks build lpty" end, |
| 143 | test_build_only_deps_rockspec = function() | ||
| 144 | return run "$luarocks download --rockspec lxsh ${verrev_lxsh}" | ||
| 145 | and run "$luarocks build ./lxsh-${verrev_lxsh}.rockspec --only-deps" | ||
| 146 | and (not run "$luarocks show lxsh") | ||
| 147 | end, | ||
| 148 | test_build_only_deps_src_rock = function() | ||
| 149 | return run "$luarocks download --source lxsh ${verrev_lxsh}" | ||
| 150 | and run "$luarocks build ./lxsh-${verrev_lxsh}.src.rock --only-deps" | ||
| 151 | and (not run "$luarocks show lxsh") | ||
| 152 | end, | ||
| 153 | test_build_only_deps = function() return run "$luarocks build luasec --only-deps" and (not run "$luarocks show luasec") end, | ||
| 154 | test_install_only_deps = function() return run "$luarocks install lxsh ${verrev_lxsh} --only-deps" and (not run "$luarocks show lxsh") end, | ||
| 143 | fail_build_missing_external = function() return run '$luarocks build "$testing_dir/testfiles/missing_external-0.1-1.rockspec" INEXISTENT_INCDIR="/invalid/dir"' end, | 155 | fail_build_missing_external = function() return run '$luarocks build "$testing_dir/testfiles/missing_external-0.1-1.rockspec" INEXISTENT_INCDIR="/invalid/dir"' end, |
| 144 | fail_build_invalidpatch = function() | 156 | fail_build_invalidpatch = function() |
| 145 | need_luasocket() | 157 | need_luasocket() |
