diff options
Diffstat (limited to 'src/tests/test_modes.cpp')
-rw-r--r-- | src/tests/test_modes.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/tests/test_modes.cpp b/src/tests/test_modes.cpp index 35853ba82..bfbb46355 100644 --- a/src/tests/test_modes.cpp +++ b/src/tests/test_modes.cpp @@ -6,6 +6,10 @@ #include "tests.h" +#if defined(BOTAN_HAS_MODES) + +#if defined(BOTAN_HAS_FILTERS) + #include <botan/hex.h> #include <botan/lookup.h> #include <botan/cipher_mode.h> @@ -94,5 +98,17 @@ size_t test_modes() }); }; - return run_tests_in_dir(TEST_DATA_DIR "modes", test); + return run_tests_in_dir(TEST_DATA_DIR "/modes", test); } + +#else + +UNTESTED_WARNING(modes); + +#endif // BOTAN_HAS_FILTERS + +#else + +SKIP_TEST(modes); + +#endif // BOTAN_HAS_MODES |