Brian Silverman | 258b917 | 2015-09-19 14:32:57 -0400 | [diff] [blame] | 1 | cc_library( |
| 2 | name = 'googletest', |
| 3 | visibility = ['//visibility:public'], |
| 4 | srcs = [ |
| 5 | 'gtest_main.cc', |
| 6 | ], |
| 7 | deps = [ |
| 8 | '//third_party/googletest', |
| 9 | ], |
Brian Silverman | f5f8d8e | 2015-12-06 18:39:12 -0500 | [diff] [blame^] | 10 | testonly = True, |
| 11 | ) |
| 12 | |
| 13 | cc_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', |
| 25 | '//aos/common:once', |
| 26 | '//aos/common:mutex', |
| 27 | ], |
| 28 | testonly = True, |
| 29 | ) |
| 30 | |
| 31 | cc_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 | |
| 43 | cc_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 | |
| 58 | cc_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 Silverman | 258b917 | 2015-09-19 14:32:57 -0400 | [diff] [blame] | 74 | ) |