blob: ed410b11b74333c59dac599372736f3adb2145dc [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",
Austin Schuh6b73f0d2019-01-07 17:03:03 -080010 "@com_github_gflags_gflags//:gflags",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070011 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050012)
13
14cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070015 name = "test_logging",
16 testonly = True,
17 srcs = [
18 "test_logging.cc",
19 ],
20 hdrs = [
21 "test_logging.h",
22 ],
23 visibility = ["//visibility:public"],
24 deps = [
25 ":googletest",
26 "//aos:once",
John Park33858a32018-09-28 23:05:48 -070027 "//aos/logging:implementations",
Austin Schuh6b73f0d2019-01-07 17:03:03 -080028 "//aos/mutex",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070029 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050030)
31
32cc_test(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070033 name = "test_logging_test",
34 srcs = [
35 "test_logging_test.cc",
36 ],
37 deps = [
38 ":googletest",
39 ":test_logging",
John Park33858a32018-09-28 23:05:48 -070040 "//aos/logging",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070041 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050042)
43
44cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070045 name = "prevent_exit",
46 testonly = True,
47 srcs = [
48 "prevent_exit.cc",
49 ],
50 hdrs = [
51 "prevent_exit.h",
52 ],
53 visibility = ["//visibility:public"],
54 deps = [
John Park33858a32018-09-28 23:05:48 -070055 "//aos/logging",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070056 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050057)
58
59cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070060 name = "test_shm",
61 testonly = True,
62 srcs = [
63 "test_shm.cc",
64 ],
65 hdrs = [
66 "test_shm.h",
67 ],
68 visibility = ["//visibility:public"],
69 deps = [
70 ":test_logging",
John Park33858a32018-09-28 23:05:48 -070071 "//aos:queues",
John Park398c74a2018-10-20 21:17:39 -070072 "//aos/ipc_lib:shared_mem",
Austin Schuh6b73f0d2019-01-07 17:03:03 -080073 "//aos/logging",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070074 ],
Brian Silverman258b9172015-09-19 14:32:57 -040075)
Brian Silverman33d0d6e2016-05-15 23:33:39 -070076
77cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070078 name = "random_seed",
79 testonly = True,
80 srcs = [
81 "random_seed.cc",
82 ],
83 hdrs = [
84 "random_seed.h",
85 ],
86 visibility = ["//visibility:public"],
Brian Silverman33d0d6e2016-05-15 23:33:39 -070087)