2020-08-21 23:50:56 +00:00
|
|
|
boost_dep = dependency('boost', modules: ['log'])
|
|
|
|
|
2020-08-21 20:07:39 +00:00
|
|
|
url_tests = executable('url_tests',
|
|
|
|
'../../restc-cpp/tests/unit/UrlTests.cpp',
|
|
|
|
dependencies: [restc_cpp_dep],
|
|
|
|
include_directories: [lest_inc],
|
|
|
|
)
|
|
|
|
|
|
|
|
json_serialize_tests = executable('json_serialize_tests',
|
|
|
|
'../../restc-cpp/tests/unit/JsonSerializeTests.cpp',
|
2020-08-21 23:50:56 +00:00
|
|
|
dependencies: [restc_cpp_dep, boost_dep],
|
2020-08-21 20:07:39 +00:00
|
|
|
include_directories: [lest_inc],
|
|
|
|
)
|
|
|
|
|
|
|
|
json_iostream_tests = executable('json_iostream_tests',
|
|
|
|
'../../restc-cpp/tests/unit/Iostream2JsonTests.cpp',
|
2020-08-21 23:50:56 +00:00
|
|
|
dependencies: [restc_cpp_dep, boost_dep],
|
2020-08-21 20:07:39 +00:00
|
|
|
include_directories: [lest_inc],
|
|
|
|
)
|
|
|
|
|
|
|
|
http_reply_tests = executable('http_reply_tests',
|
|
|
|
'../../restc-cpp/tests/unit/HttpReplyTests.cpp',
|
2020-08-21 23:50:56 +00:00
|
|
|
dependencies: [restc_cpp_dep, boost_dep],
|
2020-08-21 20:07:39 +00:00
|
|
|
include_directories: [lest_inc],
|
|
|
|
)
|
|
|
|
|
|
|
|
async_sleep_tests = executable('async_sleep_tests',
|
|
|
|
'../../restc-cpp/tests/unit/AsyncSleepTests.cpp',
|
2020-08-21 23:50:56 +00:00
|
|
|
dependencies: [restc_cpp_dep, boost_dep],
|
2020-08-21 20:07:39 +00:00
|
|
|
include_directories: [lest_inc],
|
|
|
|
)
|
|
|
|
|
|
|
|
request_builder_tests = executable('request_builder_tests',
|
|
|
|
'../../restc-cpp/tests/unit/RequestBuilder.cpp',
|
|
|
|
dependencies: [restc_cpp_dep],
|
|
|
|
include_directories: [lest_inc],
|
|
|
|
)
|
|
|
|
|
|
|
|
test('url_tests', url_tests)
|
|
|
|
test('json_serialize_tests', json_serialize_tests)
|
|
|
|
test('json_iostream_tests', json_iostream_tests)
|
|
|
|
test('http_reply_tests', http_reply_tests)
|
|
|
|
test('async_sleep_tests', async_sleep_tests)
|
|
|
|
test('request_builder_tests', request_builder_tests)
|