Artem Senichev | e8837d5 | 2020-06-07 11:59:04 +0300 | [diff] [blame] | 1 | # Rules for building tests |
| 2 | |
| 3 | test( |
| 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', |
Nan Zhou | 042b5ba | 2021-06-18 09:32:45 -0700 | [diff] [blame] | 12 | 'buffer_service_test.cpp', |
| 13 | 'stream_service_test.cpp', |
Artem Senichev | e8837d5 | 2020-06-07 11:59:04 +0300 | [diff] [blame] | 14 | 'zlib_file_test.cpp', |
Nan Zhou | 042b5ba | 2021-06-18 09:32:45 -0700 | [diff] [blame] | 15 | '../src/buffer_service.cpp', |
Artem Senichev | e8837d5 | 2020-06-07 11:59:04 +0300 | [diff] [blame] | 16 | '../src/config.cpp', |
Nan Zhou | 042b5ba | 2021-06-18 09:32:45 -0700 | [diff] [blame] | 17 | '../src/dbus_loop.cpp', |
Artem Senichev | e8837d5 | 2020-06-07 11:59:04 +0300 | [diff] [blame] | 18 | '../src/file_storage.cpp', |
| 19 | '../src/host_console.cpp', |
| 20 | '../src/log_buffer.cpp', |
Nan Zhou | 042b5ba | 2021-06-18 09:32:45 -0700 | [diff] [blame] | 21 | '../src/stream_service.cpp', |
Artem Senichev | e8837d5 | 2020-06-07 11:59:04 +0300 | [diff] [blame] | 22 | '../src/zlib_exception.cpp', |
| 23 | '../src/zlib_file.cpp', |
| 24 | ], |
| 25 | dependencies: [ |
| 26 | dependency('gtest', main: true, disabler: true, required: build_tests), |
Nan Zhou | 042b5ba | 2021-06-18 09:32:45 -0700 | [diff] [blame] | 27 | dependency('gmock', disabler: true, required: build_tests), |
Artem Senichev | e8837d5 | 2020-06-07 11:59:04 +0300 | [diff] [blame] | 28 | dependency('zlib'), |
Nan Zhou | 042b5ba | 2021-06-18 09:32:45 -0700 | [diff] [blame] | 29 | dependency('phosphor-logging'), |
Artem Senichev | e8837d5 | 2020-06-07 11:59:04 +0300 | [diff] [blame] | 30 | ], |
Nan Zhou | 042b5ba | 2021-06-18 09:32:45 -0700 | [diff] [blame] | 31 | cpp_args : ['-DSTREAM_SERVICE', '-DBUFFER_SERVICE'], |
Artem Senichev | e8837d5 | 2020-06-07 11:59:04 +0300 | [diff] [blame] | 32 | include_directories: '../src', |
| 33 | ) |
| 34 | ) |