diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-12 17:44:53 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-12 17:44:53 -0200 |
commit | 0ebdcd4c7ecd4487a786537be1283774c0e5509e (patch) | |
tree | e1c9ea4d10116818e08b204751a82d30f9b36f0a | |
parent | e7f9680bd66191b575e10ec2c9231bfff30694b7 (diff) | |
download | luarocks-0ebdcd4c7ecd4487a786537be1283774c0e5509e.tar.gz luarocks-0ebdcd4c7ecd4487a786537be1283774c0e5509e.tar.bz2 luarocks-0ebdcd4c7ecd4487a786537be1283774c0e5509e.zip |
Updates to testing infrastructure (use new luasec, luacov)
-rwxr-xr-x | test/testing.sh | 13 |
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 | ||
33 | testing_dir="$PWD" | 33 | testing_dir="$PWD" |
34 | 34 | ||
35 | testing_lrprefix="$testing_dir/testing_lrprefix-$luaversion" | ||
35 | testing_tree="$testing_dir/testing-$luaversion" | 36 | testing_tree="$testing_dir/testing-$luaversion" |
36 | testing_sys_tree="$testing_dir/testing_sys-$luaversion" | 37 | testing_sys_tree="$testing_dir/testing_sys-$luaversion" |
37 | testing_tree_copy="$testing_dir/testing_copy-$luaversion" | 38 | testing_tree_copy="$testing_dir/testing_copy-$luaversion" |
@@ -51,6 +52,7 @@ fi | |||
51 | rm -f luacov.report.out | 52 | rm -f luacov.report.out |
52 | rm -rf /tmp/luarocks_testing | 53 | rm -rf /tmp/luarocks_testing |
53 | mkdir /tmp/luarocks_testing | 54 | mkdir /tmp/luarocks_testing |
55 | rm -rf "$testing_lrprefix" | ||
54 | rm -rf "$testing_tree" | 56 | rm -rf "$testing_tree" |
55 | rm -rf "$testing_sys_tree" | 57 | rm -rf "$testing_sys_tree" |
56 | rm -rf "$testing_tree_copy" | 58 | rm -rf "$testing_tree_copy" |
@@ -173,8 +175,8 @@ srcdir_luasocket=luasocket-3.0-rc1 | |||
173 | version_cprint=0.1 | 175 | version_cprint=0.1 |
174 | verrev_cprint=0.1-1 | 176 | verrev_cprint=0.1-1 |
175 | 177 | ||
176 | version_luacov=0.5 | 178 | version_luacov=0.7 |
177 | verrev_luacov=0.5-1 | 179 | verrev_luacov=${version_luacov}-1 |
178 | version_lxsh=0.8.6 | 180 | version_lxsh=0.8.6 |
179 | version_validate_args=1.5.4 | 181 | version_validate_args=1.5.4 |
180 | verrev_validate_args=1.5.4-1 | 182 | verrev_validate_args=1.5.4-1 |
@@ -183,7 +185,7 @@ verrev_lxsh=${version_lxsh}-2 | |||
183 | luasec=luasec | 185 | luasec=luasec |
184 | 186 | ||
185 | cd .. | 187 | cd .. |
186 | ./configure --with-lua="$luadir" | 188 | ./configure --with-lua="$luadir" --prefix="$testing_lrprefix" |
187 | make clean | 189 | make clean |
188 | make src/luarocks/site_config.lua | 190 | make src/luarocks/site_config.lua |
189 | make dev | 191 | make dev |
@@ -217,8 +219,7 @@ luarocks_admin_nocov="run_lua --nocov luarocks-admin" | |||
217 | mkdir -p "$testing_server" | 219 | mkdir -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" |