blob: d3287e367a64b3a75b78f07cd7d67069f73b60df [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 ],
Philipp Schraderdada1072020-11-24 11:34:46 -08007 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -07008 visibility = ["//visibility:public"],
9 deps = [
Austin Schuh62288252020-11-18 23:26:04 -080010 "//aos:init",
Austin Schuh6b73f0d2019-01-07 17:03:03 -080011 "@com_github_gflags_gflags//:gflags",
Austin Schuhcb108412019-10-13 16:09:54 -070012 "@com_github_google_glog//:glog",
Alex Perrycb7da4b2019-08-28 19:35:56 -070013 "@com_google_googletest//:gtest",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070014 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050015)
16
17cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070018 name = "test_logging",
19 testonly = True,
20 srcs = [
21 "test_logging.cc",
22 ],
23 hdrs = [
24 "test_logging.h",
25 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080026 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -070027 visibility = ["//visibility:public"],
28 deps = [
29 ":googletest",
Brian Silvermanb47f5552020-10-01 15:08:14 -070030 "//aos:thread_local",
John Park33858a32018-09-28 23:05:48 -070031 "//aos/logging:implementations",
Brian Silverman1463c092020-10-30 17:28:24 -070032 "//aos/stl_mutex",
Austin Schuha4f69d62020-02-28 13:58:14 -080033 "@com_google_absl//absl/base",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070034 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050035)
36
37cc_test(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070038 name = "test_logging_test",
39 srcs = [
40 "test_logging_test.cc",
41 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080042 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -070043 deps = [
44 ":googletest",
45 ":test_logging",
John Park33858a32018-09-28 23:05:48 -070046 "//aos/logging",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070047 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050048)
49
50cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070051 name = "prevent_exit",
52 testonly = True,
53 srcs = [
54 "prevent_exit.cc",
55 ],
56 hdrs = [
57 "prevent_exit.h",
58 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080059 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -070060 visibility = ["//visibility:public"],
61 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -070062 "@com_github_google_glog//:glog",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070063 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050064)
65
66cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070067 name = "test_shm",
68 testonly = True,
69 srcs = [
70 "test_shm.cc",
71 ],
72 hdrs = [
73 "test_shm.h",
74 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080075 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -070076 visibility = ["//visibility:public"],
77 deps = [
78 ":test_logging",
John Park398c74a2018-10-20 21:17:39 -070079 "//aos/ipc_lib:shared_mem",
Austin Schuh6b73f0d2019-01-07 17:03:03 -080080 "//aos/logging",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070081 ],
Brian Silverman258b9172015-09-19 14:32:57 -040082)
Brian Silverman33d0d6e2016-05-15 23:33:39 -070083
84cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070085 name = "random_seed",
86 testonly = True,
87 srcs = [
88 "random_seed.cc",
89 ],
90 hdrs = [
91 "random_seed.h",
92 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080093 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -070094 visibility = ["//visibility:public"],
Brian Silverman33d0d6e2016-05-15 23:33:39 -070095)
Austin Schuhc243b422020-10-11 15:35:08 -070096
97cc_library(
98 name = "tmpdir",
99 testonly = True,
100 srcs = ["tmpdir.cc"],
101 hdrs = ["tmpdir.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800102 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhc243b422020-10-11 15:35:08 -0700103 visibility = ["//visibility:public"],
104)
Austin Schuh1ef01ef2021-02-07 20:40:36 -0800105
106cc_library(
107 name = "flatbuffer_eq",
108 testonly = True,
109 hdrs = [
110 "flatbuffer_eq.h",
111 ],
112 visibility = ["//visibility:public"],
113 deps = [
114 "//aos:flatbuffer_merge",
115 "//aos:flatbuffers",
116 "//aos:json_to_flatbuffer",
117 "@com_google_googletest//:gtest",
118 ],
119)