Commit Graph

213 Commits

Author SHA1 Message Date
gabime
b9d7c45e40 Use blocking queue 2018-05-22 21:59:27 +03:00
gabime
cf63bcb808 catch exceptions during flush and cal handler 2018-05-22 21:59:14 +03:00
gabime
3c7103d90d Format 2018-04-29 01:36:45 +03:00
gabime
780dab6977 Fixed tests 2018-04-29 01:34:36 +03:00
gabime
c962c88342 Fixed linux port of v1.x 2018-04-20 13:20:19 +03:00
gabime
c80cc3306f Fixed tests 2018-04-20 03:04:53 +03:00
gabime
6f4cd8d397 thread_pool and refactoring async 2018-04-14 03:34:57 +03:00
gabime
1dea46e1ab code formatting 2018-04-06 04:06:02 +03:00
gabime
644c81b9fb Added color ranges to formatter tests 2018-04-06 03:42:24 +03:00
gabime
4445f6f869 formatting 2018-03-16 17:35:56 +02:00
gabime
5afb5dc782 Changed clang formatting for templates 2018-03-16 17:13:50 +02:00
gabime
a2653d409f clang-format 2018-03-09 15:26:33 +02:00
gabime
7f1f7b6232 Changed function name to level::from_str 2018-03-09 15:24:37 +02:00
fegomes
48c8755d06 include test to convert functions and change suggested by @gabime 2018-03-08 19:08:24 -03:00
Gabi Melman
e8a39c894f
Update test_pattern_formatter.cpp 2018-03-06 10:31:36 +02:00
Daniel Chabrowski
5355bd3a8f readability-named-parameter 2018-02-25 12:39:37 +01:00
Daniel Chabrowski
17caf77784 google-build-namespaces 2018-02-25 12:12:34 +01:00
Daniel Chabrowski
68f91822ed performance-unnecessary-value-param 2018-02-25 00:54:14 +01:00
gabime
abc0d43995 astyle 2018-02-23 18:33:03 +02:00
gabime
d650fa2456 Fixed tests for older gcc compilers 2018-02-23 18:25:39 +02:00
gabime
a8b5bb894e fixed cmake for tests 2018-02-23 16:49:26 +02:00
gabime
3620b31ef2 added pattern formatter tests 2018-02-23 16:40:45 +02:00
Gabi Melman
bce33698be
Merge pull request #628 from emadwill/eol
Support for custom EOL per formatter -Thanks @emadwill
2018-02-23 15:11:10 +02:00
gabime
7eb41ccf0f Use -O3 flag in tests 2018-02-23 14:29:14 +02:00
Gabi Melman
851b49e147
Update CMakeLists.txt 2018-02-22 13:37:50 +02:00
grzadr
8e861728a0
Fix indentation in line 2916
Compiling with -Wmisleading-indentation triggers warning:
/data/Git/spdlog/tests/catch.hpp: In member function ‘bool Catch::TestSpec::Filter::matches(const Catch::TestCaseInfo&) const’:
/data/Git/spdlog/tests/catch.hpp:2913:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
                 for( std::vector<Ptr<Pattern> >::const_iterator it = m_patterns.begin(), itEnd = m_patterns.end(); it != itEnd; ++it )
                 ^~~
/data/Git/spdlog/tests/catch.hpp:2916:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
                     return true;
                     ^~~~~~
