Added Catch

This commit is contained in:
Vraiment 2017-07-22 18:09:47 -07:00
parent 7cfc30970b
commit f7ea950f99
4 changed files with 11556 additions and 0 deletions

1
.gitignore vendored
View File

@ -45,6 +45,7 @@ libSDL2pp.dylib
libSDL2pp.*.dylib
tests/live_*
tests/test_*
tests/unit_tests_catch
!tests/live_*.cc
!tests/test_*.cc

View File

@ -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

File diff suppressed because it is too large Load Diff

2
tests/catch_main.cc Normal file
View File

@ -0,0 +1,2 @@
#define CATCH_CONFIG_MAIN
#include "catch.hpp"