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 = [ |
| 9 | 'hello-world', |
| 10 | ] |
| 11 | |
Zane Shelley | 9faf73b | 2020-12-01 19:51:35 -0600 | [diff] [blame] | 12 | gtest = dependency('gtest', main : true, required : false, method : 'system') |
| 13 | |
| 14 | if gtest.found() |
| 15 | foreach t : tests |
| 16 | test(t, executable(t.underscorify(), t + '.cpp', dependencies : gtest, |
| 17 | cpp_args : test_arg, include_directories : incdir)) |
| 18 | endforeach |
| 19 | |
| 20 | test('ffdc_file_test', |
| 21 | executable('ffdc_file_test', 'ffdc_file_test.cpp', |
| 22 | files('../util/ffdc_file.cpp', |
| 23 | '../util/temporary_file.cpp'), |
| 24 | dependencies : gtest, |
| 25 | cpp_args : test_arg, |
| 26 | include_directories : incdir)) |
| 27 | endif |