aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2016-05-22 19:04:45 +0300
committerPeter Melnichenko <mpeterval@gmail.com>2016-05-22 19:06:58 +0300
commit3e29a935df047976cff9e1f232c716b55fdcde69 (patch)
tree95a24e1975aa72a26a0df0a8cfd75aa0e268c3d0 /test
parent7b09079887862de80757cce4d8746585fc1809f1 (diff)
downloadluarocks-3e29a935df047976cff9e1f232c716b55fdcde69.tar.gz
luarocks-3e29a935df047976cff9e1f232c716b55fdcde69.tar.bz2
luarocks-3e29a935df047976cff9e1f232c716b55fdcde69.zip
Update tests for `luarocks write-rockspec`
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/testing.sh b/test/testing.sh
index 4f1b0b87..f56f2aa9 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -364,7 +364,6 @@ fail_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; } 366fail_new_version_noarg() { $luarocks new_version; }
367fail_write_rockspec_noarg() { $luarocks write_rockspec; }
368 367
369fail_build_invalid() { $luarocks build invalid; } 368fail_build_invalid() { $luarocks build invalid; }
370fail_download_invalid() { $luarocks download invalid; } 369fail_download_invalid() { $luarocks download invalid; }
@@ -523,6 +522,9 @@ test_deps_mode_make_order() { $luarocks build --tree="$testing_sys_tree" lpeg &&
523test_deps_mode_make_order_sys() { $luarocks build --tree="$testing_tree" lpeg && rm -rf ./lxsh-${verrev_lxsh} && $luarocks download --source lxsh ${verrev_lxsh} && $luarocks unpack ./lxsh-${verrev_lxsh}.src.rock && cd lxsh-${verrev_lxsh}/lxsh-${version_lxsh}-1 && $luarocks make --tree="$testing_sys_tree" --deps-mode=order && cd ../.. && [ `$luarocks_noecho list --tree="$testing_tree" --porcelain lpeg | wc -l` = 1 ] && rm -rf ./lxsh-${verrev_lxsh}; } 522test_deps_mode_make_order_sys() { $luarocks build --tree="$testing_tree" lpeg && rm -rf ./lxsh-${verrev_lxsh} && $luarocks download --source lxsh ${verrev_lxsh} && $luarocks unpack ./lxsh-${verrev_lxsh}.src.rock && cd lxsh-${verrev_lxsh}/lxsh-${version_lxsh}-1 && $luarocks make --tree="$testing_sys_tree" --deps-mode=order && cd ../.. && [ `$luarocks_noecho list --tree="$testing_tree" --porcelain lpeg | wc -l` = 1 ] && rm -rf ./lxsh-${verrev_lxsh}; }
524 523
525test_write_rockspec() { $luarocks write_rockspec git://github.com/keplerproject/luarocks; } 524test_write_rockspec() { $luarocks write_rockspec git://github.com/keplerproject/luarocks; }
525test_write_rockspec_name() { $luarocks write_rockspec luarocks git://github.com/keplerproject/luarocks; }
526test_write_rockspec_name_version() { $luarocks write_rockspec luarocks 7.8.9 git://github.com/keplerproject/luarocks; }
527test_write_rockspec_current_dir() { $luarocks write_rockspec; }
526test_write_rockspec_tag() { $luarocks write_rockspec git://github.com/keplerproject/luarocks --tag=v2.3.0; } 528test_write_rockspec_tag() { $luarocks write_rockspec git://github.com/keplerproject/luarocks --tag=v2.3.0; }
527test_write_rockspec_lib() { $luarocks write_rockspec git://github.com/mbalmer/luafcgi --lib=fcgi --license="3-clause BSD" --lua-version=5.1,5.2; } 529test_write_rockspec_lib() { $luarocks write_rockspec git://github.com/mbalmer/luafcgi --lib=fcgi --license="3-clause BSD" --lua-version=5.1,5.2; }
528test_write_rockspec_format() { $luarocks write_rockspec git://github.com/keplerproject/luarocks --rockspec-format=1.1 --lua-version=5.1,5.2; } 530test_write_rockspec_format() { $luarocks write_rockspec git://github.com/keplerproject/luarocks --rockspec-format=1.1 --lua-version=5.1,5.2; }