blob: 764ab9a60d0c65d58b0d3b02659d9f55f61b186a [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 Shelley248cbf82019-05-03 17:07:18 -050011]
12
Zane Shelley9faf73b2020-12-01 19:51:35 -060013gtest = dependency('gtest', main : true, required : false, method : 'system')
14
15if gtest.found()
16 foreach t : tests
17 test(t, executable(t.underscorify(), t + '.cpp', dependencies : gtest,
18 cpp_args : test_arg, include_directories : incdir))
19 endforeach
20
21 test('ffdc_file_test',
22 executable('ffdc_file_test', 'ffdc_file_test.cpp',
23 files('../util/ffdc_file.cpp',
24 '../util/temporary_file.cpp'),
25 dependencies : gtest,
26 cpp_args : test_arg,
27 include_directories : incdir))
28endif