]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: Reduce unittest_bluefs for jenkins
authorAdam Kupczyk <akupczyk@ibm.com>
Wed, 11 Dec 2024 17:17:13 +0000 (17:17 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Wed, 11 Dec 2024 18:13:11 +0000 (18:13 +0000)
When run on jenkins make "very_large_write" tests smaller.
Its intention is to make it easier on make check target.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/test/objectstore/test_bluefs.cc

index e2f95dd6c8000c7c2d08015fae9744a38775383a..d3b0d0ac3a470e0ef4200cd5cff66a618f24b08a 100644 (file)
 
 using namespace std;
 
+// some test should not be executed on jenkins make check
+#define SKIP_JENKINS() \
+  if (getenv("JENKINS_HOME") != nullptr) GTEST_SKIP_("test disabled on jenkins");
+
+
 std::unique_ptr<char[]> gen_buffer(uint64_t size)
 {
     std::unique_ptr<char[]> buffer = std::make_unique<char[]>(size);
@@ -174,6 +179,7 @@ TEST(BlueFS, small_appends) {
 }
 
 TEST(BlueFS, very_large_write) {
+  SKIP_JENKINS();
   // we'll write a ~5G file, so allocate more than that for the whole fs
   uint64_t size = 1048576 * 1024 * 6ull;
   TempBdev bdev{size};
@@ -248,6 +254,7 @@ TEST(BlueFS, very_large_write) {
 }
 
 TEST(BlueFS, very_large_write2) {
+  SKIP_JENKINS();
   // we'll write a ~5G file, so allocate more than that for the whole fs
   uint64_t size_full = 1048576 * 1024 * 6ull;
   uint64_t size = 1048576 * 1024 * 5ull;