mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-16 09:47:56 +00:00
Compare commits
3 Commits
75c15e8028
...
67606e2460
Author | SHA1 | Date | |
---|---|---|---|
|
67606e2460 | ||
|
b6c6b30c0d | ||
|
e5935f0ced |
@ -1,14 +0,0 @@
|
||||
benchmark = dependency('benchmark')
|
||||
|
||||
bench_matrix = [
|
||||
['bench', [spdlog_dep], []],
|
||||
['async_bench', [spdlog_dep], []],
|
||||
['formatter-bench', [spdlog_dep, benchmark], ['all']],
|
||||
['latency', [spdlog_dep, benchmark], []],
|
||||
]
|
||||
|
||||
foreach i : bench_matrix
|
||||
bench_exe = executable(i[0], i[0] + '.cpp', dependencies: i[1])
|
||||
benchmark('bench_' + i[0], bench_exe, args: i[2])
|
||||
endforeach
|
||||
|
@ -1,4 +0,0 @@
|
||||
executable('example', 'example.cpp', dependencies: spdlog_dep)
|
||||
executable('example_header_only', 'example.cpp', dependencies: spdlog_headeronly_dep)
|
||||
|
||||
|
@ -1,49 +0,0 @@
|
||||
test_sources = files([
|
||||
'test_file_helper.cpp',
|
||||
'test_file_logging.cpp',
|
||||
'test_daily_logger.cpp',
|
||||
'test_misc.cpp',
|
||||
'test_pattern_formatter.cpp',
|
||||
'test_async.cpp',
|
||||
'test_registry.cpp',
|
||||
'test_macros.cpp',
|
||||
'utils.cpp',
|
||||
'main.cpp',
|
||||
'test_mpmc_q.cpp',
|
||||
'test_dup_filter.cpp',
|
||||
'test_fmt_helper.cpp',
|
||||
'test_stdout_api.cpp',
|
||||
'test_backtrace.cpp',
|
||||
'test_create_dir.cpp',
|
||||
'test_cfg.cpp',
|
||||
])
|
||||
|
||||
if not get_option('no_exceptions')
|
||||
test_sources += 'test_errors.cpp'
|
||||
endif
|
||||
|
||||
global_test_deps = []
|
||||
|
||||
# -----------------------------------------------------
|
||||
# --- Add the systemd test if libsystemd is found ---
|
||||
# -----------------------------------------------------
|
||||
|
||||
systemd_dep = dependency('libsystemd', required: false)
|
||||
|
||||
if systemd_dep.found()
|
||||
test_sources += 'test_systemd.cpp'
|
||||
global_test_deps += systemd_dep
|
||||
endif
|
||||
|
||||
# --------------------------------------
|
||||
# --- Build the test executables ---
|
||||
# --------------------------------------
|
||||
if get_option('enable_tests')
|
||||
test_exe = executable('spdlog-utests', test_sources, dependencies: global_test_deps + [spdlog_dep])
|
||||
test('test_spdlog', test_exe, is_parallel : false)
|
||||
endif
|
||||
|
||||
if get_option('enable_tests_ho')
|
||||
test_exe = executable('spdlog-utests-ho', test_sources, dependencies: global_test_deps + [spdlog_headeronly_dep])
|
||||
test('test_spdlog-ho', test_exe, is_parallel : false)
|
||||
endif
|
Loading…
Reference in New Issue
Block a user