summaryrefslogtreecommitdiffstats
path: root/src/test/compressor
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2016-11-24 19:16:40 +0100
committerKefu Chai <kchai@redhat.com>2016-11-28 05:33:17 +0100
commit5af29540675b674c1985ff98b28a783ed124acf6 (patch)
tree89360a347e262578fb62d4ec1e53b60b74788c7d /src/test/compressor
parentceph_argparse: simplify argv_to_vec() using vector::insert() (diff)
downloadceph-5af29540675b674c1985ff98b28a783ed124acf6.tar.xz
ceph-5af29540675b674c1985ff98b28a783ed124acf6.zip
test,cmake: turn unit.h into unit.cc to speed up compilation
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/test/compressor')
-rw-r--r--src/test/compressor/CMakeLists.txt1
-rw-r--r--src/test/compressor/test_compression.cc7
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/compressor/CMakeLists.txt b/src/test/compressor/CMakeLists.txt
index bf63e7e2eaf..d296cdf0bea 100644
--- a/src/test/compressor/CMakeLists.txt
+++ b/src/test/compressor/CMakeLists.txt
@@ -3,6 +3,7 @@ add_library(ceph_example SHARED compressor_plugin_example.cc)
# unittest_compression
add_executable(unittest_compression
test_compression.cc
+ $<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_compression ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_compression)
target_link_libraries(unittest_compression global)
diff --git a/src/test/compressor/test_compression.cc b/src/test/compressor/test_compression.cc
index 6dbdfacd1cd..1b9782a0467 100644
--- a/src/test/compressor/test_compression.cc
+++ b/src/test/compressor/test_compression.cc
@@ -17,12 +17,11 @@
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
-#include "compressor/Compressor.h"
-#include "common/ceph_argparse.h"
-#include "global/global_context.h"
+#include "gtest/gtest.h"
#include "common/config.h"
+#include "compressor/Compressor.h"
#include "compressor/CompressionPlugin.h"
-#include "test/unit.h"
+#include "global/global_context.h"
class CompressorTest : public ::testing::Test,
public ::testing::WithParamInterface<const char*> {