aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_ecc.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-26 20:20:32 +0200
committerSimon Warta <[email protected]>2015-07-03 10:33:45 +0200
commitf472b8fc61accbbaa6a36af9d2d20b0fde37a1a2 (patch)
tree8e71c24da6f7f5b037024741105ca392369e590a /src/tests/unit_ecc.cpp
parentcd9037e29f32197b9c37ef7bec955ac2372b543b (diff)
Make Botan compile when only some modules are enabled
Fixes #146.
Diffstat (limited to 'src/tests/unit_ecc.cpp')
-rw-r--r--src/tests/unit_ecc.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/tests/unit_ecc.cpp b/src/tests/unit_ecc.cpp
index 4c35caa48..8498e3b43 100644
--- a/src/tests/unit_ecc.cpp
+++ b/src/tests/unit_ecc.cpp
@@ -6,13 +6,12 @@
#include "tests.h"
-#include <botan/hex.h>
-#include <iostream>
-#include <memory>
-
#if defined(BOTAN_HAS_ECC_GROUP)
+#include <iostream>
+#include <memory>
#include <botan/bigint.h>
+#include <botan/hex.h>
#include <botan/numthry.h>
#include <botan/curve_gfp.h>
#include <botan/point_gfp.h>
@@ -901,7 +900,6 @@ size_t ecc_randomized_test()
test_report("ECC Randomized", tests, fails);
return fails;
}
-#endif
}
@@ -909,7 +907,6 @@ size_t test_ecc_unit()
{
size_t fails = 0;
-#if defined(BOTAN_HAS_ECC_GROUP)
fails += test_point_turn_on_sp_red_mul();
fails += test_coordinates();
fails += test_point_transformation ();
@@ -938,7 +935,12 @@ size_t test_ecc_unit()
test_report("ECC", 0, fails);
ecc_randomized_test();
-#endif
return fails;
}
+
+#else
+
+SKIP_TEST(ecc_unit);
+
+#endif // BOTAN_HAS_ECC_GROUP