blob: 94867736a5585440c90a4c1c4b3d2a702be3cae6 [file] [log] [blame]
Zane Shelley0c44c2f2020-06-05 17:14:31 -05001test_arg = [
2 '-DTEST_TRACE',
3]
4
Ben Tyner9ae5ca42020-02-28 13:13:50 -06005# end2end code exerciser for experiment and testing
6subdir('end2end')
7
Zane Shelley248cbf82019-05-03 17:07:18 -05008tests = [
9 'hello-world',
Zane Shelleyd26298b2021-01-28 16:49:19 -060010 'bin_stream_test',
Zane Shelleyf685afd2021-02-15 15:39:44 -060011 'service_data_test',
Zane Shelley248cbf82019-05-03 17:07:18 -050012]
13
Zane Shelley9faf73b2020-12-01 19:51:35 -060014gtest = dependency('gtest', main : true, required : false, method : 'system')
15
16if gtest.found()
17 foreach t : tests
Zane Shelley8af9e462021-03-11 10:44:28 -060018 test(t, executable(t.underscorify(), t + '.cpp',
19 dependencies : [ libhei_dep, gtest ],
20 cpp_args : test_arg,
21 include_directories : incdir))
Zane Shelley9faf73b2020-12-01 19:51:35 -060022 endforeach
23
24 test('ffdc_file_test',
25 executable('ffdc_file_test', 'ffdc_file_test.cpp',
26 files('../util/ffdc_file.cpp',
27 '../util/temporary_file.cpp'),
28 dependencies : gtest,
29 cpp_args : test_arg,
30 include_directories : incdir))
31endif