aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-27 20:28:19 -0400
committerJack Lloyd <[email protected]>2017-09-27 20:28:19 -0400
commit9c8a5e5d8f9f2e0bc4607255dadcb1d44aa1b2b8 (patch)
treeb206bb37edbe745242c7e7471249af20ca656369 /src/tests
parentc3b3d344b46099fff9c4d65556a45c973398a20f (diff)
Make poly_dbl.h a submodule of utils
Only required by a few modules and if none of them are in use then the whole thing can just be skipped from the build.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_utils.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tests/test_utils.cpp b/src/tests/test_utils.cpp
index b44faac39..8d46d4a26 100644
--- a/src/tests/test_utils.cpp
+++ b/src/tests/test_utils.cpp
@@ -12,7 +12,6 @@
#include <botan/loadstor.h>
#include <botan/calendar.h>
#include <botan/internal/rounding.h>
-#include <botan/internal/poly_dbl.h>
#include <botan/internal/ct_utils.h>
#include <botan/charset.h>
#include <botan/parsing.h>
@@ -21,6 +20,10 @@
#include <botan/base64.h>
#endif
+#if defined(BOTAN_HAS_POLY_DBL)
+ #include <botan/internal/poly_dbl.h>
+#endif
+
namespace Botan_Tests {
namespace {
@@ -213,6 +216,8 @@ class Utility_Function_Tests final : public Text_Based_Test
BOTAN_REGISTER_TEST("util", Utility_Function_Tests);
+#if defined(BOTAN_HAS_POLY_DBL)
+
class Poly_Double_Tests final : public Text_Based_Test
{
public:
@@ -234,6 +239,8 @@ class Poly_Double_Tests final : public Text_Based_Test
BOTAN_REGISTER_TEST("poly_dbl", Poly_Double_Tests);
+#endif
+
class Date_Format_Tests final : public Text_Based_Test
{
public: