Jie Yang | b988dbb | 2021-08-06 18:34:49 -0700 | [diff] [blame] | 1 | gtest = dependency('gtest', main: true, disabler: true, required: get_option('tests')) |
| 2 | gmock = dependency('gmock', disabler: true, required: get_option('tests')) |
| 3 | |
Jie Yang | b988dbb | 2021-08-06 18:34:49 -0700 | [diff] [blame] | 4 | tests = [ |
Willy Tu | 7f10780 | 2023-11-06 23:05:25 -0800 | [diff] [blame] | 5 | 'binarystore_unittest', |
Jie Yang | b988dbb | 2021-08-06 18:34:49 -0700 | [diff] [blame] | 6 | 'parse_config_unittest', |
| 7 | 'sys_file_unittest', |
| 8 | 'handler_unittest', |
| 9 | 'handler_open_unittest', |
| 10 | 'handler_readwrite_unittest', |
| 11 | 'handler_commit_unittest', |
| 12 | 'handler_stat_unittest', |
| 13 | ] |
| 14 | |
| 15 | foreach t : tests |
| 16 | test( |
| 17 | t, |
| 18 | executable( |
| 19 | t.underscorify(), |
| 20 | t + '.cpp', |
| 21 | implicit_include_directories: false, |
William A. Kennington III | 7e14586 | 2024-02-01 15:56:33 -0800 | [diff] [blame^] | 22 | dependencies: [binarystoreblob_dep, binaryblob_proto_dep, gtest, gmock])) |
Jie Yang | b988dbb | 2021-08-06 18:34:49 -0700 | [diff] [blame] | 23 | endforeach |