blob: 33794a58fe18bcd0b0098c535fe6ae445c51d8f7 [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 ],
Brian Silverman7a7c24d2018-09-01 17:49:09 -07007 visibility = ["//visibility:public"],
8 deps = [
Austin Schuh2001aa42018-10-29 22:57:02 -07009 "//third_party/googletest:gtest",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070010 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050011)
12
13cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070014 name = "test_logging",
15 testonly = True,
16 srcs = [
17 "test_logging.cc",
18 ],
19 hdrs = [
20 "test_logging.h",
21 ],
22 visibility = ["//visibility:public"],
23 deps = [
24 ":googletest",
25 "//aos:once",
John Park33858a32018-09-28 23:05:48 -070026 "//aos/mutex:mutex",
27 "//aos/logging:implementations",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070028 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050029)
30
31cc_test(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070032 name = "test_logging_test",
33 srcs = [
34 "test_logging_test.cc",
35 ],
36 deps = [
37 ":googletest",
38 ":test_logging",
John Park33858a32018-09-28 23:05:48 -070039 "//aos/logging",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070040 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050041)
42
43cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070044 name = "prevent_exit",
45 testonly = True,
46 srcs = [
47 "prevent_exit.cc",
48 ],
49 hdrs = [
50 "prevent_exit.h",
51 ],
52 visibility = ["//visibility:public"],
53 deps = [
John Park33858a32018-09-28 23:05:48 -070054 "//aos/logging",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070055 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050056)
57
58cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070059 name = "test_shm",
60 testonly = True,
61 srcs = [
62 "test_shm.cc",
63 ],
64 hdrs = [
65 "test_shm.h",
66 ],
67 visibility = ["//visibility:public"],
68 deps = [
69 ":test_logging",
John Park33858a32018-09-28 23:05:48 -070070 "//aos:queues",
71 "//aos/logging",
John Park398c74a2018-10-20 21:17:39 -070072 "//aos/ipc_lib:shared_mem",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070073 ],
Brian Silverman258b9172015-09-19 14:32:57 -040074)
Brian Silverman33d0d6e2016-05-15 23:33:39 -070075
76cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070077 name = "random_seed",
78 testonly = True,
79 srcs = [
80 "random_seed.cc",
81 ],
82 hdrs = [
83 "random_seed.h",
84 ],
85 visibility = ["//visibility:public"],
Brian Silverman33d0d6e2016-05-15 23:33:39 -070086)