aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2020-04-21 21:14:16 -0300
committerHisham Muhammad <hisham@gobolinux.org>2020-04-21 21:20:19 -0300
commitbe97d188a22eb39ea1511fc25194d30a649a7c7f (patch)
tree6ab51c659e74c89bbd1c80dc5f6ea91e85a11310
parentaf03c342789dce9799af2f41fda42f7d36467b85 (diff)
downloadluarocks-be97d188a22eb39ea1511fc25194d30a649a7c7f.tar.gz
luarocks-be97d188a22eb39ea1511fc25194d30a649a7c7f.tar.bz2
luarocks-be97d188a22eb39ea1511fc25194d30a649a7c7f.zip
use busted-htest
-rw-r--r--.busted2
-rw-r--r--.travis.yml9
-rw-r--r--appveyor.yml3
-rw-r--r--luarocks-dev-1.rockspec1
4 files changed, 9 insertions, 6 deletions
diff --git a/.busted b/.busted
index e77322d6..a8d40bef 100644
--- a/.busted
+++ b/.busted
@@ -1,6 +1,6 @@
1return { 1return {
2 default = { 2 default = {
3 output = "gtest", 3 output = "htest",
4 verbose = true, 4 verbose = true,
5 ["exclude-pattern"] = "sum_spec", -- do not run spec files inside fixture 5 ["exclude-pattern"] = "sum_spec", -- do not run spec files inside fixture
6 helper = "spec.util.test_env", 6 helper = "spec.util.test_env",
diff --git a/.travis.yml b/.travis.yml
index aa81ff7f..f5b6bb37 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,8 +19,8 @@ smoke_script: &smoke_script
19 - ./smoke_test.sh luarocks-$BRANCH.tar.gz 19 - ./smoke_test.sh luarocks-$BRANCH.tar.gz
20 20
21unit_script: &unit_script 21unit_script: &unit_script
22 - busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis" 22 - busted -o htest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis"
23 - busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full" 23 - busted -o htest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full"
24 24
25integration_script: &integration_script 25integration_script: &integration_script
26 - lua -v 26 - lua -v
@@ -28,8 +28,8 @@ integration_script: &integration_script
28 - ./configure --with-lua=lua_install 28 - ./configure --with-lua=lua_install
29 - ./makedist dev 29 - ./makedist dev
30 - ./smoke_test.sh luarocks-dev.tar.gz 30 - ./smoke_test.sh luarocks-dev.tar.gz
31 - busted -o gtest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis" 31 - busted -o htest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis"
32 - busted -o gtest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full" 32 - busted -o htest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full"
33 33
34jobs: 34jobs:
35 include: 35 include:
@@ -148,6 +148,7 @@ before_install:
148install: 148install:
149 - if [ ! -f lua_install/bin/busted ]; then luarocks install busted; fi 149 - if [ ! -f lua_install/bin/busted ]; then luarocks install busted; fi
150 - if [ ! -f lua_install/bin/luacov ]; then luarocks install cluacov; fi 150 - if [ ! -f lua_install/bin/luacov ]; then luarocks install cluacov; fi
151 - luarocks install busted-htest
151 152
152after_success: 153after_success:
153 - luacov -c $TRAVIS_BUILD_DIR/testrun/luacov.config 154 - luacov -c $TRAVIS_BUILD_DIR/testrun/luacov.config
diff --git a/appveyor.yml b/appveyor.yml
index 6a4f9417..7011c80c 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -90,9 +90,10 @@ before_build:
90build_script: 90build_script:
91 - IF NOT EXIST lua_install-%LUAV%\bin\busted.bat ( luarocks install busted 1> NUL 2> NUL ) 91 - IF NOT EXIST lua_install-%LUAV%\bin\busted.bat ( luarocks install busted 1> NUL 2> NUL )
92 - IF NOT EXIST lua_install-%LUAV%\bin\luacov.bat ( luarocks install cluacov 1> NUL 2> NUL ) 92 - IF NOT EXIST lua_install-%LUAV%\bin\luacov.bat ( luarocks install cluacov 1> NUL 2> NUL )
93 - luarocks install busted-htest 1> NUL 2> NUL
93 94
94test_script: 95test_script:
95 - busted -o gtest -v --lpath=.//?.lua --exclude-tags=ssh,unix,%EXCLUDE% -Xhelper lua_dir=%CD%\lua_install-%LUAV%,appveyor,%COMPILER% %FILES% 96 - busted -o htest -v --lpath=.//?.lua --exclude-tags=ssh,unix,%EXCLUDE% -Xhelper lua_dir=%CD%\lua_install-%LUAV%,appveyor,%COMPILER% %FILES%
96 97
97after_test: 98after_test:
98 - pip install codecov 99 - pip install codecov
diff --git a/luarocks-dev-1.rockspec b/luarocks-dev-1.rockspec
index a1f30ef4..c7933042 100644
--- a/luarocks-dev-1.rockspec
+++ b/luarocks-dev-1.rockspec
@@ -22,6 +22,7 @@ description = {
22} 22}
23test_dependencies = { 23test_dependencies = {
24 "luacov", 24 "luacov",
25 "busted-htest",
25} 26}
26test = { 27test = {
27 type = "busted", 28 type = "busted",