Commit Graph

348 Commits

Author SHA1 Message Date
gabime
d1819f5f76 clang-format 2020-03-15 18:51:52 +02:00
gabime
7efdcc26fe CMakeLists.txt: use same policy as fmt 2020-03-15 18:41:34 +02:00
gabime
3ab3970dd2 CMakeLists.txt: use same policy as fmt 2020-03-15 18:40:42 +02:00
gabime
d14b8a9ad6 Merge branch 'hexdump' of https://github.com/ngugcx/spdlog into ngugcx-hexdump 2020-03-15 16:27:58 +02:00
ngugcx
0f87ba6c93 fix a test case error. 2020-03-15 20:21:58 +08:00
ngugcx
f5313f92f1 Enhance to_hex like the unix command hexdump. 2020-03-15 12:01:31 +08:00
gabime
efd73ac956 Merge remote-tracking branch 'origin/v1.x' into conf-env3 2020-03-06 15:10:24 +02:00
gabime
b7d7334451 Renamed level loaders 2020-03-06 15:09:46 +02:00
gabime
817d2764b6 Fix bench tidy warning 2020-03-03 23:53:28 +02:00
gabime
c10be7eaec merge with v1.x 2020-02-26 18:13:13 +02:00
gabime
5370443ece clang-format 2020-02-10 17:13:41 +02:00
Gabi Melman
12f36debae Merge pull request #1414 from BioDataAnalysis/bda_tests_support_empty_eol
Make tests support empty SPDLOG_EOL
2020-02-10 13:12:07 +02:00
Mario Emmenlauer
87acec6a91 Make tests support empty SPDLOG_EOL with new helper method require_message_count() 2020-02-10 11:26:48 +01:00
Mario Emmenlauer
58a5e654f9 tests/utils.cpp: Use binary mode for reading test results, to preserve EOL 2020-02-10 11:26:48 +01:00
gabime
601bdfb1b4 Minor cleanup 2020-02-10 00:53:01 +02:00
gabime
90454a93b2 Update test_eventlog.cpp 2020-02-10 00:37:48 +02:00
Gabi Melman
fccee959b1
Merge pull request #1418 from ban-dana/v1.x
Add eventlog_sink for logging to Windows Event Log (local only)
2020-02-09 23:27:00 +02:00
bandana2004
4bece787c8 Refactor Event Log sink 2020-02-09 15:12:30 +02:00
Michael R. Crusoe
a8d6e60ec6
Enable running the tests against an installed copy of spdlog 2020-02-07 15:39:26 +01:00
tt4g
eb234bbf91 Don't run spdlog-utests and spdlog-utests-ho in parallel
spdlog-utests and spdlog-utests-ho use the same log output directory, so some tests will randomly fail when run in parallel.
2020-02-07 22:20:54 +09:00
bandana2004
db1a221427 Add eventlog_sink for logging to Windows Event Log (local only). 2020-02-07 15:04:47 +02:00
Mario Emmenlauer
622f5eb967 tests/utils.h: removed duplicate entry for count_lines() 2020-02-07 10:22:58 +01:00
gabime
284e6a80ac Fixed cfg tests 2019-12-22 22:33:19 +02:00
gabime
877eee408e renamed loaders with cfg 2019-12-22 20:40:19 +02:00
Gabi Melman
2544fca519
Update test_loaders.cpp 2019-12-22 08:58:36 +02:00
Gabi Melman
0b55e2c332
Update test_loaders.cpp 2019-12-22 00:17:32 +02:00
gabime
b105046202 Fixed loaders tests 2019-12-21 20:15:18 +02:00
gabime
de20255c71 wip 2019-12-21 20:01:25 +02:00
gabime
1a1c37db7c wip 2019-12-21 19:59:23 +02:00
gabime
a87700a28c wip 2019-12-21 19:52:37 +02:00
gabime
1f8e9ad0fc renamed cfg namespace to loaders 2019-12-21 19:45:14 +02:00
gabime
e13e978af4 added loaders tests 2019-12-21 19:25:54 +02:00
gabime
28e334c728 Fixed tests 2019-12-21 18:52:35 +02:00
gabime
3a61dcd360 Aceept also 'warn' string in level::from_str() 2019-12-13 16:22:20 +02:00
gabime
d25fb08a75 clang-format 2019-11-29 12:50:54 +02:00
gabime
cee35f7d24 Added truncate flag (issue #1297) 2019-11-14 12:28:23 +02:00
gabime
436ce16e79 Updated meson tests build 2019-11-05 00:31:36 +02:00
gabime
a13b0abb7d Simplify meson for tests 2019-11-04 23:29:05 +02:00
gabime
21f7f78130 Update tests CMakeLists.txt 2019-11-04 23:16:44 +02:00
gabime
bb1b24c178 Fixed #1295 2019-11-04 23:16:21 +02:00
gabime
10116b7717 Removed SPDLOG_NO_DATETIME option 2019-11-04 17:43:30 +02:00
gabime
18edb8bd63 Added tweakme options to CMakeLists.txt 2019-11-04 17:19:18 +02:00
gabime
e3699070a4 clang-format 2019-11-03 17:07:37 +02:00
gabime
cae6c9ab36 Removed lazy argument evaluation from macros 2019-11-03 15:19:59 +02:00
Paul Kunysch
eb4a169cfb Improve log macros 2019-11-02 09:40:37 +01:00
gabime
2b8afb38b7 Revert pull #1288 2019-10-28 23:41:40 +02:00
David Yip
288ea11534 Use _FILE_OFFSET_BITS=64 when building tests on Linux 32-bit systems
When cross-compiling spdlog from x86-64 to armhf, I ran spdlog-utests
via qemu-arm and noticed that the "daily_logger rotate" test was failing
because count_files always returned zero.

Investigation of count_files revealed that readdir was returning nullptr
immediately and setting errno to 75, i.e. "value too large for defined
data type".  I suspected this had something to do with some 64 vs.
32-bit thing, so I added _FILE_OFFSET_BITS=64 to the build and that
seems to have made readdir happy.

It might be safe to add _FILE_OFFSET_BITS=64 for all Linux builds, but
it only seems to be necessary for the 32-bit case (which is a pretty
small audience these days -- I'm only building for armhf to target a
Raspberry Pi 3 running Raspbian, which runs in 32-bit mode).
2019-10-28 13:23:01 -05:00
gabime
4a620a2c5e Merge branch 'Issue-1248' into v1.x 2019-10-25 16:56:26 +03:00
gabime
594d226056 update tests 2019-10-25 16:20:24 +03:00
gabime
c19e325b83 Added some tests for create_dir 2019-10-25 16:17:02 +03:00