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 = [
|
2024-02-17 21:05:30 +01:00
|
|
|
'parser1_1',
|
|
|
|
'parser1_2',
|
|
|
|
'parser1_3',
|
|
|
|
'parser1_4',
|
Updated and added new functions related to headers, resolved ODR issues, resolved clang-tidy warnings (#50)
* Bugfix/odr violations (#47)
* Make common non-member functions inline, remove unreachable line from get_line_buffer
* [skip ci] Fix namespace comments
* Resolve clang-tidy warnings (#48)
* Resolve clang-tidy warnings, update single_header_generator.py
* Update single header test, resolve additional clang-tidy warnings
* Add header and raw_header methods, update header usage methods error handling, write new and update existing unit tests
* Update parser error messages, fix parser tests
* Add [[nodiscard]] where fitting, update unit tests (#49)
* Add const where fitting, make splitter class members private, add #pragma once to ssp.hpp
* Modify header parsing for empty headers, update old and add new tests for header parsing
* Enable the parser to accept a header with one empty field, update unit tests
* Fix test CMakeLists.txt typo
2024-03-14 17:22:57 +01:00
|
|
|
'parser1_5',
|
2023-08-03 23:04:05 +02:00
|
|
|
'splitter',
|
|
|
|
'converter',
|
|
|
|
'extractions',
|
2023-08-03 23:09:25 +02:00
|
|
|
'parser2_1',
|
|
|
|
'parser2_2',
|
|
|
|
'parser2_3',
|
|
|
|
'parser2_4',
|
2024-02-19 00:04:09 +01:00
|
|
|
'parser2_5',
|
|
|
|
'parser2_6',
|
2023-08-03 23:04:05 +02:00
|
|
|
'extractions_without_fast_float',
|
|
|
|
]
|
|
|
|
|
|
|
|
foreach name : tests
|
2023-08-04 16:48:07 +02:00
|
|
|
test_name = 'test_' + name
|
2023-08-03 23:04:05 +02:00
|
|
|
|
|
|
|
exe = executable(
|
2023-08-04 16:48:07 +02:00
|
|
|
test_name,
|
|
|
|
test_name + '.cpp',
|
2023-08-03 23:04:05 +02:00
|
|
|
dependencies: [doctest_dep, ssp_dep]
|
|
|
|
)
|
2021-01-19 20:26:36 +01:00
|
|
|
|
2023-08-04 16:48:07 +02:00
|
|
|
test(test_name, exe, timeout: 60)
|
2023-08-03 23:04:05 +02:00
|
|
|
endforeach
|
2021-01-19 20:26:36 +01:00
|
|
|
|