aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-12-12 23:32:11 -0200
committerHisham Muhammad <hisham@gobolinux.org>2013-12-12 23:32:11 -0200
commitfb08ed2df641dd71063adc289fe36dc585aaeaab (patch)
treec6efea192f307eff1bb1d8bfe26045b6c3256487 /test
parent58aabb224b4b34779f4df01f4e5265d7d82fac49 (diff)
downloadluarocks-fb08ed2df641dd71063adc289fe36dc585aaeaab.tar.gz
luarocks-fb08ed2df641dd71063adc289fe36dc585aaeaab.tar.bz2
luarocks-fb08ed2df641dd71063adc289fe36dc585aaeaab.zip
Major updates, hopefully speeding up things.
Preload necessary rocks and rockspecs and create a local server. Cache LuaSocket compilation for tests that need it.
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh168
1 files changed, 136 insertions, 32 deletions
diff --git a/test/testing.sh b/test/testing.sh
index bce65294..91f6df0e 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -28,6 +28,7 @@ testing_sys_tree="$testing_dir/testing_sys"
28testing_tree_copy="$testing_dir/testing_copy" 28testing_tree_copy="$testing_dir/testing_copy"
29testing_sys_tree_copy="$testing_dir/testing_sys_copy" 29testing_sys_tree_copy="$testing_dir/testing_sys_copy"
30testing_cache="$testing_dir/testing_cache" 30testing_cache="$testing_dir/testing_cache"
31testing_server="$testing_dir/testing_server"
31 32
32[ "$1" ] || rm -f luacov.stats.out 33[ "$1" ] || rm -f luacov.stats.out
33rm -f luacov.report.out 34rm -f luacov.report.out
@@ -38,11 +39,14 @@ rm -rf "$testing_sys_tree"
38rm -rf "$testing_tree_copy" 39rm -rf "$testing_tree_copy"
39rm -rf "$testing_sys_tree_copy" 40rm -rf "$testing_sys_tree_copy"
40rm -rf "$testing_cache" 41rm -rf "$testing_cache"
42rm -rf "$testing_server"
41rm -rf "$testing_dir/testing_config.lua" 43rm -rf "$testing_dir/testing_config.lua"
42rm -rf "$testing_dir/testing_config_show_downloads.lua" 44rm -rf "$testing_dir/testing_config_show_downloads.lua"
43rm -rf "$testing_dir/testing_config_sftp.lua" 45rm -rf "$testing_dir/testing_config_sftp.lua"
44rm -rf "$testing_dir/luacov.config" 46rm -rf "$testing_dir/luacov.config"
45 47
48mkdir -p "$testing_cache"
49
46[ "$1" = "clean" ] && { 50[ "$1" = "clean" ] && {
47 rm -f luacov.stats.out 51 rm -f luacov.stats.out
48 exit 0 52 exit 0
@@ -53,6 +57,9 @@ rocks_trees = {
53 "$testing_tree", 57 "$testing_tree",
54 "$testing_sys_tree", 58 "$testing_sys_tree",
55} 59}
60rocks_servers = {
61 "$testing_server"
62}
56local_cache = "$testing_cache" 63local_cache = "$testing_cache"
57upload_server = "testing" 64upload_server = "testing"
58upload_user = "hisham" 65upload_user = "hisham"
@@ -118,25 +125,36 @@ then
118 fi 125 fi
119 popd 126 popd
120 luadir=/tmp/lua 127 luadir=/tmp/lua
121 platform="linux-x86_64"
122else 128else
123 luadir="/Programs/Lua/Current" 129 luadir="/Programs/Lua/Current"
130fi
131
132if [ `uname -m` = i686 ]
133then
124 platform="linux-x86" 134 platform="linux-x86"
135else
136 platform="linux-x86_64"
125fi 137fi
138
126lua="$luadir/bin/lua" 139lua="$luadir/bin/lua"
127 140
128version_luasocket=3.0rc1 141version_luasocket=3.0rc1
129verrev_luasocket=${version_luasocket}-1 142verrev_luasocket=${version_luasocket}-1
130srcdir_luasocket=luasocket-3.0-rc1 143srcdir_luasocket=luasocket-3.0-rc1
131 144
145version_cprint=0.1
146verrev_cprint=0.1-1
147
132version_luacov=0.3 148version_luacov=0.3
149verrev_luacov=0.3-1
133version_lxsh=0.8.6 150version_lxsh=0.8.6
134version_validate_args=1.5.4 151version_validate_args=1.5.4
152verrev_validate_args=1.5.4-1
135verrev_lxsh=${version_lxsh}-2 153verrev_lxsh=${version_lxsh}-2
136 154
137# will change to luasec=luasec once LuaSec for Lua 5.2 is released 155# will change to luasec=luasec once LuaSec for Lua 5.2 is released
138luasec="http://luarocks.org/repositories/rocks-scm/luasec-scm-1.rockspec" 156#luasec="http://luarocks.org/repositories/rocks-scm/luasec-scm-1.rockspec"
139#luasec=luasec 157luasec=luasec
140 158
141cd .. 159cd ..
142./configure --with-lua="$luadir" 160./configure --with-lua="$luadir"
@@ -144,14 +162,70 @@ make clean
144make src/luarocks/site_config.lua 162make src/luarocks/site_config.lua
145make dev 163make dev
146cd src 164cd src
165basedir=$PWD
166run_lua() {
167 if [ "$1" = "--noecho" ]; then shift; noecho=1; else noecho=0; fi
168 if [ "$1" = "--nocov" ]; then shift; nocov=1; else nocov=0; fi
169 if [ "$noecho" = 0 ]
170 then
171 echo $*
172 fi
173 cmd=$1
174 shift
175 if [ "$nocov" = 0 ]
176 then
177 "$lua" -e"require('luacov.runner')('$testing_dir/luacov.config')" "$basedir/bin/$cmd" "$@"
178 else
179 "$lua" "$basedir/bin/$cmd" "$@"
180 fi
181}
182luarocks="run_lua luarocks"
183luarocks_nocov="run_lua --nocov luarocks"
184luarocks_noecho="run_lua --noecho luarocks"
185luarocks_noecho_nocov="run_lua --noecho --nocov luarocks"
186luarocks_admin="run_lua luarocks-admin"
187luarocks_admin_nocov="run_lua --nocov luarocks-admin"
147 188
148echo $LUA_PATH 189###################################################
149 190
150luarocks_nocov="$lua $PWD/bin/luarocks" 191if [ ! -d "$testing_server" ]
151luarocks="$lua -erequire('luacov.runner')('$testing_dir/luacov.config') $PWD/bin/luarocks" 192then
152luarocks_admin="$lua -erequire('luacov.runner')('$testing_dir/luacov.config') $PWD/bin/luarocks-admin" 193 mkdir "$testing_server"
194 (
195 cd "$testing_server"
196 luarocks_repo="http://luarocks.org/repositories/rocks"
197 luarocks_scm_repo="http://luarocks.org/repositories/rocks-scm"
198 wget "$luarocks_repo/luacov-${verrev_luacov}.src.rock"
199 wget "$luarocks_repo/luacov-${verrev_luacov}.rockspec"
200 wget "$luarocks_repo/luadoc-3.0.1-1.src.rock"
201 wget "$luarocks_repo/lualogging-1.3.0-1.src.rock"
202 wget "$luarocks_repo/luasocket-${verrev_luasocket}.src.rock"
203 wget "$luarocks_repo/luasocket-${verrev_luasocket}.rockspec"
204 wget "$luarocks_repo/luafilesystem-1.6.2-1.src.rock"
205 wget "$luarocks_repo/stdlib-35-1.src.rock"
206 wget "$luarocks_repo/luarepl-0.4-1.src.rock"
207 wget "$luarocks_repo/validate-args-1.5.4-1.rockspec"
208 wget "$luarocks_scm_repo/luasec-scm-1.rockspec"
209 wget "$luarocks_repo/luabitop-1.0.2-1.rockspec"
210 wget "$luarocks_repo/lpty-1.0.1-1.src.rock"
211 wget "$luarocks_repo/cprint-${verrev_cprint}.src.rock"
212 wget "$luarocks_repo/cprint-${verrev_cprint}.rockspec"
213 wget "$luarocks_repo/wsapi-1.6-1.src.rock"
214 wget "$luarocks_repo/lxsh-${verrev_lxsh}.src.rock"
215 wget "$luarocks_repo/abelhas-1.0-1.rockspec"
216 wget "$luarocks_repo/lzlib-0.4.work3-1.src.rock"
217 wget "$luarocks_repo/lpeg-0.12-1.src.rock"
218 wget "$luarocks_repo/luaposix-31-1.src.rock"
219 wget "$luarocks_repo/md5-1.2-1.src.rock"
220 )
221 $luarocks_admin_nocov make_manifest "$testing_server"
222fi
153 223
154$luarocks_nocov download luacov 224###################################################
225
226checksum_path() {
227 ( cd "$1"; find . -printf "%s %p\n" | md5sum )
228}
155 229
156build_environment() { 230build_environment() {
157 rm -rf "$testing_tree" 231 rm -rf "$testing_tree"
@@ -164,17 +238,47 @@ build_environment() {
164 do 238 do
165 $luarocks_nocov build --tree="$testing_sys_tree" $package 239 $luarocks_nocov build --tree="$testing_sys_tree" $package
166 done 240 done
167 eval `$luarocks_nocov path --bin` 241 eval `$luarocks_noecho_nocov path --bin`
168 cp -a "$testing_tree" "$testing_tree_copy" 242 cp -a "$testing_tree" "$testing_tree_copy"
169 cp -a "$testing_sys_tree" "$testing_sys_tree_copy" 243 cp -a "$testing_sys_tree" "$testing_sys_tree_copy"
244 testing_tree_copy_md5=`checksum_path "$testing_tree_copy"`
245 testing_sys_tree_copy_md5=`checksum_path "$testing_sys_tree_copy"`
170} 246}
171 247
172reset_environment() { 248reset_environment() {
173 rm -rf "$testing_tree" 249 testing_tree_md5=`checksum_path "$testing_tree"`
174 rm -rf "$testing_sys_tree" 250 testing_sys_tree_md5=`checksum_path "$testing_sys_tree"`
175 cp -a "$testing_tree_copy" "$testing_tree" 251 if [ "$testing_tree_md5" != "$testing_tree_copy_md5" ]
176 cp -a "$testing_sys_tree_copy" "$testing_sys_tree" 252 then
253 rm -rf "$testing_tree"
254 cp -a "$testing_tree_copy" "$testing_tree"
255 fi
256 if [ "$testing_sys_tree_md5" != "$testing_sys_tree_copy_md5" ]
257 then
258 rm -rf "$testing_sys_tree"
259 cp -a "$testing_sys_tree_copy" "$testing_sys_tree"
260 fi
261}
262
263need() {
264 echo "Obtaining $1 $2..."
265 if $luarocks show $1 &> /dev/null
266 then
267 echo "Already available"
268 return
269 fi
270 platrock="$1-$2.$platform.rock"
271 if [ ! -e "$testing_cache/$platrock" ]
272 then
273 echo "Building $1 $2..."
274 $luarocks_nocov build --pack-binary-rock $1 $2
275 mv "$platrock" "$testing_cache"
276 fi
277 echo "Installing $1 $2..."
278 $luarocks_nocov install "$testing_cache/$platrock"
279 return
177} 280}
281need_luasocket() { need luasocket $verrev_luasocket; }
178 282
179# Tests ######################################### 283# Tests #########################################
180 284
@@ -206,26 +310,26 @@ fail_new_version_invalid() { $luarocks new_version invalid; }
206fail_make_norockspec() { $luarocks make; } 310fail_make_norockspec() { $luarocks make; }
207 311
208fail_build_blank_arg() { $luarocks build --tree="" lpeg; } 312fail_build_blank_arg() { $luarocks build --tree="" lpeg; }
209test_build_withpatch() { $luarocks build luadoc; } 313test_build_withpatch() { need_luasocket; $luarocks build luadoc; }
210test_build_diffversion() { $luarocks build luacov ${version_luacov}; } 314test_build_diffversion() { $luarocks build luacov ${version_luacov}; }
211test_build_command() { $luarocks build stdlib; } 315test_build_command() { $luarocks build stdlib; }
212test_build_install_bin() { $luarocks build luarepl; } 316test_build_install_bin() { $luarocks build luarepl; }
213fail_build_nohttps() { $luarocks install luasocket && $luarocks download --rockspec validate-args ${version_validate_args} && $luarocks build ./validate-args-${version_validate_args}-1.rockspec && rm ./validate-args-${version_validate_args}-1.rockspec; } 317fail_build_nohttps() { need_luasocket; $luarocks download --rockspec validate-args ${verrev_validate_args} && $luarocks build ./validate-args-${version_validate_args}-1.rockspec && rm ./validate-args-${version_validate_args}-1.rockspec; }
214test_build_https() { $luarocks download --rockspec validate-args ${version_validate_args} && $luarocks install $luasec && $luarocks build ./validate-args-${version_validate_args}-1.rockspec && rm ./validate-args-${version_validate_args}-1.rockspec; } 318test_build_https() { need_luasocket; $luarocks download --rockspec validate-args ${verrev_validate_args} && echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx && pwd && ls && $luarocks install $luasec && pwd && ls && $luarocks build ./validate-args-${verrev_validate_args}.rockspec && rm ./validate-args-${verrev_validate_args}.rockspec; }
215test_build_supported_platforms() { $luarocks build lpty; } 319test_build_supported_platforms() { $luarocks build lpty; }
216 320
217test_build_deps_partial_match() { if [ "$travis" ]; then return; fi; $luarocks build yaml; } 321test_build_deps_partial_match() { if [ "$travis" ]; then return; fi; $luarocks build yaml; }
218test_build_show_downloads() { export LUAROCKS_CONFIG="$testing_dir/testing_config_show_downloads.lua" && $luarocks build alien; export LUAROCKS_CONFIG="$testing_dir/testing_config.lua"; } 322test_build_show_downloads() { export LUAROCKS_CONFIG="$testing_dir/testing_config_show_downloads.lua" && $luarocks build alien; export LUAROCKS_CONFIG="$testing_dir/testing_config.lua"; }
219 323
220test_download_all() { $luarocks download --all validate-args && rm validate-args-*; } 324test_download_all() { $luarocks download --all validate-args && rm validate-args-*; }
221test_download_rockspecversion() { $luarocks download --rockspec validate-args ${version_validate_args} && rm validate-args-*; } 325test_download_rockspecversion() { $luarocks download --rockspec validate-args ${verrev_validate_args} && rm validate-args-*; }
222 326
223test_help() { $luarocks help; } 327test_help() { $luarocks help; }
224 328
225test_install_binaryrock() { $luarocks build luasocket && $luarocks pack luasocket && $luarocks install ./luasocket-${verrev_luasocket}.${platform}.rock && rm ./luasocket-${verrev_luasocket}.${platform}.rock; } 329test_install_binaryrock() { $luarocks build --pack-binary-rock cprint && $luarocks install ./cprint-${verrev_cprint}.${platform}.rock && rm ./cprint-${verrev_cprint}.${platform}.rock; }
226test_install_with_bin() { $luarocks install wsapi; } 330test_install_with_bin() { $luarocks install wsapi; }
227 331
228test_lint_ok() { $luarocks download --rockspec validate-args ${version_validate_args} && $luarocks lint ./validate-args-${version_validate_args}-1.rockspec && rm ./validate-args-${version_validate_args}-1.rockspec; } 332test_lint_ok() { $luarocks download --rockspec validate-args ${verrev_validate_args} && $luarocks lint ./validate-args-${verrev_validate_args}.rockspec && rm ./validate-args-${verrev_validate_args}.rockspec; }
229 333
230test_list() { $luarocks list; } 334test_list() { $luarocks list; }
231test_list_porcelain() { $luarocks list --porcelain; } 335test_list_porcelain() { $luarocks list --porcelain; }
@@ -254,13 +358,13 @@ test_search_missing() { $luarocks search missing_rock; }
254 358
255test_show() { $luarocks show luacov; } 359test_show() { $luarocks show luacov; }
256test_show_modules() { $luarocks show --modules luacov; } 360test_show_modules() { $luarocks show --modules luacov; }
257test_show_depends() { $luarocks install $luasec && $luarocks show luasec; } 361test_show_depends() { need_luasocket; $luarocks install $luasec && $luarocks show luasec; }
258test_show_oldversion() { $luarocks install luacov ${version_luacov} && $luarocks show luacov ${version_luacov}; } 362test_show_oldversion() { $luarocks install luacov ${version_luacov} && $luarocks show luacov ${version_luacov}; }
259 363
260test_unpack_download() { rm -rf ./luasocket-${verrev_luasocket} && $luarocks unpack luasocket && rm -rf ./luasocket-${verrev_luasocket}; } 364test_unpack_download() { rm -rf ./cprint-${verrev_cprint} && $luarocks unpack cprint && rm -rf ./cprint-${verrev_cprint}; }
261test_unpack_src() { rm -rf ./luasocket-${verrev_luasocket} && $luarocks download --src luasocket && $luarocks unpack ./luasocket-${verrev_luasocket}.src.rock && rm -rf ./luasocket-${verrev_luasocket}; } 365test_unpack_src() { rm -rf ./cprint-${verrev_cprint} && $luarocks download --src cprint && $luarocks unpack ./cprint-${verrev_cprint}.src.rock && rm -rf ./cprint-${verrev_cprint}; }
262test_unpack_rockspec() { rm -rf ./luasocket-${verrev_luasocket} && $luarocks download --rockspec luasocket && $luarocks unpack ./luasocket-${verrev_luasocket}.rockspec && rm -rf ./luasocket-${verrev_luasocket}; } 366test_unpack_rockspec() { rm -rf ./cprint-${verrev_cprint} && $luarocks download --rockspec cprint && $luarocks unpack ./cprint-${verrev_cprint}.rockspec && rm -rf ./cprint-${verrev_cprint}; }
263test_unpack_binary() { rm -rf ./luasocket-${verrev_luasocket} && $luarocks build luasocket && $luarocks pack luasocket && $luarocks unpack ./luasocket-${verrev_luasocket}.${platform}.rock && rm -rf ./luasocket-${verrev_luasocket}; } 367test_unpack_binary() { rm -rf ./cprint-${verrev_cprint} && $luarocks build cprint && $luarocks pack cprint && $luarocks unpack ./cprint-${verrev_cprint}.${platform}.rock && rm -rf ./cprint-${verrev_cprint}; }
264 368
265test_admin_help() { $luarocks_admin help; } 369test_admin_help() { $luarocks_admin help; }
266 370
@@ -275,14 +379,14 @@ test_admin_remove() { if [ "$travis" ]; then return; fi; $luarocks_admin --serve
275fail_admin_remove_missing() { $luarocks_admin --server=testing remove; } 379fail_admin_remove_missing() { $luarocks_admin --server=testing remove; }
276 380
277fail_deps_mode_invalid_arg() { $luarocks remove luacov --deps-mode; } 381fail_deps_mode_invalid_arg() { $luarocks remove luacov --deps-mode; }
278test_deps_mode_one() { $luarocks build --tree="$testing_sys_tree" lpeg && $luarocks list && $luarocks build --deps-mode=one --tree="$testing_tree" lxsh && [ `$luarocks list --tree="$testing_tree" --porcelain lpeg | wc -l` = 1 ]; } 382test_deps_mode_one() { $luarocks build --tree="$testing_sys_tree" lpeg && $luarocks list && $luarocks build --deps-mode=one --tree="$testing_tree" lxsh && [ `$luarocks_noecho list --tree="$testing_tree" --porcelain lpeg | wc -l` = 1 ]; }
279test_deps_mode_order() { $luarocks build --tree="$testing_sys_tree" lpeg && $luarocks build --deps-mode=order --tree="$testing_tree" lxsh && [ `$luarocks list --tree="$testing_tree" --porcelain lpeg | wc -l` = 0 ]; } 383test_deps_mode_order() { $luarocks build --tree="$testing_sys_tree" lpeg && $luarocks build --deps-mode=order --tree="$testing_tree" lxsh && [ `$luarocks_noecho list --tree="$testing_tree" --porcelain lpeg | wc -l` = 0 ]; }
280test_deps_mode_order_sys() { $luarocks build --tree="$testing_tree" lpeg && $luarocks build --deps-mode=order --tree="$testing_sys_tree" lxsh && [ `$luarocks list --tree="$testing_sys_tree" --porcelain lpeg | wc -l` = 1 ]; } 384test_deps_mode_order_sys() { $luarocks build --tree="$testing_tree" lpeg && $luarocks build --deps-mode=order --tree="$testing_sys_tree" lxsh && [ `$luarocks_noecho list --tree="$testing_sys_tree" --porcelain lpeg | wc -l` = 1 ]; }
281test_deps_mode_all_sys() { $luarocks build --tree="$testing_tree" lpeg && $luarocks build --deps-mode=all --tree="$testing_sys_tree" lxsh && [ `$luarocks list --tree="$testing_sys_tree" --porcelain lpeg | wc -l` = 0 ]; } 385test_deps_mode_all_sys() { $luarocks build --tree="$testing_tree" lpeg && $luarocks build --deps-mode=all --tree="$testing_sys_tree" lxsh && [ `$luarocks_noecho list --tree="$testing_sys_tree" --porcelain lpeg | wc -l` = 0 ]; }
282test_deps_mode_none() { $luarocks build --tree="$testing_tree" --deps-mode=none lxsh; [ `$luarocks list --tree="$testing_tree" --porcelain lpeg | wc -l` = 0 ]; } 386test_deps_mode_none() { $luarocks build --tree="$testing_tree" --deps-mode=none lxsh; [ `$luarocks_noecho list --tree="$testing_tree" --porcelain lpeg | wc -l` = 0 ]; }
283test_deps_mode_nodeps_alias() { $luarocks build --tree="$testing_tree" --nodeps lxsh; [ `$luarocks list --tree="$testing_tree" --porcelain lpeg | wc -l` = 0 ]; } 387test_deps_mode_nodeps_alias() { $luarocks build --tree="$testing_tree" --nodeps lxsh; [ `$luarocks_noecho list --tree="$testing_tree" --porcelain lpeg | wc -l` = 0 ]; }
284test_deps_mode_make_order() { $luarocks build --tree="$testing_sys_tree" lpeg && rm -rf ./lxsh-${verrev_lxsh} && $luarocks download --src lxsh ${verrev_lxsh} && $luarocks unpack ./lxsh-${verrev_lxsh}.src.rock && cd lxsh-${verrev_lxsh}/lxsh-${version_lxsh}-1 && $luarocks make --tree="$testing_tree" --deps-mode=order && cd ../.. && [ `$luarocks list --tree="$testing_tree" --porcelain lpeg | wc -l` = 0 ] && rm -rf ./lxsh-${verrev_lxsh}; } 388test_deps_mode_make_order() { $luarocks build --tree="$testing_sys_tree" lpeg && rm -rf ./lxsh-${verrev_lxsh} && $luarocks download --src lxsh ${verrev_lxsh} && $luarocks unpack ./lxsh-${verrev_lxsh}.src.rock && cd lxsh-${verrev_lxsh}/lxsh-${version_lxsh}-1 && $luarocks make --tree="$testing_tree" --deps-mode=order && cd ../.. && [ `$luarocks_noecho list --tree="$testing_tree" --porcelain lpeg | wc -l` = 0 ] && rm -rf ./lxsh-${verrev_lxsh}; }
285test_deps_mode_make_order_sys() { $luarocks build --tree="$testing_tree" lpeg && rm -rf ./lxsh-${verrev_lxsh} && $luarocks download --src 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 list --tree="$testing_tree" --porcelain lpeg | wc -l` = 1 ] && rm -rf ./lxsh-${verrev_lxsh}; } 389test_deps_mode_make_order_sys() { $luarocks build --tree="$testing_tree" lpeg && rm -rf ./lxsh-${verrev_lxsh} && $luarocks download --src 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}; }
286 390
287test_write_rockspec() { $luarocks write_rockspec git://github.com/keplerproject/luarocks; } 391test_write_rockspec() { $luarocks write_rockspec git://github.com/keplerproject/luarocks; }
288test_write_rockspec_lib() { $luarocks write_rockspec git://github.com/mbalmer/luafcgi --lib=fcgi --license="3-clause BSD" --lua-version=5.1,5.2; } 392test_write_rockspec_lib() { $luarocks write_rockspec git://github.com/mbalmer/luafcgi --lib=fcgi --license="3-clause BSD" --lua-version=5.1,5.2; }