blob: d39da8a27b9fae3c0a61f42cb65d1d1b2693111c [file] [log] [blame]
Dan Willemsen3e963f92018-10-31 10:32:32 -07001//
2// Copyright (C) 2014 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17// -----------------------------------------------------------------------------
18// Unit tests.
19// -----------------------------------------------------------------------------
20
21cc_defaults {
22 name: "logd-unit-test-defaults",
23
24 cflags: [
25 "-fstack-protector-all",
26 "-g",
27 "-Wall",
28 "-Wextra",
29 "-Werror",
30 "-fno-builtin",
31
32 "-DAUDITD_LOG_TAG=1003",
33 "-DCHATTY_LOG_TAG=1004",
34 ],
35
36 srcs: ["logd_test.cpp"],
37
dimitrybf613b42019-05-14 14:50:27 +020038 static_libs: [
Dan Willemsen3e963f92018-10-31 10:32:32 -070039 "libbase",
40 "libcutils",
Dan Willemsen3e963f92018-10-31 10:32:32 -070041 "libselinux",
dimitrybf613b42019-05-14 14:50:27 +020042 "liblog",
Dan Willemsen3e963f92018-10-31 10:32:32 -070043 ],
Dan Willemsen3e963f92018-10-31 10:32:32 -070044}
45
46// Build tests for the logger. Run with:
47// adb shell /data/nativetest/logd-unit-tests/logd-unit-tests
48cc_test {
49 name: "logd-unit-tests",
50 defaults: ["logd-unit-test-defaults"],
51}
52
53cc_test {
54 name: "CtsLogdTestCases",
55 defaults: ["logd-unit-test-defaults"],
56 multilib: {
57 lib32: {
58 suffix: "32",
59 },
60 lib64: {
61 suffix: "64",
62 },
63 },
64 test_suites: [
65 "cts",
66 "vts",
67 ],
68}