aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-01-12 17:44:53 -0200
committerHisham Muhammad <hisham@gobolinux.org>2015-01-12 17:44:53 -0200
commit0ebdcd4c7ecd4487a786537be1283774c0e5509e (patch)
treee1c9ea4d10116818e08b204751a82d30f9b36f0a
parente7f9680bd66191b575e10ec2c9231bfff30694b7 (diff)
downloadluarocks-0ebdcd4c7ecd4487a786537be1283774c0e5509e.tar.gz
luarocks-0ebdcd4c7ecd4487a786537be1283774c0e5509e.tar.bz2
luarocks-0ebdcd4c7ecd4487a786537be1283774c0e5509e.zip
Updates to testing infrastructure (use new luasec, luacov)
-rwxr-xr-xtest/testing.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/testing.sh b/test/testing.sh
index 9a8fd412..3da17961 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -32,6 +32,7 @@ fi
32 32
33testing_dir="$PWD" 33testing_dir="$PWD"
34 34
35testing_lrprefix="$testing_dir/testing_lrprefix-$luaversion"
35testing_tree="$testing_dir/testing-$luaversion" 36testing_tree="$testing_dir/testing-$luaversion"
36testing_sys_tree="$testing_dir/testing_sys-$luaversion" 37testing_sys_tree="$testing_dir/testing_sys-$luaversion"
37testing_tree_copy="$testing_dir/testing_copy-$luaversion" 38testing_tree_copy="$testing_dir/testing_copy-$luaversion"
@@ -51,6 +52,7 @@ fi
51rm -f luacov.report.out 52rm -f luacov.report.out
52rm -rf /tmp/luarocks_testing 53rm -rf /tmp/luarocks_testing
53mkdir /tmp/luarocks_testing 54mkdir /tmp/luarocks_testing
55rm -rf "$testing_lrprefix"
54rm -rf "$testing_tree" 56rm -rf "$testing_tree"
55rm -rf "$testing_sys_tree" 57rm -rf "$testing_sys_tree"
56rm -rf "$testing_tree_copy" 58rm -rf "$testing_tree_copy"
@@ -173,8 +175,8 @@ srcdir_luasocket=luasocket-3.0-rc1
173version_cprint=0.1 175version_cprint=0.1
174verrev_cprint=0.1-1 176verrev_cprint=0.1-1
175 177
176version_luacov=0.5 178version_luacov=0.7
177verrev_luacov=0.5-1 179verrev_luacov=${version_luacov}-1
178version_lxsh=0.8.6 180version_lxsh=0.8.6
179version_validate_args=1.5.4 181version_validate_args=1.5.4
180verrev_validate_args=1.5.4-1 182verrev_validate_args=1.5.4-1
@@ -183,7 +185,7 @@ verrev_lxsh=${version_lxsh}-2
183luasec=luasec 185luasec=luasec
184 186
185cd .. 187cd ..
186./configure --with-lua="$luadir" 188./configure --with-lua="$luadir" --prefix="$testing_lrprefix"
187make clean 189make clean
188make src/luarocks/site_config.lua 190make src/luarocks/site_config.lua
189make dev 191make dev
@@ -217,8 +219,7 @@ luarocks_admin_nocov="run_lua --nocov luarocks-admin"
217mkdir -p "$testing_server" 219mkdir -p "$testing_server"
218( 220(
219 cd "$testing_server" 221 cd "$testing_server"
220 luarocks_repo="http://luarocks.org/repositories/rocks" 222 luarocks_repo="http://rocks.moonscript.org"
221 luarocks_scm_repo="http://luarocks.org/repositories/rocks-scm"
222 get() { [ -e `basename "$1"` ] || wget -c "$1"; } 223 get() { [ -e `basename "$1"` ] || wget -c "$1"; }
223 get "$luarocks_repo/luacov-${verrev_luacov}.src.rock" 224 get "$luarocks_repo/luacov-${verrev_luacov}.src.rock"
224 get "$luarocks_repo/luacov-${verrev_luacov}.rockspec" 225 get "$luarocks_repo/luacov-${verrev_luacov}.rockspec"
@@ -230,7 +231,7 @@ mkdir -p "$testing_server"
230 get "$luarocks_repo/stdlib-35-1.src.rock" 231 get "$luarocks_repo/stdlib-35-1.src.rock"
231 get "$luarocks_repo/luarepl-0.4-1.src.rock" 232 get "$luarocks_repo/luarepl-0.4-1.src.rock"
232 get "$luarocks_repo/validate-args-1.5.4-1.rockspec" 233 get "$luarocks_repo/validate-args-1.5.4-1.rockspec"
233 get "$luarocks_scm_repo/luasec-scm-1.rockspec" 234 get "$luarocks_repo/luasec-0.5-2.rockspec"
234 get "$luarocks_repo/luabitop-1.0.2-1.rockspec" 235 get "$luarocks_repo/luabitop-1.0.2-1.rockspec"
235 get "$luarocks_repo/lpty-1.0.1-1.src.rock" 236 get "$luarocks_repo/lpty-1.0.1-1.src.rock"
236 get "$luarocks_repo/cprint-${verrev_cprint}.src.rock" 237 get "$luarocks_repo/cprint-${verrev_cprint}.src.rock"