diff options
author | mpeterv <mpeterval@gmail.com> | 2015-06-26 14:47:19 +0300 |
---|---|---|
committer | mpeterv <mpeterval@gmail.com> | 2015-06-26 14:58:56 +0300 |
commit | 19ce8a62a8ac32f9af9aa7255d3f9fa097eed676 (patch) | |
tree | 3827154287e8cdc1c58f0226be6e371e6b6b22c3 /test | |
parent | 4c7a5bc9914b1dada3616057cd9b7b214200efe7 (diff) | |
download | luarocks-19ce8a62a8ac32f9af9aa7255d3f9fa097eed676.tar.gz luarocks-19ce8a62a8ac32f9af9aa7255d3f9fa097eed676.tar.bz2 luarocks-19ce8a62a8ac32f9af9aa7255d3f9fa097eed676.zip |
Add a test for '--rockspec-format' option
Diffstat (limited to 'test')
-rw-r--r-- | test/testing.lua | 1 | ||||
-rwxr-xr-x | test/testing.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/testing.lua b/test/testing.lua index 44c6f098..48d4ac0e 100644 --- a/test/testing.lua +++ b/test/testing.lua | |||
@@ -400,6 +400,7 @@ local tests = { | |||
400 | end, | 400 | end, |
401 | test_write_rockspec = function() return run "$luarocks write_rockspec git://github.com/keplerproject/luarocks" end, | 401 | test_write_rockspec = function() return run "$luarocks write_rockspec git://github.com/keplerproject/luarocks" end, |
402 | test_write_rockspec_lib = function() return run '$luarocks write_rockspec git://github.com/mbalmer/luafcgi --lib=fcgi --license="3-clause BSD" --lua-version=5.1,5.2' end, | 402 | test_write_rockspec_lib = function() return run '$luarocks write_rockspec git://github.com/mbalmer/luafcgi --lib=fcgi --license="3-clause BSD" --lua-version=5.1,5.2' end, |
403 | test_write_rockspec_format = function() return run '$luarocks write_rockspec git://github.com/keplerproject/luarocks --rockspec-format=1.1 --lua-version=5.1,5.2' end, | ||
403 | test_write_rockspec_fullargs = function() return run '$luarocks write_rockspec git://github.com/keplerproject/luarocks --lua-version=5.1,5.2 --license="MIT/X11" --homepage="http://www.luarocks.org" --summary="A package manager for Lua modules"' end, | 404 | test_write_rockspec_fullargs = function() return run '$luarocks write_rockspec git://github.com/keplerproject/luarocks --lua-version=5.1,5.2 --license="MIT/X11" --homepage="http://www.luarocks.org" --summary="A package manager for Lua modules"' end, |
404 | fail_write_rockspec_args = function() return run "$luarocks write_rockspec invalid" end, | 405 | fail_write_rockspec_args = function() return run "$luarocks write_rockspec invalid" end, |
405 | fail_write_rockspec_args_url = function() return run "$luarocks write_rockspec http://example.com/invalid.zip" end, | 406 | fail_write_rockspec_args_url = function() return run "$luarocks write_rockspec http://example.com/invalid.zip" end, |
diff --git a/test/testing.sh b/test/testing.sh index 4338e48f..c43b4d52 100755 --- a/test/testing.sh +++ b/test/testing.sh | |||
@@ -492,6 +492,7 @@ test_deps_mode_make_order_sys() { $luarocks build --tree="$testing_tree" lpeg && | |||
492 | 492 | ||
493 | test_write_rockspec() { $luarocks write_rockspec git://github.com/keplerproject/luarocks; } | 493 | test_write_rockspec() { $luarocks write_rockspec git://github.com/keplerproject/luarocks; } |
494 | test_write_rockspec_lib() { $luarocks write_rockspec git://github.com/mbalmer/luafcgi --lib=fcgi --license="3-clause BSD" --lua-version=5.1,5.2; } | 494 | test_write_rockspec_lib() { $luarocks write_rockspec git://github.com/mbalmer/luafcgi --lib=fcgi --license="3-clause BSD" --lua-version=5.1,5.2; } |
495 | test_write_rockspec_format() { $luarocks write_rockspec git://github.com/keplerproject/luarocks --rockspec-format=1.1 --lua-version=5.1,5.2; } | ||
495 | test_write_rockspec_fullargs() { $luarocks write_rockspec git://github.com/keplerproject/luarocks --lua-version=5.1,5.2 --license="MIT/X11" --homepage="http://www.luarocks.org" --summary="A package manager for Lua modules"; } | 496 | test_write_rockspec_fullargs() { $luarocks write_rockspec git://github.com/keplerproject/luarocks --lua-version=5.1,5.2 --license="MIT/X11" --homepage="http://www.luarocks.org" --summary="A package manager for Lua modules"; } |
496 | fail_write_rockspec_args() { $luarocks write_rockspec invalid; } | 497 | fail_write_rockspec_args() { $luarocks write_rockspec invalid; } |
497 | fail_write_rockspec_args_url() { $luarocks write_rockspec http://example.com/invalid.zip; } | 498 | fail_write_rockspec_args_url() { $luarocks write_rockspec http://example.com/invalid.zip; } |