diff options
author | Sven Gothel <[email protected]> | 2022-07-11 04:30:28 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-07-11 04:30:28 +0200 |
commit | c861a808f239c2505c1055d849df39c0e7059f4f (patch) | |
tree | 0c9e1b86a238929e4a0805eb16f2d2e1008eafb8 /test/cipherpack | |
parent | a14186f8d1e49dbdd6c19429140cce5cede3f39d (diff) |
cipherpack::environment: Use singleton instance and add print_info() for cpuid details plus Botan's CPUID and certain sha algos and their provider.
Diffstat (limited to 'test/cipherpack')
-rw-r--r-- | test/cipherpack/test_00_cipherpack.cpp | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/test/cipherpack/test_00_cipherpack.cpp b/test/cipherpack/test_00_cipherpack.cpp new file mode 100644 index 0000000..cc02905 --- /dev/null +++ b/test/cipherpack/test_00_cipherpack.cpp @@ -0,0 +1,56 @@ +/* + * Author: Sven Gothel <[email protected]> + * Copyright (c) 2022 Gothel Software e.K. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + +#include <iostream> +#include <cassert> +#include <cinttypes> +#include <cstring> + +#include <fstream> +#include <iostream> + +#define CATCH_CONFIG_RUNNER +// #define CATCH_CONFIG_MAIN +#include <catch2/catch_amalgamated.hpp> +#include <jau/test/catch2_ext.hpp> + +#include <cipherpack/cipherpack.hpp> + +extern "C" { + #include <unistd.h> +} + +using namespace jau::fractions_i64_literals; + +class Test00Cipherpack { + public: + void test00_info() { + cipherpack::environment& e = cipherpack::environment::get(); + e.print_info(); + } +}; + +METHOD_AS_TEST_CASE( Test00Cipherpack::test00_info, "CipherPack 00 test00_info"); + + |