blob: 4f2fc835b93578978c11e966b8c28fd76e655969 [file] [log] [blame]
Brian Silverman258b9172015-09-19 14:32:57 -04001cc_library(
2 name = 'googletest',
3 visibility = ['//visibility:public'],
4 srcs = [
5 'gtest_main.cc',
6 ],
7 deps = [
8 '//third_party/googletest',
9 ],
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050010 testonly = True,
11)
12
13cc_library(
14 name = 'test_logging',
15 visibility = ['//visibility:public'],
16 srcs = [
17 'test_logging.cc',
18 ],
19 hdrs = [
20 'test_logging.h',
21 ],
22 deps = [
23 ':googletest',
24 '//aos/common/logging:implementations',
Sabina Davis2ed5ea22017-09-26 22:27:42 -070025 '//aos:once',
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050026 '//aos/common:mutex',
27 ],
28 testonly = True,
29)
30
31cc_test(
32 name = 'test_logging_test',
33 srcs = [
34 'test_logging_test.cc',
35 ],
36 deps = [
37 ':googletest',
38 ':test_logging',
39 '//aos/common/logging',
40 ],
41)
42
43cc_library(
44 name = 'prevent_exit',
45 visibility = ['//visibility:public'],
46 srcs = [
47 'prevent_exit.cc',
48 ],
49 hdrs = [
50 'prevent_exit.h',
51 ],
52 deps = [
53 '//aos/common/logging',
54 ],
55 testonly = True,
56)
57
58cc_library(
59 name = 'test_shm',
60 visibility = ['//visibility:public'],
61 srcs = [
62 'test_shm.cc',
63 ],
64 hdrs = [
65 'test_shm.h',
66 ],
67 deps = [
68 '//aos/common:queues',
69 '//aos/linux_code/ipc_lib:shared_mem',
70 '//aos/common/logging',
71 ':test_logging',
72 ],
73 testonly = True,
Brian Silverman258b9172015-09-19 14:32:57 -040074)
Brian Silverman33d0d6e2016-05-15 23:33:39 -070075
76cc_library(
77 name = 'random_seed',
78 visibility = ['//visibility:public'],
79 srcs = [
80 'random_seed.cc',
81 ],
82 hdrs = [
83 'random_seed.h',
84 ],
85 testonly = True,
86)