aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_compression.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/test_compression.cpp')
-rw-r--r--src/tests/test_compression.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/test_compression.cpp b/src/tests/test_compression.cpp
index 9b83737a0..b68262385 100644
--- a/src/tests/test_compression.cpp
+++ b/src/tests/test_compression.cpp
@@ -1,4 +1,7 @@
#include "tests.h"
+
+#if defined(BOTAN_HAS_COMPRESSION)
+
#include <botan/compression.h>
#include <botan/hex.h>
#include <iostream>
@@ -123,3 +126,9 @@ size_t test_compression()
return fails;
}
+
+#else
+
+SKIP_TEST(compression);
+
+#endif // BOTAN_HAS_COMPRESSION