Skip to content

Commit

Permalink
Port from tap to luatest
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Nazarov committed Oct 4, 2019
1 parent 4ffd696 commit 549058d
Show file tree
Hide file tree
Showing 6 changed files with 697 additions and 718 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ enable_testing()
set (LUA_PATH "LUA_PATH=${PROJECT_SOURCE_DIR}/?.lua\\;${PROJECT_SOURCE_DIR}/?/init.lua\\;\\;")
set (LUA_SOURCE_DIR "LUA_SOURCE_DIR=${PROJECT_SOURCE_DIR}")

add_test(http ${CMAKE_SOURCE_DIR}/test/http.test.lua)
add_test(http ${CMAKE_SOURCE_DIR}/.rocks/bin/luatest)

set_tests_properties(http PROPERTIES ENVIRONMENT "${LUA_PATH};${LUA_SOURCE_DIR}")

Expand Down
3 changes: 2 additions & 1 deletion http-scm-1.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ description = {
}
dependencies = {
'lua >= 5.1',
'checks >= 3.0.1'
'checks >= 3.0.1',
'luatest >= 0.2.2'
}
external_dependencies = {
TARANTOOL = {
Expand Down
2 changes: 1 addition & 1 deletion test/Procfile.test.nginx
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nginx: nginx -g "daemon off;" -c $PWD/test/nginx.conf
nginx_tsgi_test: SERVER_TYPE=nginx ./test/http.test.lua 2>&1
nginx_tsgi_test: SERVER_TYPE=nginx ./.rocks/bin/luatest 2>&1
Loading

0 comments on commit 549058d

Please sign in to comment.