summaryrefslogtreecommitdiffstats
path: root/src/test/compressor/test_compression.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compressor/test_compression.cc')
-rw-r--r--src/test/compressor/test_compression.cc20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/test/compressor/test_compression.cc b/src/test/compressor/test_compression.cc
index d7c24d5a827..6dbdfacd1cd 100644
--- a/src/test/compressor/test_compression.cc
+++ b/src/test/compressor/test_compression.cc
@@ -17,13 +17,12 @@
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
-#include <gtest/gtest.h>
-#include "global/global_init.h"
#include "compressor/Compressor.h"
#include "common/ceph_argparse.h"
#include "global/global_context.h"
#include "common/config.h"
#include "compressor/CompressionPlugin.h"
+#include "test/unit.h"
class CompressorTest : public ::testing::Test,
public ::testing::WithParamInterface<const char*> {
@@ -453,20 +452,3 @@ TEST(ZlibCompressor, isal_compress_zlib_decompress_walk)
EXPECT_TRUE(exp.contents_equal(after));
}
}
-
-
-int main(int argc, char **argv) {
- vector<const char*> args;
- argv_to_vec(argc, (const char **)argv, args);
- env_to_vec(args);
-
- global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY, 0);
- common_init_finish(g_ceph_context);
-
- const char* env = getenv("CEPH_LIB");
- if (env)
- g_conf->set_val("plugin_dir", env, false, false);
-
- ::testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
-}