blob: f77f0a7049557e3f855b6224eff29cc99b8a540e [file] [log] [blame]
Brian Silverman258b9172015-09-19 14:32:57 -04001cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -07002 name = "googletest",
3 testonly = True,
4 srcs = [
5 "gtest_main.cc",
6 ],
7 compatible_with = [
8 "//tools:armhf-debian",
9 ],
10 visibility = ["//visibility:public"],
11 deps = [
12 "//third_party/googletest",
13 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050014)
15
16cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070017 name = "test_logging",
18 testonly = True,
19 srcs = [
20 "test_logging.cc",
21 ],
22 hdrs = [
23 "test_logging.h",
24 ],
25 visibility = ["//visibility:public"],
26 deps = [
27 ":googletest",
28 "//aos:once",
John Park33858a32018-09-28 23:05:48 -070029 "//aos/mutex:mutex",
30 "//aos/logging:implementations",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070031 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050032)
33
34cc_test(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070035 name = "test_logging_test",
36 srcs = [
37 "test_logging_test.cc",
38 ],
39 deps = [
40 ":googletest",
41 ":test_logging",
John Park33858a32018-09-28 23:05:48 -070042 "//aos/logging",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070043 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050044)
45
46cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070047 name = "prevent_exit",
48 testonly = True,
49 srcs = [
50 "prevent_exit.cc",
51 ],
52 hdrs = [
53 "prevent_exit.h",
54 ],
55 visibility = ["//visibility:public"],
56 deps = [
John Park33858a32018-09-28 23:05:48 -070057 "//aos/logging",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070058 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050059)
60
61cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070062 name = "test_shm",
63 testonly = True,
64 srcs = [
65 "test_shm.cc",
66 ],
67 hdrs = [
68 "test_shm.h",
69 ],
70 visibility = ["//visibility:public"],
71 deps = [
72 ":test_logging",
John Park33858a32018-09-28 23:05:48 -070073 "//aos:queues",
74 "//aos/logging",
John Park398c74a2018-10-20 21:17:39 -070075 "//aos/ipc_lib:shared_mem",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070076 ],
Brian Silverman258b9172015-09-19 14:32:57 -040077)
Brian Silverman33d0d6e2016-05-15 23:33:39 -070078
79cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070080 name = "random_seed",
81 testonly = True,
82 srcs = [
83 "random_seed.cc",
84 ],
85 hdrs = [
86 "random_seed.h",
87 ],
88 visibility = ["//visibility:public"],
Brian Silverman33d0d6e2016-05-15 23:33:39 -070089)