Skip to content
Snippets Groups Projects
Commit 9adedc1f authored by Yaroslav Lobankov's avatar Yaroslav Lobankov Committed by Yaroslav Lobankov
Browse files

test: add new `make` test targets

This patch adds the new `make` test targets to run unit and functional
tests independending on each other. In some cases it can be useful.

New test targets:

* `test-unit` - run unit tests and exit after the first failure
* `test-unit-force` - run unit tests
* `test-func` - run functional tests and exit after the first failure
* `test-func-force` - run functional tests

Note, tests for 'small' lib are considered as unit tests as well.

Part of tarantool/tarantool-qa#246

NO_DOC=testing stuff
NO_TEST=testing stuff
NO_CHANGELOG=testing stuff
parent a81eacd7
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,34 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/small
add_custom_target(symlink_libsmall_test_binaries ALL
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/small)
add_custom_target(test-unit
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/small
COMMAND ${PROJECT_SOURCE_DIR}/test/test-run.py
--builddir=${PROJECT_BINARY_DIR}
small/
unit/)
add_custom_target(test-unit-force
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/small
COMMAND ${PROJECT_SOURCE_DIR}/test/test-run.py
--builddir=${PROJECT_BINARY_DIR}
--force
small/
unit/)
add_custom_target(test-func
COMMAND ${PROJECT_SOURCE_DIR}/test/test-run.py
--builddir=${PROJECT_BINARY_DIR}
--exclude small/
--exclude unit/)
add_custom_target(test-func-force
COMMAND ${PROJECT_SOURCE_DIR}/test/test-run.py
--builddir=${PROJECT_BINARY_DIR}
--exclude small/
--exclude unit/
--force)
add_custom_target(test
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/small
LuaJIT-test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment