diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2015-04-18 14:35:39 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-04-18 14:35:39 -0300 |
| commit | cda43ce50660aa55aeb2c4d2d8e724f17fa7f863 (patch) | |
| tree | c0101d344da23143e27c5897f8e5898197d4e22c /test | |
| parent | 022c87d98ee1605e98d880f461297b0934a90719 (diff) | |
| parent | b6b67547ef5801502f1b63ec62c04923ceb77cef (diff) | |
| download | luarocks-cda43ce50660aa55aeb2c4d2d8e724f17fa7f863.tar.gz luarocks-cda43ce50660aa55aeb2c4d2d8e724f17fa7f863.tar.bz2 luarocks-cda43ce50660aa55aeb2c4d2d8e724f17fa7f863.zip | |
Merge branch 'master' of https://github.com/keplerproject/luarocks
Diffstat (limited to 'test')
| -rw-r--r-- | test/testing.lua | 12 | ||||
| -rwxr-xr-x | test/testing.sh | 5 |
2 files changed, 17 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() |
diff --git a/test/testing.sh b/test/testing.sh index b75b51d7..0fa6fe92 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" |
| @@ -385,6 +386,10 @@ test_build_install_bin() { $luarocks build luarepl; } | |||
| 385 | test_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; } | 386 | test_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; } |
| 386 | test_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; } | 387 | test_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; } |
| 387 | test_build_supported_platforms() { $luarocks build lpty; } | 388 | test_build_supported_platforms() { $luarocks build lpty; } |
| 389 | test_build_only_deps_rockspec() { $luarocks download --rockspec lxsh ${verrev_lxsh} && $luarocks build ./lxsh-${verrev_lxsh}.rockspec --only-deps && { $luarocks show lxsh; [ $? -ne 0 ]; }; } | ||
| 390 | test_build_only_deps_src_rock() { $luarocks download --source lxsh ${verrev_lxsh} && $luarocks build ./lxsh-${verrev_lxsh}.src.rock --only-deps && { $luarocks show lxsh; [ $? -ne 0 ]; }; } | ||
| 391 | test_build_only_deps() { $luarocks build luasec --only-deps && { $luarocks show luasec; [ $? -ne 0 ]; }; } | ||
| 392 | test_install_only_deps() { $luarocks install lxsh ${verrev_lxsh} --only-deps && { $luarocks show lxsh; [ $? -ne 0 ]; }; } | ||
| 388 | fail_build_missing_external() { $luarocks build "$testing_dir/testfiles/missing_external-0.1-1.rockspec" INEXISTENT_INCDIR="/invalid/dir"; } | 393 | fail_build_missing_external() { $luarocks build "$testing_dir/testfiles/missing_external-0.1-1.rockspec" INEXISTENT_INCDIR="/invalid/dir"; } |
| 389 | fail_build_invalidpatch() { need_luasocket; $luarocks build "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; } | 394 | fail_build_invalidpatch() { need_luasocket; $luarocks build "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; } |
| 390 | 395 | ||
