blob: ede116050966c8e82b496e5ed0349be0d7504929 [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",
John Park33858a32018-09-28 23:05:48 -070030 "//aos/logging:implementations",
Brian Silverman1463c092020-10-30 17:28:24 -070031 "//aos/stl_mutex",
Austin Schuha4f69d62020-02-28 13:58:14 -080032 "@com_google_absl//absl/base",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070033 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050034)
35
36cc_test(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070037 name = "test_logging_test",
38 srcs = [
39 "test_logging_test.cc",
40 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080041 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -070042 deps = [
43 ":googletest",
44 ":test_logging",
John Park33858a32018-09-28 23:05:48 -070045 "//aos/logging",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070046 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050047)
48
49cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070050 name = "prevent_exit",
51 testonly = True,
52 srcs = [
53 "prevent_exit.cc",
54 ],
55 hdrs = [
56 "prevent_exit.h",
57 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080058 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -070059 visibility = ["//visibility:public"],
60 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -070061 "@com_github_google_glog//:glog",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070062 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050063)
64
65cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070066 name = "test_shm",
67 testonly = True,
68 srcs = [
69 "test_shm.cc",
70 ],
71 hdrs = [
72 "test_shm.h",
73 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080074 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -070075 visibility = ["//visibility:public"],
76 deps = [
77 ":test_logging",
John Park398c74a2018-10-20 21:17:39 -070078 "//aos/ipc_lib:shared_mem",
Austin Schuh6b73f0d2019-01-07 17:03:03 -080079 "//aos/logging",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070080 ],
Brian Silverman258b9172015-09-19 14:32:57 -040081)
Brian Silverman33d0d6e2016-05-15 23:33:39 -070082
83cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070084 name = "random_seed",
85 testonly = True,
86 srcs = [
87 "random_seed.cc",
88 ],
89 hdrs = [
90 "random_seed.h",
91 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080092 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -070093 visibility = ["//visibility:public"],
Brian Silverman33d0d6e2016-05-15 23:33:39 -070094)
Austin Schuhc243b422020-10-11 15:35:08 -070095
96cc_library(
97 name = "tmpdir",
98 testonly = True,
99 srcs = ["tmpdir.cc"],
100 hdrs = ["tmpdir.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800101 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhc243b422020-10-11 15:35:08 -0700102 visibility = ["//visibility:public"],
103)
Austin Schuh1ef01ef2021-02-07 20:40:36 -0800104
105cc_library(
106 name = "flatbuffer_eq",
107 testonly = True,
108 hdrs = [
109 "flatbuffer_eq.h",
110 ],
111 visibility = ["//visibility:public"],
112 deps = [
113 "//aos:flatbuffer_merge",
114 "//aos:flatbuffers",
115 "//aos:json_to_flatbuffer",
116 "@com_google_googletest//:gtest",
117 ],
118)
Austin Schuh373f1762021-06-02 21:07:09 -0700119
120cc_library(
121 name = "path",
122 srcs = ["path.cc"],
123 hdrs = ["path.h"],
124 target_compatible_with = ["@platforms//os:linux"],
125 visibility = ["//visibility:public"],
126 deps = [
127 "@com_google_absl//absl/strings",
128 ],
129)