summaryrefslogtreecommitdiffstats
path: root/src/test/libcephd/misc.cc
diff options
context:
space:
mode:
authorBassam Tabbara <bassam.tabbara@quantum.com>2016-11-05 02:10:08 +0100
committerBassam Tabbara <bassam.tabbara@quantum.com>2016-11-29 08:48:02 +0100
commitc6067f48ec7aa927129e98bf8424d80ed03119f3 (patch)
treeedf542d1c65ab22b89ba5a2ed1f4d29509746073 /src/test/libcephd/misc.cc
parentMerge pull request #12170 from dzafman/wip-ec-error-tests (diff)
downloadceph-c6067f48ec7aa927129e98bf8424d80ed03119f3.tar.xz
ceph-c6067f48ec7aa927129e98bf8424d80ed03119f3.zip
embedded: Add a skeleton libcephd library
libcephd is a library that contains ceph daemon code that can be statically linked in other applications. Added MergeStaticLibraries.cmake that can merge static libraries to form a bigger one. This approach avoids the need to mess with STATIC libraries all over the code base. Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
Diffstat (limited to 'src/test/libcephd/misc.cc')
-rw-r--r--src/test/libcephd/misc.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/libcephd/misc.cc b/src/test/libcephd/misc.cc
new file mode 100644
index 00000000000..274699d6ecc
--- /dev/null
+++ b/src/test/libcephd/misc.cc
@@ -0,0 +1,7 @@
+#include "gtest/gtest.h"
+#include "include/cephd/libcephd.h"
+
+TEST(LibCephdMiscVersion, Version) {
+ int major, minor, extra;
+ cephd_version(&major, &minor, &extra);
+}