mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 21:44:08 -06:00
Catch2 test framework integration.
This commit is contained in:
parent
ffa544ade3
commit
fe7f2e4d95
14 changed files with 18205 additions and 20 deletions
5
tests/example/CMakeLists.txt
Normal file
5
tests/example/CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
|
||||
add_executable(${_TEST_NAME}_tests ${_TEST_NAME}_tests_main.cpp)
|
||||
target_link_libraries(${_TEST_NAME}_tests test_common libslic3r ${Boost_LIBRARIES} ${TBB_LIBRARIES} ${Boost_LIBRARIES})
|
||||
|
||||
prusaslicer_discover_tests(${_TEST_NAME}_tests)
|
6
tests/example/example_tests_main.cpp
Normal file
6
tests/example/example_tests_main.cpp
Normal file
|
@ -0,0 +1,6 @@
|
|||
#define CATCH_CONFIG_MAIN
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
TEST_CASE("Is example succesful", "[example]") {
|
||||
REQUIRE(true);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue