Import cmake unit test to restc-cpp
This commit is contained in:
parent
c1598fedb1
commit
6dc4c3133f
3 changed files with 45 additions and 1 deletions
|
@ -74,5 +74,6 @@ restc_cpp_dep = declare_dependency(
|
|||
)
|
||||
|
||||
if get_option('restc_cpp_with_unit_tests')
|
||||
#subdir('tests')
|
||||
lest_inc = include_directories('subprojects/lest/include')
|
||||
subdir('tests')
|
||||
endif
|
||||
|
|
1
subprojects/restc-cpp/tests/meson.build
Normal file
1
subprojects/restc-cpp/tests/meson.build
Normal file
|
@ -0,0 +1 @@
|
|||
subdir('unit')
|
42
subprojects/restc-cpp/tests/unit/meson.build
Normal file
42
subprojects/restc-cpp/tests/unit/meson.build
Normal file
|
@ -0,0 +1,42 @@
|
|||
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',
|
||||
dependencies: [restc_cpp_dep],
|
||||
include_directories: [lest_inc],
|
||||
)
|
||||
|
||||
json_iostream_tests = executable('json_iostream_tests',
|
||||
'../../restc-cpp/tests/unit/Iostream2JsonTests.cpp',
|
||||
dependencies: [restc_cpp_dep],
|
||||
include_directories: [lest_inc],
|
||||
)
|
||||
|
||||
http_reply_tests = executable('http_reply_tests',
|
||||
'../../restc-cpp/tests/unit/HttpReplyTests.cpp',
|
||||
dependencies: [restc_cpp_dep],
|
||||
include_directories: [lest_inc],
|
||||
)
|
||||
|
||||
async_sleep_tests = executable('async_sleep_tests',
|
||||
'../../restc-cpp/tests/unit/AsyncSleepTests.cpp',
|
||||
dependencies: [restc_cpp_dep],
|
||||
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)
|
Loading…
Reference in a new issue