2023-02-01 00:52:23 +01:00
|
|
|
doctest_dep = dependency('doctest')
|
2023-08-03 23:04:05 +02:00
|
|
|
add_project_arguments('-DDOCTEST_CONFIG_IMPLEMENT_WITH_MAIN', language: 'cpp')
|
|
|
|
|
|
|
|
tests = [
|
|
|
|
'parser',
|
|
|
|
'splitter',
|
|
|
|
'converter',
|
|
|
|
'extractions',
|
|
|
|
'parser2_segment1',
|
|
|
|
'parser2_segment2',
|
|
|
|
'parser2_segment3',
|
|
|
|
'parser2_segment4',
|
|
|
|
'extractions_without_fast_float',
|
|
|
|
]
|
|
|
|
|
|
|
|
foreach name : tests
|
|
|
|
|
|
|
|
exe = executable(
|
|
|
|
name,
|
|
|
|
'test_' + name + '.cpp',
|
|
|
|
dependencies: [doctest_dep, ssp_dep]
|
|
|
|
)
|
2021-01-19 20:26:36 +01:00
|
|
|
|
2023-08-03 23:04:05 +02:00
|
|
|
test('test_' + name, exe, timeout: 60)
|
|
|
|
endforeach
|
2021-01-19 20:26:36 +01:00
|
|
|
|