Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c352179e authored by Alessio Balsini's avatar Alessio Balsini
Browse files

fiemap: add image_test and writer_test tests to presubmit



Add fiemap_image_test and fiemap_writer_test to TEST_MAPPING to be run
by TH as presubmits.
Because of a bug under investigation, the actual
fiemap_image_test_presubmit is used instead of the original, that has
one test case disabled.

Bug: none
Test: TH, fiemap_image_test, fiemap_writer_test
Change-Id: I63b5e69b5c245a18eceb1e5896df7bd0577f289b
Signed-off-by: default avatarAlessio Balsini <balsini@google.com>
parent f6034544
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -5,6 +5,12 @@
    },
    {
      "name": "liblp_test"
    },
    {
      "name": "fiemap_image_test_presubmit"
    },
    {
      "name": "fiemap_writer_test"
    }
  ]
}
+30 −0
Original line number Diff line number Diff line
@@ -104,4 +104,34 @@ cc_test {
    srcs: [
        "image_test.cpp",
    ],
    test_suites: ["device-tests"],
    auto_gen_config: true,
    require_root: true,
}

/* BUG(148874852) temporary test */
cc_test {
    name: "fiemap_image_test_presubmit",
    cppflags: [
        "-DSKIP_TEST_IN_PRESUBMIT",
    ],
    static_libs: [
        "libdm",
        "libext4_utils",
        "libfs_mgr",
        "liblp",
    ],
    shared_libs: [
        "libbase",
        "libcrypto",
        "libcrypto_utils",
        "libcutils",
        "liblog",
    ],
    srcs: [
        "image_test.cpp",
    ],
    test_suites: ["device-tests"],
    auto_gen_config: true,
    require_root: true,
}
+3 −0
Original line number Diff line number Diff line
@@ -212,6 +212,9 @@ TEST_F(ImageTest, DirectMount) {
}

TEST_F(ImageTest, IndirectMount) {
#ifdef SKIP_TEST_IN_PRESUBMIT
    GTEST_SKIP() << "WIP failure b/148874852";
#endif
    // Create a simple wrapper around the base device that we'll mount from
    // instead. This will simulate the code paths for dm-crypt/default-key/bow
    // and force us to use device-mapper rather than loop devices.