Mario Werner
c1a4cd0fa7
check if cppformat is the master project or just used as dependency
...
Based on that information less intrusive option defaults are choosen.
Additionally, packaging support is omitted.
2016-02-03 11:20:19 +01:00
Mario Werner
797d72133e
restored smoke test for syntax compatibility with the 98 c++ standard
2016-02-03 10:01:53 +01:00
Mario Werner
e0e8f717a0
FMT_USE_FILE_DESCRIPTORS is apparently only needed for the tests
2016-02-03 09:14:32 +01:00
Mario Werner
c0e926109e
use the same warning options like before the PR
...
Additional notes on how to improve the current state have been added.
2016-02-02 17:14:51 +01:00
Mario Werner
b05a02b91c
remove comment which is now superfluous since the code has been moved
2016-02-02 17:04:12 +01:00
Mario Werner
0a4acc9656
use the cmake and ctest to drive the appveyor build
2016-02-01 10:22:47 +01:00
Mario Werner
d3fe82c55b
propagate the build type into the find test
2016-01-31 20:17:39 +01:00
Mario Werner
00fda9b25a
add a test for the find script on the build directory
2016-01-31 00:02:49 +01:00
Mario Werner
5e7ab2f4ea
major cleanup of the test folders CMakeLists.txt
...
The new code does not rely on globally defined include directories
anymore. Additionally a lot of conditional code and has been removed
which improves readability a lot.
2016-01-29 16:21:17 +01:00
Mario Werner
b52d0bd9d4
define cppformat cmake targets with proper interface definitions
2016-01-29 13:23:08 +01:00
Mario Werner
0fb474be3a
outlined the compiler feature tests to improve script readability
2016-01-29 13:03:47 +01:00
Mario Werner
3019a8c1fd
moved code into cppformat subdirectory
...
Proxy headers have been placed into the project root to emit
deprecation warnings.
2016-01-29 12:49:35 +01:00
Mario Werner
ef7bbfff87
removed workaround for cmake versions prior to 2.8.10
2016-01-13 09:54:02 +01:00
vitaut
97e9ed11bc
Set interface include dir for gmock
2016-01-09 08:07:31 -08:00
vitaut
1cba0aea27
Simplify CMake config and do minor adjustments
...
for consistency with used coding conventions.
2015-12-10 07:24:23 -08:00
Maciej Dems
c47318afa8
Declarations for shared library in Windows.
...
Added __declspec(dllimport) and __declspec(dllexport) declarations
when compiled in Windows.
2015-12-10 13:36:18 +01:00
vitaut
b3714625c0
Fix compilation with FMT_PEDANTIC=ON
2015-08-19 08:03:17 -07:00
vitaut
1bba22667e
Fix build on CMake 2.6
2015-08-19 07:32:48 -07:00
vitaut
4274f15f0d
Move test-specific stuff to test/CMakeLists.txt
2015-08-19 07:27:08 -07:00
vitaut
0a7e5141c1
Move posix tests from gtest-extra-test to a separate test
2015-06-24 09:16:03 -07:00
vitaut
9769f4b9ed
Refactor posix tests
2015-06-24 08:43:30 -07:00
vitaut
b88a17ad9e
libformat.{a.so} -> libcppformat.{a.so}
...
as suggested by Eugene V. Lyubimkin to make the name less generic
2015-06-23 06:40:22 -07:00
vitaut
8ab665afbc
Only use death tests if available
2015-06-22 08:17:23 -07:00
vitaut
24c309fbfa
Don't use windows.h if FMT_USE_WINDOWS_H is set to 0
2015-06-12 07:15:57 -07:00
vitaut
a5757c86df
FMT_EXTRA_TESTS -> FMT_PEDANTIC and use it to control extra warnings
2015-05-12 07:35:29 -07:00
vitaut
2da08f21dd
Only run compile-test if FMT_EXTRA_TESTS is set
...
These tests can be quite time-consuming especially on Windows
2015-05-11 07:34:07 -07:00
vitaut
60405cf693
Use /W4 in format-test and only if FMT_EXTRA_TESTS is set
...
as (1) we don't want to force /W4 on users of the library and (2) some of
the warnings only show up when the formatting functions are used.
2015-03-28 17:29:12 -07:00
vitaut
2adbfa4af7
Test IsConvertibleToInt with a C++11 enum
2015-03-18 11:02:37 -07:00
vitaut
538c2610cb
Move FMT_USE_VARIADIC_TEMPLATES definition to macro-test.cc
2015-03-17 07:57:30 -07:00
Victor Zverovich
da6ac7fb26
Fix tests
2015-03-01 16:12:26 -08:00
Mikolaj Paraniak
7f706171a9
Add format linking to tests
2015-01-06 16:57:07 +01:00
Victor Zverovich
67e196eac4
Make test libraries static
2014-12-19 07:39:13 -08:00
Victor Zverovich
df580969f7
Add a test for header-only configuration
2014-12-09 06:22:55 -08:00
Victor Zverovich
8b76e97062
Support compilation with exceptions disabled
2014-10-06 08:30:55 -07:00
Victor Zverovich
d00f689c40
Fix type_traits check
2014-09-29 11:03:18 -07:00
Victor Zverovich
b79d06a5da
Escape quotes
2014-09-29 10:44:48 -07:00
Victor Zverovich
2846a9eb38
Check if is_copy_assignable is working
...
is_copy_assignable is broken in MSVC.
2014-09-29 10:42:16 -07:00
Victor Zverovich
dd90129066
Check if type_traits actually work.
2014-09-29 09:15:41 -07:00
Victor Zverovich
d1ded569ff
Separate memory management and formatting
...
Array is split into an abstract Buffer class and a concrete MemoryBuffer class. BasicWriter now does all memory allocation through a Buffer object. Subclasses of BasicWriter may use different buffer types. The new BasicMemoryBuffer class uses the default MemoryBuffer.
2014-09-29 08:48:16 -07:00
Victor Zverovich
c76b22405d
Replace GTest with GMock (includes GTest)
2014-09-17 08:01:42 -07:00
Victor Zverovich
fe9888a1e2
Move implementation tests to format-impl-test.
2014-09-05 07:12:20 -07:00
Victor Zverovich
fb32161fa4
Move implementation specific stuff from format.h to format.cc.
2014-08-15 08:40:03 -07:00
Victor Zverovich
6a8becb5bf
Rearrange tests to simplify inclusion in other projects, part 2.
2014-08-09 09:07:15 -07:00
Victor Zverovich
56fb75c2ec
Rearrange tests to simplify inclusion in other projects.
2014-08-09 09:04:38 -07:00
Victor Zverovich
144e1fbb7c
Disallow formatting of wide strings when using a narrow string formatter.
2014-07-04 06:56:19 -07:00
Victor Zverovich
4e260e8599
Test MakeArg and fix formatting.
2014-07-03 08:50:57 -07:00
Victor Zverovich
5edda531f6
Add fmt::format and deprecate fmt::Format.
2014-06-28 14:48:42 -07:00
Victor Zverovich
063d0077b3
Test FileSink. Simplify tests.
2014-04-29 08:39:37 -07:00
Victor Zverovich
6798c1704e
Add tests.
2014-04-29 06:26:37 -07:00
Victor Zverovich
8641461c98
More tests.
2014-04-27 06:56:12 -07:00
Victor Zverovich
5adc272ee7
Add tests.
2014-04-25 07:44:35 -07:00
Victor Zverovich
fa3efb1330
Add a compile error test.
2014-01-08 08:16:00 -08:00
Victor Zverovich
f380dc3daa
Fix error reporting.
2014-01-07 17:04:39 -08:00
Victor Zverovich
9fad54a821
Fix CMake warning.
2014-01-07 17:04:30 -08:00
Victor Zverovich
482472ebc5
Fix a typo.
2014-01-07 11:34:32 -08:00
Victor Zverovich
be17d14544
Simplify compile tests.
2014-01-07 09:50:36 -08:00
Victor Zverovich
ec7006fb99
Test if a narrow string padding with wide char doesn't compile.
2014-01-07 08:57:37 -08:00
Victor Zverovich
6abfb84808
Simplify compile error tests.
2014-01-07 08:43:53 -08:00
Victor Zverovich
d5c82bc717
Add a comment.
2014-01-02 11:34:58 -08:00
Victor Zverovich
9bf11d057c
Add compile error tests.
2014-01-02 11:31:53 -08:00