aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIgnacio Burgueño <ignaciob@inconcertcc.com>2015-04-14 02:15:31 -0300
committerIgnacio Burgueño <ignaciob@inconcertcc.com>2015-04-14 02:15:31 -0300
commit0f67be5258e25d8cf68b2a50535e82dd0c757206 (patch)
treed6881bbbdf8f9adea3989106cb3a7049e2848c0d /test
parent0fe8556ced63d714e0cd371a8511c8dadce7874e (diff)
downloadluarocks-0f67be5258e25d8cf68b2a50535e82dd0c757206.tar.gz
luarocks-0f67be5258e25d8cf68b2a50535e82dd0c757206.tar.bz2
luarocks-0f67be5258e25d8cf68b2a50535e82dd0c757206.zip
Adds --only-deps flag to the 'build' command.
As discussed in #287, adds a new flag (--only-deps) to the 'build' command, so only the dependencies of a rock are installed, and not the rock itself.
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/testing.sh b/test/testing.sh
index b75b51d7..78e60a76 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -249,6 +249,7 @@ mkdir -p "$testing_server"
249 get "$luarocks_repo/cprint-${verrev_cprint}.rockspec" 249 get "$luarocks_repo/cprint-${verrev_cprint}.rockspec"
250 get "$luarocks_repo/wsapi-1.6-1.src.rock" 250 get "$luarocks_repo/wsapi-1.6-1.src.rock"
251 get "$luarocks_repo/lxsh-${verrev_lxsh}.src.rock" 251 get "$luarocks_repo/lxsh-${verrev_lxsh}.src.rock"
252 get "$luarocks_repo/lxsh-${verrev_lxsh}.rockspec"
252 get "$luarocks_repo/abelhas-${verrev_abelhas}.rockspec" 253 get "$luarocks_repo/abelhas-${verrev_abelhas}.rockspec"
253 get "$luarocks_repo/lzlib-0.4.1.53-1.src.rock" 254 get "$luarocks_repo/lzlib-0.4.1.53-1.src.rock"
254 get "$luarocks_repo/lpeg-0.12-1.src.rock" 255 get "$luarocks_repo/lpeg-0.12-1.src.rock"
@@ -262,6 +263,7 @@ mkdir -p "$testing_server"
262 get "$luarocks_repo/lua-path-0.2.3-1.src.rock" 263 get "$luarocks_repo/lua-path-0.2.3-1.src.rock"
263 get "$luarocks_repo/lua-cjson-2.1.0-1.src.rock" 264 get "$luarocks_repo/lua-cjson-2.1.0-1.src.rock"
264 get "$luarocks_repo/luacov-coveralls-0.1.1-1.src.rock" 265 get "$luarocks_repo/luacov-coveralls-0.1.1-1.src.rock"
266 get "$luarocks_repo/luacov-coveralls-0.1.1-1.src.rock"
265) 267)
266$luarocks_admin_nocov make_manifest "$testing_server" 268$luarocks_admin_nocov make_manifest "$testing_server"
267 269
@@ -385,6 +387,24 @@ test_build_install_bin() { $luarocks build luarepl; }
385test_build_nohttps() { need_luasocket; $luarocks download --rockspec validate-args ${verrev_validate_args} && $luarocks build ./validate-args-${version_validate_args}-1.rockspec && rm ./validate-args-${version_validate_args}-1.rockspec; } 387test_build_nohttps() { need_luasocket; $luarocks download --rockspec validate-args ${verrev_validate_args} && $luarocks build ./validate-args-${version_validate_args}-1.rockspec && rm ./validate-args-${version_validate_args}-1.rockspec; }
386test_build_https() { need_luasocket; $luarocks download --rockspec validate-args ${verrev_validate_args} && $luarocks install $luasec && $luarocks build ./validate-args-${verrev_validate_args}.rockspec && rm ./validate-args-${verrev_validate_args}.rockspec; } 388test_build_https() { need_luasocket; $luarocks download --rockspec validate-args ${verrev_validate_args} && $luarocks install $luasec && $luarocks build ./validate-args-${verrev_validate_args}.rockspec && rm ./validate-args-${verrev_validate_args}.rockspec; }
387test_build_supported_platforms() { $luarocks build lpty; } 389test_build_supported_platforms() { $luarocks build lpty; }
390test_build_only_deps_rockspec() { $luarocks download --rockspec lxsh ${verrev_lxsh} ; $luarocks build ./lxsh-${verrev_lxsh}.rockspec --only-deps; $luarocks show lxsh;
391 if [ $? -ne 0 ]
392 then return 0;
393 fi;
394 return 1;
395}
396test_build_only_deps_src_rock() { $luarocks download --source lxsh ${verrev_lxsh} ; $luarocks build ./lxsh-${verrev_lxsh}.src.rock --only-deps; $luarocks show lxsh;
397 if [ $? -ne 0 ]
398 then return 0;
399 fi;
400 return 1;
401}
402test_build_only_deps() { $luarocks build luasec --only-deps; $luarocks show luasec;
403 if [ $? -ne 0 ]
404 then return 0;
405 fi;
406 return 1;
407}
388fail_build_missing_external() { $luarocks build "$testing_dir/testfiles/missing_external-0.1-1.rockspec" INEXISTENT_INCDIR="/invalid/dir"; } 408fail_build_missing_external() { $luarocks build "$testing_dir/testfiles/missing_external-0.1-1.rockspec" INEXISTENT_INCDIR="/invalid/dir"; }
389fail_build_invalidpatch() { need_luasocket; $luarocks build "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; } 409fail_build_invalidpatch() { need_luasocket; $luarocks build "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; }
390 410