aboutsummaryrefslogtreecommitdiff
path: root/test/testing.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/testing.sh')
-rwxr-xr-xtest/testing.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/testing.sh b/test/testing.sh
index 5269e42a..4f1b0b87 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -179,6 +179,9 @@ srcdir_luasocket=luasocket-3.0-rc1
179version_cprint=0.1 179version_cprint=0.1
180verrev_cprint=0.1-2 180verrev_cprint=0.1-2
181 181
182new_version_say=1.2-1
183old_version_say=1.0-1
184
182version_luacov=0.11.0 185version_luacov=0.11.0
183verrev_luacov=${version_luacov}-1 186verrev_luacov=${version_luacov}-1
184version_lxsh=0.8.6 187version_lxsh=0.8.6
@@ -260,6 +263,9 @@ mkdir -p "$testing_server"
260 get "$luarocks_repo/lua-path-0.2.3-1.src.rock" 263 get "$luarocks_repo/lua-path-0.2.3-1.src.rock"
261 get "$luarocks_repo/lua-cjson-2.1.0-1.src.rock" 264 get "$luarocks_repo/lua-cjson-2.1.0-1.src.rock"
262 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/say-1.2-1.src.rock"
267 get "$luarocks_repo/say-1.0-1.src.rock"
268 get "$luarocks_repo/luassert-1.7.0-1.src.rock"
263) 269)
264$luarocks_admin_nocov make_manifest "$testing_server" 270$luarocks_admin_nocov make_manifest "$testing_server"
265 271
@@ -558,8 +564,12 @@ test_doc_list() { $luarocks install luacov; $luarocks doc luacov --list; }
558test_doc_local() { $luarocks install luacov; $luarocks doc luacov --local; } 564test_doc_local() { $luarocks install luacov; $luarocks doc luacov --local; }
559test_doc_porcelain() { $luarocks install luacov; $luarocks doc luacov --porcelain; } 565test_doc_porcelain() { $luarocks install luacov; $luarocks doc luacov --porcelain; }
560 566
561# Driver ######################################### 567# Tests for https://github.com/keplerproject/luarocks/pull/552
568test_install_break_dependencies_warning() { need_luasocket; $luarocks install say ${new_version_say} && $luarocks install luassert && $luarocks install say ${old_version_say}; }
569test_install_break_dependencies_force() { need_luasocket; $luarocks install say ${new_version_say} && $luarocks install luassert && $luarocks install --force say ${old_version_say}; }
570test_install_break_dependencies_forcefast() { need_luasocket; $luarocks install say ${new_version_say} && $luarocks install luassert && $luarocks install --force-fast say ${old_version_say}; }
562 571
572# Driver #########################################
563run_tests() { 573run_tests() {
564 grep "^test_$1.*(" < $testing_dir/testing.sh | cut -d'(' -f1 | while read test 574 grep "^test_$1.*(" < $testing_dir/testing.sh | cut -d'(' -f1 | while read test
565 do 575 do