2018-02-22 09:46:54 +01:00
Daniel Chabrowski
646a140ed4 Specify CXX language explicitly in CMake
Marking project as CXX will disable detecting C compiler and other checks.
Removed 'INCLUDES DESTINATION' as it made the include path appear doubled.
2018-02-11 21:13:33 +01:00
Emad William Farag
55680db160 Support for custom EOL per formatter 2018-02-05 21:51:01 -05:00
yisonPylkita
38ccd51399 Modern CMake in /tests 2018-01-28 00:49:03 +01:00
gabime
3d967dd716 added catch license in tests folder 2017-12-24 19:37:54 +02:00
gabime
4ca6991828 astyle 2017-12-22 18:55:19 +02:00
gabime
7663f58379 Fixed file_helper::split_by_extenstion tests for gcc 2017-12-22 18:48:02 +02:00
gabime
8e3f968ba4 Fixed file_helper::split_by_extenstion and added more tests for it 2017-12-22 18:41:03 +02:00
gabime
f695e536dd Fixed file_helper::split_by_extenstion and added more tests for it 2017-12-22 18:37:51 +02:00
Force Charlie
42e5d98a48 fix split_by_extenstion parse error extenstion 2017-12-22 17:52:50 +08:00
Ľubomír Carik
f93277d271 Solve compiler warning in tests
Signed-off-by: Ľubomír Carik <Lubomir.Carik@anritsu.com>
2017-12-20 04:34:08 +01:00
gabime
859b7f1d58 fixed test for visual c++ 2017-12-01 04:42:23 +02:00
gabime
49989e0678 fixed test for gcc 4.8 (no regex) 2017-12-01 04:35:23 +02:00
gabime
70274924b7 fixed test comment 2017-12-01 03:59:35 +02:00
gabime
f5939f9e56 astyle 2017-12-01 03:46:19 +02:00
gabime
84e307521d Fixed test 2017-12-01 03:45:29 +02:00
gabime
3c4a2bf531 Handle file extensions in rotating and daily loggers 2017-12-01 03:40:49 +02:00
gabime
60ce47a814 Removed include_if.cpp from the tests .sln 2017-12-01 01:28:12 +02:00
gabime
dcc7b347ca Removed all *_if functions (trace_if, debug_if, info_if,..) because they are redundant and confusing way to preform if 2017-11-25 15:19:41 +02:00
gabime
93be7713e0 astyle 2017-11-06 12:39:04 +02:00
gabime
87a44555b6 fixed macro tests 2017-10-13 02:15:49 +03:00
gabime
21ed31844c fixed bug in SPDLOG_TRACE_IF macro and added some related tests 2017-10-13 02:04:31 +03:00
fogo
ee525f9bef allow printf style logging
* tests updated for printf style
* tests makefile support printf style
2017-10-05 10:54:06 -03:00
Asit Kumar Dhal
e35c7fd065 Issue-488: warning for missing enumeration value 2017-08-05 00:30:03 +02:00
Alexei Pastuchov
8fd16fc45e code formatting (astyle and dos2unix)
it aims to solve the issue #467
2017-06-29 09:51:44 +02:00
Asit Kumar Dhal
de0154c525 Test Case for conditional logging 2017-06-17 18:50:21 +02:00
Alexander Zilberkant
6547675e43 Revert "Merge pull request #441 from alzix/count_discarded"
This reverts commit 038733345a, reversing
changes made to 862d2f6f35.
2017-05-15 20:07:24 +03:00
Alexander Zilberkant
0f25b25b20 add async_logger tests
cover discarded messages use-case
2017-05-13 01:01:28 +03:00
gabime
0c276beaaf astyle 2017-03-28 02:08:18 +03:00
gabime
5a8cecdfb6 fix unused warning message 2017-03-28 02:05:59 +03:00
gabime
397d4866b3 Fixed issue #396 and added some tests to catch it 2017-03-28 01:54:33 +03:00
Ľubomír Carik
fd8df5b820 Don't hardcode '.txt.' log file name suffix (resolve #333)
Signed-off-by: Ľubomír Carik <Lubomir.Carik@gmail.com>
2017-02-28 00:59:23 +01:00
gabime
f14d1c002b astyle 2016-10-12 23:08:44 +03:00
gabime
e97621d61d Removed force_flush arg from everywhere. Use flush_on(level) instead 2016-09-18 00:43:42 +03:00
gabime
3afabcd17e astyle 2016-09-02 17:06:00 +03:00
gabime
d2a367fa7c Fixed tests after remove of force_flush arg 2016-09-02 16:59:55 +03:00
gabime
332b7c0d7f astyle 2016-08-22 22:09:23 +03:00
gabime
4efbd950d6 atyle 2016-08-20 13:55:50 +03:00
gabime
d8f01c3a72 added apply_al()l test to tests 2016-08-20 13:51:07 +03:00
gabime
e7debaacd7 astyle 2016-08-05 04:43:20 +03:00
gabime
39cdd08a54 no exceptions while logging 2016-08-05 03:56:40 +03:00
gabime
730f0e02a6 better support for file sizes in 32/64 bits 2016-07-30 19:32:51 +03:00
gabime
0ae66b5b28 support for external fmtlib 2016-07-22 18:06:36 +03:00
gabime
01601cef85 fixed tests warnings 2016-07-15 18:41:59 +03:00
gabime
8d95485f45 update testss.sln to vs 2015 2016-07-11 19:12:41 +03:00
gabime
34ef00c8bc updated tests to vs 2015 and fix warning 2016-07-11 18:58:00 +03:00
gabime
40a9e4e18e fixed test log folder 2016-07-09 04:06:08 +03:00
gabime
febdf7324f astyle 2016-07-09 01:00:16 +03:00
gabime
258531481d fixed tests 2016-07-09 00:59:51 +03:00
gabime
7885aa478c no streams 2016-07-08 17:50:13 +03:00
gabime
5650f10bab DEPRECATED: operator<< API 2016-07-03 03:43:55 +03:00
gabime
8d1570b84a fixed tests cmake thread flag 2016-06-18 15:25:43 +03:00
gabime
3a44818b2a fixed pr #228 to include pthread and removed header_dependecies test 2016-06-18 15:04:08 +03:00
Kevin M. Godby
24e7b64b89 Added header-dependency tests. 2016-06-17 00:55:05 -05:00
gabime
58699a2bd4 astyle 2016-05-15 01:01:01 +03:00
gabime
10d5292bbb better support for custom eol 2016-05-15 00:53:35 +03:00
Gabi Melman
6d5bce46f8 Revert "CMake script improvements" 2016-05-05 10:19:32 +03:00
Kevin M. Godby
2907001e22 Fixed Catch tests. 2016-05-04 19:53:22 -05:00
Kevin M. Godby
2666b6cbf1 Added header dependency tests. 2016-05-04 19:24:17 -05:00
eao197
ef9842c36d daily_file_sink with custom file name calculator 2016-05-03 16:20:28 +03:00
gabime
0d26359856 astyle 2016-04-20 11:57:49 +03:00
Anton Goryunov
e0f08d6b29 - fixed includes in tests 2016-04-14 23:33:51 +03:00
gabime
974379c9be Added support for SPDLOG_NO_ATOMIC_LEVELS in tweakme.h 2016-04-10 01:37:11 +03:00
gabime
d0120b48c5 tests 2016-04-10 00:02:33 +03:00
gabime
23200b08bb added .gitignore to tests/logs folder 2016-04-10 00:00:44 +03:00
gabime
495ecaeaee astyle 2016-04-03 02:14:54 +03:00
gabime
a96092ac32 tests small update 2016-04-03 01:25:41 +03:00
gabime
c00f4785dd Fixed tests solution for visual studio 2016-03-22 00:48:15 +02:00
Kevin M. Godby
c0c5c016c3 Added -I copmiler flag to find spdlog headers for Travis CI and tests/Makefile. 2016-02-25 13:09:33 -06:00
gabime
e226bfc35d tests updated to vs2015 2015-12-13 15:13:16 +02:00
gabime
3d420a3bcf tests refactoring 2015-12-13 14:59:48 +02:00
gabime
6feaa29c62 tests: added utils.cpp to avoid gcc warnings 2015-12-13 14:36:32 +02:00
Gabi Melman
a3c23311b3 Update file_log.cpp 2015-12-13 01:10:33 +02:00
gabime
a05ba78656 added file_helper tests 2015-12-12 20:56:39 +02:00
gabime
a9fb96e088 1. Fixed file_helper::exists() bug under windows which returned false in some circumstances
2. Improved file_helper::exists() performance under linux to use stat sys call
3. Added unit tests
2015-12-12 20:53:00 +02:00
gabime
8c38b4ee9e MIT license 2015-11-28 18:24:20 +02:00
gabime
74b0268713 Minor example fix 2015-11-28 15:01:45 +02:00
gabime
f8b728ea8a Fixed warnings conversion 'size_t' to 'int' on windows - issue #119 2015-08-14 20:26:33 +03:00
gabime
319a62d73f fixed tests makefile 2015-05-15 23:04:09 +03:00
gabime
d0f145f009 fixed tests make file 2015-05-15 22:54:07 +03:00
gabime
83d47aa645 VS 2013 solution for unit tests 2015-05-15 22:21:37 +03:00
gabime
1fef4bbd62 added tests to travis 2015-05-15 22:08:34 +03:00
gabime
d7b0b54c9c fixed tests 2015-05-15 21:56:06 +03:00
gabime
dcdf2280c8 fixed tests 2015-05-15 21:51:09 +03:00
gabime
8387d779b4 fixed tests 2015-05-15 21:45:10 +03:00
gabime
c701420cf6 fixed tests 2015-05-15 20:54:01 +03:00
gabime
b5eaef81d4 fixed tests under gcc 2015-05-15 20:48:38 +03:00
gabime
2f81e54568 Added unit tests (catch based) 2015-05-15 20:30:37 +03:00