1test_arg = [
2    '-DTEST_TRACE',
3]
4
5# end2end code exerciser for experiment and testing
6subdir('end2end')
7
8tests = [
9  'hello-world',
10  'bin_stream_test',
11  'service_data_test',
12]
13
14gtest = dependency('gtest', main : true, required : false, method : 'system')
15
16if gtest.found()
17    foreach t : tests
18        test(t, executable(t.underscorify(), t + '.cpp', dependencies : gtest,
19             cpp_args : test_arg, include_directories : incdir))
20    endforeach
21
22    test('ffdc_file_test',
23         executable('ffdc_file_test', 'ffdc_file_test.cpp',
24                    files('../util/ffdc_file.cpp',
25                          '../util/temporary_file.cpp'),
26                    dependencies : gtest,
27                    cpp_args : test_arg,
28                    include_directories : incdir))
29endif
30