mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-04 03:15:59 -04:00
Added Catch
This commit is contained in:
parent
7cfc30970b
commit
f7ea950f99
1
.gitignore
vendored
1
.gitignore
vendored
@ -45,6 +45,7 @@ libSDL2pp.dylib
|
||||
libSDL2pp.*.dylib
|
||||
tests/live_*
|
||||
tests/test_*
|
||||
tests/unit_tests_catch
|
||||
!tests/live_*.cc
|
||||
!tests/test_*.cc
|
||||
|
||||
|
@ -60,3 +60,11 @@ FOREACH(TEST ${LIVE_TESTS})
|
||||
ADD_TEST(${TEST} ${TEST})
|
||||
ENDIF(SDL2PP_ENABLE_LIVE_TESTS)
|
||||
ENDFOREACH(TEST ${TESTS})
|
||||
|
||||
# Catch based tests
|
||||
SET(CATCH_CLI_TESTS
|
||||
)
|
||||
|
||||
ADD_EXECUTABLE(unit_tests_catch catch_main.cc ${CATCH_CLI_TESTS})
|
||||
TARGET_LINK_LIBRARIES(unit_tests_catch ${SDL2PP_LIBRARIES})
|
||||
ADD_TEST(unit_tests_catch unit_tests_catch)
|
||||
|
11545
tests/catch.hpp
Normal file
11545
tests/catch.hpp
Normal file
File diff suppressed because it is too large
Load Diff
2
tests/catch_main.cc
Normal file
2
tests/catch_main.cc
Normal file
@ -0,0 +1,2 @@
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include "catch.hpp"
|
Loading…
x
Reference in New Issue
Block a user