aboutsummaryrefslogtreecommitdiff
path: root/test/testing.sh
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-10-19 18:46:21 -0200
committerHisham Muhammad <hisham@gobolinux.org>2015-10-19 18:46:45 -0200
commitf8179800d0eccaef960442a7e65b1e305f3a96d5 (patch)
treea16878df7e9f602ae58baae7ba08c003e0672798 /test/testing.sh
parent24049bffb8069ceff1a4e0f4367389c531188fef (diff)
downloadluarocks-f8179800d0eccaef960442a7e65b1e305f3a96d5.tar.gz
luarocks-f8179800d0eccaef960442a7e65b1e305f3a96d5.tar.bz2
luarocks-f8179800d0eccaef960442a7e65b1e305f3a96d5.zip
Support "luajit" as a provided dependency in rockspec format 3.0
Diffstat (limited to 'test/testing.sh')
-rwxr-xr-xtest/testing.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/testing.sh b/test/testing.sh
index 7292c75d..5ae6bb35 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -224,6 +224,7 @@ luarocks_noecho="run_lua --noecho luarocks"
224luarocks_noecho_nocov="run_lua --noecho --nocov luarocks" 224luarocks_noecho_nocov="run_lua --noecho --nocov luarocks"
225luarocks_admin="run_lua luarocks-admin" 225luarocks_admin="run_lua luarocks-admin"
226luarocks_admin_nocov="run_lua --nocov luarocks-admin" 226luarocks_admin_nocov="run_lua --nocov luarocks-admin"
227luajit_luarocks="luajit -e require('luacov.runner')('$testing_dir/luacov.config') $basedir/bin/luarocks"
227 228
228################################################### 229###################################################
229 230
@@ -524,6 +525,13 @@ test_fetch_base_dir() { $lua <<EOF
524EOF 525EOF
525} 526}
526 527
528test_luajit_dependency() {
529 $luajit_luarocks build "$testing_dir/testfiles/luajit-success-1.0-1.rockspec"
530}
531fail_luajit_dependency() {
532 $luajit_luarocks build "$testing_dir/testfiles/luajit-fail-1.0-1.rockspec"
533}
534
527test_doc() { $luarocks install luarepl; $luarocks doc luarepl; } 535test_doc() { $luarocks install luarepl; $luarocks doc luarepl; }
528 536
529# Driver ######################################### 537# Driver #########################################