Zane Shelley | 0c44c2f | 2020-06-05 17:14:31 -0500 | [diff] [blame] | 1 | test_arg = [ |
| 2 | '-DTEST_TRACE', |
| 3 | ] |
| 4 | |
Ben Tyner | 9ae5ca4 | 2020-02-28 13:13:50 -0600 | [diff] [blame] | 5 | # end2end code exerciser for experiment and testing |
| 6 | subdir('end2end') |
| 7 | |
Zane Shelley | 248cbf8 | 2019-05-03 17:07:18 -0500 | [diff] [blame] | 8 | tests = [ |
Zane Shelley | d26298b | 2021-01-28 16:49:19 -0600 | [diff] [blame] | 9 | 'bin_stream_test', |
Zane Shelley | 982f172 | 2021-03-25 10:56:37 -0500 | [diff] [blame] | 10 | 'ffdc_file_test', |
Zane Shelley | 0b8368c | 2021-03-18 17:33:41 -0500 | [diff] [blame] | 11 | 'resolution_test', |
Zane Shelley | 248cbf8 | 2019-05-03 17:07:18 -0500 | [diff] [blame] | 12 | ] |
| 13 | |
Zane Shelley | 979e287 | 2021-09-20 22:46:06 -0500 | [diff] [blame] | 14 | analyzer_src = files( |
| 15 | '../analyzer/service_data.cpp', |
| 16 | ) |
| 17 | |
Zane Shelley | 9faf73b | 2020-12-01 19:51:35 -0600 | [diff] [blame] | 18 | gtest = dependency('gtest', main : true, required : false, method : 'system') |
| 19 | |
| 20 | if gtest.found() |
| 21 | foreach t : tests |
Zane Shelley | 979e287 | 2021-09-20 22:46:06 -0500 | [diff] [blame] | 22 | test(t, executable(t.underscorify(), [ t + '.cpp', analyzer_src ], |
Zane Shelley | 982f172 | 2021-03-25 10:56:37 -0500 | [diff] [blame] | 23 | link_with : [ util_lib ], |
Zane Shelley | 8af9e46 | 2021-03-11 10:44:28 -0600 | [diff] [blame] | 24 | dependencies : [ libhei_dep, gtest ], |
| 25 | cpp_args : test_arg, |
| 26 | include_directories : incdir)) |
Zane Shelley | 9faf73b | 2020-12-01 19:51:35 -0600 | [diff] [blame] | 27 | endforeach |
Zane Shelley | 9faf73b | 2020-12-01 19:51:35 -0600 | [diff] [blame] | 28 | endif |