William A. Kennington III | d963adb | 2021-06-15 18:24:00 -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 | |
| 4 | tests = [ |
| 5 | 'ipmi_close_unittest', |
| 6 | 'ipmi_commit_unittest', |
| 7 | 'ipmi_delete_unittest', |
| 8 | 'ipmi_enumerate_unittest', |
| 9 | 'ipmi_getcount_unittest', |
| 10 | 'ipmi_open_unittest', |
| 11 | 'ipmi_read_unittest', |
| 12 | 'ipmi_sessionstat_unittest', |
| 13 | 'ipmi_stat_unittest', |
| 14 | 'ipmi_unittest', |
| 15 | 'ipmi_validate_unittest', |
| 16 | 'ipmi_write_unittest', |
| 17 | 'ipmi_writemeta_unittest', |
| 18 | 'manager_close_unittest', |
| 19 | 'manager_commit_unittest', |
| 20 | 'manager_delete_unittest', |
| 21 | 'manager_expire_unittest', |
| 22 | 'manager_getsession_unittest', |
| 23 | 'manager_open_unittest', |
| 24 | 'manager_read_unittest', |
| 25 | 'manager_sessionstat_unittest', |
| 26 | 'manager_stat_unittest', |
| 27 | 'manager_unittest', |
| 28 | 'manager_write_unittest', |
| 29 | 'manager_writemeta_unittest', |
| 30 | 'process_unittest', |
| 31 | 'utils_unittest', |
| 32 | ] |
| 33 | |
| 34 | foreach t : tests |
| 35 | test( |
| 36 | t, |
| 37 | executable( |
| 38 | t.underscorify(), |
| 39 | t + '.cpp', |
Willy Tu | 067ece1 | 2022-06-16 02:07:06 -0700 | [diff] [blame] | 40 | 'helper.cpp', |
William A. Kennington III | d963adb | 2021-06-15 18:24:00 -0700 | [diff] [blame] | 41 | implicit_include_directories: false, |
| 42 | dependencies: [blob_manager_dep, gtest, gmock])) |
| 43 | endforeach |