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

Commit 5642e239 authored by nelsonli's avatar nelsonli
Browse files

[vts-core] Add libdm_test in vts-core

Add libdm_test to vts-core suite and skip the test if the
first-api-level < 29.

Bug: 132702215
Test: atest vts_libdm_test
Change-Id: Ic805a4c08e5bf9f6c69019d4ea01825ae888e1fe
parent cb2598e4
Loading
Loading
Loading
Loading
+24 −8
Original line number Diff line number Diff line
@@ -44,9 +44,24 @@ cc_library_static {
    },
}

cc_test {
    name: "libdm_test",
    defaults: ["fs_mgr_defaults"],
filegroup {
    name: "libdm_test_srcs",
    srcs: [
        "dm_test.cpp",
        "loop_control_test.cpp",
        "test_util.cpp",
    ],
}

cc_defaults {
    name: "libdm_defaults",
    sanitize: {
        misc_undefined: ["integer"],
    },
    cflags: [
        "-Wall",
        "-Werror",
    ],
    static_libs: [
        "libdm",
        "libbase",
@@ -54,9 +69,10 @@ cc_test {
        "libfs_mgr",
        "liblog",
    ],
    srcs: [
        "dm_test.cpp",
        "loop_control_test.cpp",
        "test_util.cpp",
    ]
    srcs: [":libdm_test_srcs"],
}

cc_test {
    name: "libdm_test",
    defaults: ["libdm_defaults"],
}
+23 −0
Original line number Diff line number Diff line
//
// Copyright (C) 2019 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

cc_test {
    name: "vts_libdm_test",
    defaults: ["libdm_defaults"],
    test_suites: ["vts-core"],
    require_root: true,
    test_min_api_level: 29,
}