]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add unittest just to verify we link
authorSage Weil <sage.weil@dreamhost.com>
Fri, 30 Mar 2012 02:16:58 +0000 (19:16 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 30 Mar 2012 02:16:58 +0000 (19:16 -0700)
This will flush out references to stuff in libglobal.la, among other
things.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/Makefile.am
src/test/librgw_link.cc [new file with mode: 0644]

index 8cc1c3b0d96340f36799a9f434d221e11ee937da..642e2b45fc0f8b02b6054fe2846b5bc235d9f8b9 100644 (file)
@@ -636,6 +636,12 @@ unittest_librados_config_LDADD =  librados.la ${UNITTEST_LDADD}
 unittest_librados_config_CXXFLAGS = ${CRYPTO_CFLAGS} ${AM_CXXFLAGS} ${UNITTEST_CXXFLAGS}
 check_PROGRAMS += unittest_librados_config
 
+unittest_librgw_link_SOURCES = test/librgw_link.cc
+unittest_librgw_link_LDFLAGS = $(PTHREAD_CFLAGS) ${AM_LDFLAGS}
+unittest_librgw_link_LDADD =  librgw.la ${UNITTEST_LDADD}
+unittest_librgw_link_CXXFLAGS = ${CRYPTO_CFLAGS} ${AM_CXXFLAGS} ${UNITTEST_CXXFLAGS}
+check_PROGRAMS += unittest_librgw_link
+
 unittest_daemon_config_SOURCES = test/daemon_config.cc
 unittest_daemon_config_LDFLAGS = $(PTHREAD_CFLAGS) ${AM_LDFLAGS}
 unittest_daemon_config_LDADD =  ${UNITTEST_LDADD} ${LIBGLOBAL_LDA}
diff --git a/src/test/librgw_link.cc b/src/test/librgw_link.cc
new file mode 100644 (file)
index 0000000..f655a1e
--- /dev/null
@@ -0,0 +1,20 @@
+// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
+// vim: ts=8 sw=2 smarttab
+/*
+ * Ceph - scalable distributed file system
+ *
+ * Copyright (C) 2011 New Dream Network
+ *
+ * This is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software
+ * Foundation.  See file COPYING.
+ *
+ */
+
+#include "gtest/gtest.h"
+
+TEST(LibrgwConfig, Link) {
+}
+
+