blob: 584a294d072a0693aca61268d8db2a9059b20698 [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 Shelley0b8368c2021-03-18 17:33:41 -050011 'resolution_test',
Zane Shelleyf685afd2021-02-15 15:39:44 -060012 'service_data_test',
Zane Shelley248cbf82019-05-03 17:07:18 -050013]
14
Zane Shelley9faf73b2020-12-01 19:51:35 -060015gtest = dependency('gtest', main : true, required : false, method : 'system')
16
17if gtest.found()
18 foreach t : tests
Zane Shelley8af9e462021-03-11 10:44:28 -060019 test(t, executable(t.underscorify(), t + '.cpp',
20 dependencies : [ libhei_dep, gtest ],
21 cpp_args : test_arg,
22 include_directories : incdir))
Zane Shelley9faf73b2020-12-01 19:51:35 -060023 endforeach
24
25 test('ffdc_file_test',
26 executable('ffdc_file_test', 'ffdc_file_test.cpp',
27 files('../util/ffdc_file.cpp',
28 '../util/temporary_file.cpp'),
29 dependencies : gtest,
30 cpp_args : test_arg,
31 include_directories : incdir))
32endif