diff --git a/fs_mgr/libdm/Android.bp b/fs_mgr/libdm/Android.bp index 449a170a3..dd95a5e57 100644 --- a/fs_mgr/libdm/Android.bp +++ b/fs_mgr/libdm/Android.bp @@ -55,13 +55,7 @@ filegroup { cc_defaults { name: "libdm_defaults", - sanitize: { - misc_undefined: ["integer"], - }, - cflags: [ - "-Wall", - "-Werror", - ], + defaults: ["fs_mgr_defaults"], static_libs: [ "libdm", "libbase", @@ -76,3 +70,12 @@ cc_test { name: "libdm_test", defaults: ["libdm_defaults"], } + +cc_test { + name: "vts_libdm_test", + defaults: ["libdm_defaults"], + test_suites: ["vts-core"], + auto_gen_config: true, + require_root: true, + test_min_api_level: 29, +} diff --git a/fs_mgr/libdm/vts_core/Android.bp b/fs_mgr/libdm/vts_core/Android.bp deleted file mode 100644 index 2eceb28a9..000000000 --- a/fs_mgr/libdm/vts_core/Android.bp +++ /dev/null @@ -1,23 +0,0 @@ -// -// 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, -} diff --git a/fs_mgr/liblp/Android.bp b/fs_mgr/liblp/Android.bp index 178b343ac..a7c77b897 100644 --- a/fs_mgr/liblp/Android.bp +++ b/fs_mgr/liblp/Android.bp @@ -69,13 +69,7 @@ filegroup { cc_defaults { name: "liblp_test_defaults", - sanitize: { - misc_undefined: ["integer"], - }, - cflags: [ - "-Wall", - "-Werror", - ], + defaults: ["fs_mgr_defaults"], cppflags: [ "-Wno-unused-parameter", ], @@ -100,6 +94,14 @@ cc_test { test_suites: ["device-tests"], } +cc_test { + name: "vts_core_liblp_test", + defaults: ["liblp_test_defaults"], + test_suites: ["vts-core"], + auto_gen_config: true, + test_min_api_level: 29, +} + cc_test { name: "vts_kernel_liblp_test", defaults: ["liblp_test_defaults"], diff --git a/fs_mgr/liblp/vts_core/Android.bp b/fs_mgr/liblp/vts_core/Android.bp deleted file mode 100644 index 7af0b9e35..000000000 --- a/fs_mgr/liblp/vts_core/Android.bp +++ /dev/null @@ -1,22 +0,0 @@ -// -// 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_core_liblp_test", - defaults: ["liblp_test_defaults"], - test_suites: ["vts-core"], - test_min_api_level: 29, -}