aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2016-05-25 11:17:14 +0300
committerPeter Melnichenko <mpeterval@gmail.com>2016-05-25 15:01:33 +0300
commit22c8993ebe5f509ee55b8af6b7a8be147b3884e6 (patch)
tree1bce4707ef72c099edfa467867ee2d940d56c928 /test
parentf41e1da03b2c2aaf4c145ff83d10dfa07c2395ca (diff)
downloadluarocks-22c8993ebe5f509ee55b8af6b7a8be147b3884e6.tar.gz
luarocks-22c8993ebe5f509ee55b8af6b7a8be147b3884e6.tar.bz2
luarocks-22c8993ebe5f509ee55b8af6b7a8be147b3884e6.zip
luarocks new-version: make rockspec arg optional
Infer it same way `luarocks make` does.
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testing.sh b/test/testing.sh
index f56f2aa9..cb10441c 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -363,7 +363,6 @@ fail_unpack_noarg() { $luarocks unpack; }
363fail_upload_noarg() { $luarocks upload; } 363fail_upload_noarg() { $luarocks upload; }
364fail_remove_noarg() { $luarocks remove; } 364fail_remove_noarg() { $luarocks remove; }
365fail_doc_noarg() { $luarocks doc; } 365fail_doc_noarg() { $luarocks doc; }
366fail_new_version_noarg() { $luarocks new_version; }
367 366
368fail_build_invalid() { $luarocks build invalid; } 367fail_build_invalid() { $luarocks build invalid; }
369fail_download_invalid() { $luarocks download invalid; } 368fail_download_invalid() { $luarocks download invalid; }
@@ -446,6 +445,7 @@ test_make_pack_binary_rock() { rm -rf ./lxsh-${verrev_lxsh} && $luarocks downlo
446test_new_version() { $luarocks download --rockspec luacov ${version_luacov} && $luarocks new_version ./luacov-${version_luacov}-1.rockspec 0.2 && rm ./luacov-0.*; } 445test_new_version() { $luarocks download --rockspec luacov ${version_luacov} && $luarocks new_version ./luacov-${version_luacov}-1.rockspec 0.2 && rm ./luacov-0.*; }
447test_new_version_url() { $luarocks download --rockspec abelhas 1.0 && $luarocks new_version ./abelhas-1.0-1.rockspec 1.1 https://github.com/downloads/ittner/abelhas/abelhas-1.1.tar.gz && rm ./abelhas-*; } 446test_new_version_url() { $luarocks download --rockspec abelhas 1.0 && $luarocks new_version ./abelhas-1.0-1.rockspec 1.1 https://github.com/downloads/ittner/abelhas/abelhas-1.1.tar.gz && rm ./abelhas-*; }
448test_new_version_tag() { $luarocks download --rockspec luacov ${version_luacov} && $luarocks new_version ./luacov-${version_luacov}-1.rockspec --tag v0.3 && rm ./luacov-0.3-1.rockspec; } 447test_new_version_tag() { $luarocks download --rockspec luacov ${version_luacov} && $luarocks new_version ./luacov-${version_luacov}-1.rockspec --tag v0.3 && rm ./luacov-0.3-1.rockspec; }
448test_new_version_tag_without_arg() { rm -rf ./*rockspec && $luarocks download --rockspec luacov ${version_luacov} && $luarocks new_version --tag v0.3 && rm ./luacov-0.3-1.rockspec; }
449 449
450test_pack() { $luarocks list && $luarocks pack luacov && rm ./luacov-*.rock; } 450test_pack() { $luarocks list && $luarocks pack luacov && rm ./luacov-*.rock; }
451test_pack_src() { $luarocks install $luasec && $luarocks download --rockspec luasocket && $luarocks pack ./luasocket-${verrev_luasocket}.rockspec && rm ./luasocket-${version_luasocket}-*.rock; } 451test_pack_src() { $luarocks install $luasec && $luarocks download --rockspec luasocket && $luarocks pack ./luasocket-${verrev_luasocket}.rockspec && rm ./luasocket-${version_luasocket}-*.rock; }