blob: 20e7289ce8a6811c0334647a763ac722398e99b8 [file] [log] [blame]
kellyhungfc2a3802024-06-14 02:23:09 +00001//
2// Copyright (C) 2016 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.
15package {
16 // See: http://go/android-license-faq
17 default_applicable_licenses: [
18 "system_extras_tests_license",
19 ],
20 default_team: "trendy_team_android_kernel",
21}
22
23cc_defaults {
24 name: "kernel.config.defaults",
25 cflags: [
26 "-fstack-protector-all",
27 "-g",
28 "-Wall",
29 "-Wextra",
30 "-Werror",
31 "-fno-builtin",
32 "-DHAS_KCMP",
33 ],
34 shared_libs: ["libbase"],
35 // Required Tests
36 srcs: [
37 "logger_test.cpp",
38 "multicast_test.cpp",
39 "nfs_test.cpp",
40 "sysvipc_test.cpp",
41 ],
42}
43
44cc_test {
45 name: "kernel-config-unit-tests",
46 defaults: ["kernel.config.defaults"],
47 // Required plus Recommended Tests
48 // TODO: move aslr_test.cpp back to Reauired Tests b/36888825
49 srcs: [
50 "aslr_test.cpp",
51 "aslr_rec_test.cpp",
52 "mmc_max_speed_test.cpp",
53 "pstore_test.cpp",
54 ],
55}
56
57cc_test {
58 name: "CtsKernelConfigTestCases",
59 defaults: ["kernel.config.defaults"],
60 compile_multilib: "both",
61 multilib: {
62 lib32: {
63 suffix: "32",
64 },
65 lib64: {
66 suffix: "64",
67 },
68 },
69 static_libs: [
70 "libgtest",
71 "libgtest_main",
72 ],
73 test_suites: [
74 "cts",
75 "vts10",
76 ],
77}
78
79cc_test {
80 name: "scrape_mmap_addr",
81 srcs: ["scrape_mmap_addr.cpp"],
82 cflags: [
83 "-Wall",
84 "-Werror",
85 ],
86}