Added test project
This commit is contained in:
1 parent
2daf76f30e
commit
0a555855a3
4 files changed
+18005
No files matched your search
@@ -47,3 +47,32 @@ target_compile_options(${PROJECT_NAME} PRIVATE
|
|||||||
-fdiagnostics-color=always
|
-fdiagnostics-color=always
|
||||||
)
|
)
|
||||||
|
|
||||||
|
#########
|
||||||
|
# Tests #
|
||||||
|
#########
|
||||||
|
LIST(FILTER main_src EXCLUDE REGEX ".*/main.cpp")
|
||||||
|
FILE(GLOB test_src test/*.cpp)
|
||||||
|
|
||||||
|
add_executable(test
|
||||||
|
test/Catch2.h
|
||||||
|
${test_src}
|
||||||
|
${main_src}
|
||||||
|
${stringtools_src}
|
||||||
|
${generalutility_src}
|
||||||
|
${hazelnupp_src}
|
||||||
|
${gcrypt_src}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(test PRIVATE
|
||||||
|
include
|
||||||
|
${stringtools_include}
|
||||||
|
${generalutility_include}
|
||||||
|
${hazelnupp_include}
|
||||||
|
${gcrypt_include}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_compile_options(test PRIVATE
|
||||||
|
-Werror
|
||||||
|
-fdiagnostics-color=always
|
||||||
|
)
|
||||||
|
|
||||||
+17965
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,9 @@
|
|||||||
|
#include "ModuleDataFormatter.h"
|
||||||
|
#include "Catch2.h"
|
||||||
|
|
||||||
|
using namespace Leonetienne::GCrypt;
|
||||||
|
|
||||||
|
// Empty test
|
||||||
|
TEST_CASE(__FILE__"", "[ModuleDataFormatter]") {
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#define CATCH_CONFIG_MAIN
|
||||||
|
#include "Catch2.h"
|
||||||
Reference in new issue
Block a user