]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: add wrapper to run rbd-ggate test on FreeBSD 15339/head
authorMykola Golub <mgolub@mirantis.com>
Sun, 6 Aug 2017 14:27:22 +0000 (16:27 +0200)
committerMykola Golub <mgolub@mirantis.com>
Tue, 8 Aug 2017 09:00:30 +0000 (11:00 +0200)
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/test/CMakeLists.txt
src/test/rbd-ggate.sh [new file with mode: 0755]

index 189438acfd772445490002c185648331e890f756..07f3238a4e4d1271e811a4992e4d8eb5b9400212 100644 (file)
@@ -548,6 +548,9 @@ add_dependencies(tests
   cython_modules)
 if(WITH_RBD)
   add_dependencies(tests unittest_librbd rbd)
+  if(FREEBSD)
+    add_dependencies(tests rbd-ggate)
+  endif(FREEBSD)
 endif(WITH_RBD)
 if(WITH_RADOSGW)
   add_dependencies(tests radosgw-admin)
@@ -558,6 +561,9 @@ endif(NOT FREEBSD)
 
 if(WITH_RBD)
   add_ceph_test(run-rbd-unit-tests.sh ${CMAKE_CURRENT_SOURCE_DIR}/run-rbd-unit-tests.sh)
+  if(FREEBSD)
+    add_ceph_test(rbd-ggate.sh ${CMAKE_CURRENT_SOURCE_DIR}/rbd-ggate.sh)
+  endif(FREEBSD)
 endif(WITH_RBD)
 add_ceph_test(run-cli-tests ${CMAKE_CURRENT_SOURCE_DIR}/run-cli-tests)
 add_ceph_test(test_objectstore_memstore.sh ${CMAKE_CURRENT_SOURCE_DIR}/test_objectstore_memstore.sh)
diff --git a/src/test/rbd-ggate.sh b/src/test/rbd-ggate.sh
new file mode 100755 (executable)
index 0000000..397a9ae
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/bash -ex
+#
+# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
+# Copyright (C) 2013 Cloudwatt <libre.licensing@cloudwatt.com>
+#
+# Author: Loic Dachary <loic@dachary.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Library Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Library Public License for more details.
+#
+source $(dirname $0)/detect-build-env-vars.sh
+
+test `uname` = FreeBSD
+
+CEPH_CLI_TEST_DUP_COMMAND=1 \
+MON=1 OSD=3 MDS=0 MGR=1 CEPH_PORT=7206 $CEPH_ROOT/src/test/vstart_wrapper.sh \
+    $CEPH_ROOT/qa/workunits/rbd/rbd-ggate.sh \