Commit Graph

312 Commits

Author SHA1 Message Date
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
gabime
88335bd92e clang-format 2019-10-25 16:05:12 +03:00
gabime
dbe5c17a96 Renamed file_exists()->path_exists() 2019-10-25 15:56:23 +03:00
gabime
c40555c0ac clang-format 2019-10-25 15:44:53 +03:00
gabime
bfc76278a9 update tests 2019-10-25 15:24:54 +03:00
gabime
a1f283946e updated os::dir_name and tests 2019-10-25 14:29:57 +03:00
gabime
066087b383 Update create_dir 2019-10-25 14:14:50 +03:00
Andrei-Florin BENCSIK
2cc620ef33 Function instead of macro
Be more consistent with the existing code and with the naming
_function -> function
2019-10-25 11:15:07 +03:00
Andrei-Florin BENCSIK
cee705ccd3 Minor cmake code duplication improvement
Create a macro to add tests for both static/header only.

The only differneces between these two are the libraries they link
with and the target names. Created the simple macro:

_spdlog_prepare_test(<target> <spdlog_lib>)

which does the work.

Signed-off-by: Andrei-Florin BENCSIK <andrei.bencsik@gmail.com>
2019-10-24 22:57:47 +03:00
gabime
a8f72424db Merge branch 'Issue-1248' of https://github.com/gabime/spdlog into Issue-1248 2019-10-21 13:43:57 +03:00
gabime
31ed133932 Added dir_name tests 2019-10-21 13:42:25 +03:00
Gabi Melman
5f3521b3d4
Update utils.cpp 2019-10-20 17:55:13 +03:00
gabime
9b7812a0f2 auto create log dir 2019-10-20 17:40:56 +03:00
Florian Pigorsch
4aad51a352 Fix some spelling errors.
casese -> cases (1)
chache -> cache (1)
cirucal -> circular (1)
dependecy -> dependency (1)
detrmine -> determine (2)
eavluate -> evaluate (1)
exertnal -> external (1)
ony -> only (1)
registation -> registration (3)
registring -> registering (2)
regsistration -> registration (3)
seperate -> separate (2)
wit -> with (1)
withe -> with (1)
2019-10-19 09:42:38 +02:00
gabime
9369fe8c27 Fix #1262 2019-10-09 21:41:02 +03:00
gabime
453be2e08a clang-format 2019-09-23 12:38:19 +03:00
gabime
83497e4dc9 Update test_stdout_api.cpp 2019-09-23 12:11:12 +03:00
gabime
3806a9c320 Added wchar api tests to windows 2019-09-23 12:06:21 +03:00
gabime
e42867f0a8 Merge branch 'v1.x' of https://github.com/gabime/spdlog into v1.x 2019-09-21 18:35:33 +03:00
gabime
fe20afac17 clang-format 2019-09-21 18:16:38 +03:00
Gabi Melman
10578ff08c
Update test_mpmc_q.cpp 2019-09-21 15:49:54 +03:00
gabime
7733849478 Updated meson build 2019-09-18 15:01:23 +03:00
gabime
545e7d2de8 Fixed clang warning 2019-09-16 23:50:56 +03:00
gabime
a9ed6b352b Update utils.cpp 2019-09-16 11:58:51 +03:00
gabime
523eebe47d Update utils.cpp 2019-09-16 11:58:26 +03:00
gabime
b303d8bc40 Update tests utils 2019-09-16 11:56:56 +03:00
Gabi Melman
fcc6b97f88
Update utils.cpp 2019-09-15 21:01:15 +03:00
gabime
adc4398cc5 Fixed widows tests 2019-09-15 20:56:20 +03:00
Gabi Melman
c53d26cfca
Update utils.cpp 2019-09-15 19:15:35 +03:00
Gabi Melman
c188bee229
Update utils.cpp 2019-09-15 19:09:57 +03:00
Gabi Melman
7f1a89e3f6
Update utils.cpp 2019-09-15 18:49:19 +03:00
gabime
5d46f3fcab Fix windows build 2019-09-15 18:44:45 +03:00
gabime
b55d95d365 Update test utils for windows 2019-09-15 18:38:31 +03:00
gabime
494cc8bace Implemented daily sink rotation #661 2019-09-15 18:34:29 +03:00
gabime
5c2855e1c1 wip backtracer 2019-09-05 01:25:00 +03:00
gabime
ed8d099607 Fixed #1197 2019-08-29 01:05:23 +03:00
gabime
2eb52cd047 Unified usage of fmt::memory_buffer across the codebase 2019-08-28 18:50:11 +03:00