mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Simplify meson for tests
This commit is contained in:
parent
c081919320
commit
a13b0abb7d
@ -1,23 +1,22 @@
|
|||||||
test_sources = files([
|
test_sources = files([
|
||||||
'test_file_helper.cpp',
|
'test_file_helper.cpp',
|
||||||
'test_file_logging.cpp',
|
'test_file_logging.cpp',
|
||||||
'test_daily_logger.cpp',
|
'test_daily_logger.cpp',
|
||||||
'test_misc.cpp',
|
'test_misc.cpp',
|
||||||
'test_pattern_formatter.cpp',
|
'test_pattern_formatter.cpp',
|
||||||
'test_async.cpp',
|
'test_async.cpp',
|
||||||
'test_registry.cpp',
|
'test_registry.cpp',
|
||||||
'test_macros.cpp',
|
'test_macros.cpp',
|
||||||
'utils.cpp',
|
'utils.cpp',
|
||||||
'main.cpp',
|
'main.cpp',
|
||||||
'test_mpmc_q.cpp',
|
'test_mpmc_q.cpp',
|
||||||
'test_dup_filter.cpp',
|
'test_dup_filter.cpp',
|
||||||
'test_fmt_helper.cpp',
|
'test_fmt_helper.cpp',
|
||||||
'test_stdout_api.cpp',
|
'test_stdout_api.cpp',
|
||||||
'test_backtrace.cpp',
|
'test_backtrace.cpp',
|
||||||
'test_create_dir.cpp'
|
'test_create_dir.cpp'
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
if not get_option('no_exceptions')
|
if not get_option('no_exceptions')
|
||||||
test_sources += 'test_errors.cpp'
|
test_sources += 'test_errors.cpp'
|
||||||
endif
|
endif
|
||||||
@ -38,13 +37,8 @@ endif
|
|||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
# --- Build the test executables ---
|
# --- Build the test executables ---
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
|
test_exe = executable('spdlog-utests', test_sources, dependencies: global_test_deps + [spdlog_dep])
|
||||||
|
test('test_spdlog', test_exe, is_parallel : false)
|
||||||
|
|
||||||
test_matrix = [
|
test_exe = executable('spdlog-utests-ho', test_sources, dependencies: global_test_deps + [spdlog_headeronly_dep])
|
||||||
['spdlog-utests', spdlog_dep],
|
test('test_spdlog-ho', test_exe, is_parallel : false)
|
||||||
['spdlog-utests-ho', spdlog_headeronly_dep],
|
|
||||||
]
|
|
||||||
|
|
||||||
foreach i : test_matrix
|
|
||||||
test_exe = executable(i[0], test_sources, dependencies: global_test_deps + [i[1]])
|
|
||||||
test('test_' + i[0], test_exe, is_parallel : false)
|
|
||||||
endforeach
|
|
Loading…
Reference in New Issue
Block a user