Artem Senichev | e8837d5 | 2020-06-07 11:59:04 +0300 | [diff] [blame] | 1 | # Rules for building tests |
| 2 | |
| 3 | test( |
Patrick Williams | e0bb03b | 2025-02-01 08:36:38 -0500 | [diff] [blame^] | 4 | 'hostlogger', |
| 5 | executable( |
| 6 | 'hostlogger_test', |
| 7 | [ |
| 8 | 'config_test.cpp', |
| 9 | 'file_storage_test.cpp', |
| 10 | 'host_console_test.cpp', |
| 11 | 'log_buffer_test.cpp', |
| 12 | 'buffer_service_test.cpp', |
| 13 | 'stream_service_test.cpp', |
| 14 | 'zlib_file_test.cpp', |
| 15 | '../src/buffer_service.cpp', |
| 16 | '../src/config.cpp', |
| 17 | '../src/dbus_loop.cpp', |
| 18 | '../src/file_storage.cpp', |
| 19 | '../src/host_console.cpp', |
| 20 | '../src/log_buffer.cpp', |
| 21 | '../src/stream_service.cpp', |
| 22 | '../src/zlib_exception.cpp', |
| 23 | '../src/zlib_file.cpp', |
| 24 | ], |
| 25 | dependencies: [ |
| 26 | dependency( |
| 27 | 'gtest', |
| 28 | main: true, |
| 29 | disabler: true, |
| 30 | required: build_tests, |
| 31 | ), |
| 32 | dependency('gmock', disabler: true, required: build_tests), |
| 33 | dependency('zlib'), |
| 34 | dependency('phosphor-logging'), |
| 35 | ], |
| 36 | cpp_args: ['-DSTREAM_SERVICE', '-DBUFFER_SERVICE'], |
| 37 | include_directories: '../src', |
| 38 | ), |
Artem Senichev | e8837d5 | 2020-06-07 11:59:04 +0300 | [diff] [blame] | 39 | ) |