diff options
author | Simon Warta <simon@warta.it> | 2015-07-08 15:36:31 +0200 |
---|---|---|
committer | Simon Warta <simon@warta.it> | 2015-07-15 13:51:20 +0200 |
commit | 75a769a8487eecdb05acd495c4625245876a01b3 (patch) | |
tree | eb142d1605ca3b1829f5b87440a5e24f5c414276 /src/tests/tests.cpp | |
parent | 4f3e049218a90e546e529ad788aea26c68fd9ef0 (diff) |
Add initial catchy test: base64
Diffstat (limited to 'src/tests/tests.cpp')
-rw-r--r-- | src/tests/tests.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tests/tests.cpp b/src/tests/tests.cpp index 0599def2a..de83965f1 100644 --- a/src/tests/tests.cpp +++ b/src/tests/tests.cpp @@ -10,6 +10,11 @@ #include <botan/auto_rng.h> #include <botan/fs.h> +#define CATCH_CONFIG_RUNNER +#define CATCH_CONFIG_CONSOLE_WIDTH 60 +#define CATCH_CONFIG_COLOUR_NONE +#include "catchy/catch.hpp" + #if defined(BOTAN_HAS_SYSTEM_RNG) #include <botan/system_rng.h> #endif @@ -219,6 +224,17 @@ int help(char* argv0) return 1; } +int test_catchy() + { + // drop arc and arv for now + int catchy_result = Catch::Session().run(); + if (catchy_result != 0) + { + std::exit(EXIT_FAILURE); + } + return 0; + } + } int main(int argc, char* argv[]) @@ -240,6 +256,9 @@ int main(int argc, char* argv[]) tests.push_back(std::make_pair(#test, test_ ## test)); \ } while(0) + // unittesting framework in sub-folder tests/catchy + DEF_TEST(catchy); + DEF_TEST(block); DEF_TEST(modes); DEF_TEST(aead); |