Eric Haszlakiewicz
0421772bbc
Merge pull request #523 from dota17/updatetestcase
update tsetcase for tokener_c
5 years ago
Eric Haszlakiewicz
4bfed6eb2f
Merge pull request #522 from dota17/addVisitTestcase
update json_visit testcase
5 years ago
dota17
5fe4448541
update tsetcase for tokener_c
5 years ago
dota17
a5089f5a79
update json_visit testcase
5 years ago
dota17
48ae9e8874
update pointer test case
5 years ago
Eric Haszlakiewicz
ee34939e74
Merge pull request #519 from dota17/addTestCase_obj_token
Add test case obj token
5 years ago
chenguoping
424b315ce0
pointer types discards qualifiers
5 years ago
chenguoping
1446572997
add testcases of object and token
5 years ago
Eric Haszlakiewicz
d6b968dff7
Merge pull request #512 from JaapKeuter/cmake_test
Properly append to CMAKE_C_FLAGS string
5 years ago
Jaap Keuter
78d8e5c3d5
Properly append to CMAKE_C_FLAGS string
Contrary to other CMAKE variables the CMAKE_C_FLAGS variable is the
composed string of flags for the C compiler. It is therefore not a list
to append to. Current implementation results in these incorrect CFLAGS,
e.g., "-O2 -g -fblahblah;-UNDEBUG". Extending the CFLAGS this way
results in the proper CFLAGS, e.g., "-O2 -g -fblahblah -UNDEBUG".
5 years ago
Eric Haszlakiewicz
6c55f65d07
Set cmake policy CMP0075, to have check_include_file use the value of CMAKE_REQUIRED_LIBRARIES (currently, adds -lm). See issue #510 .
5 years ago
Eric Haszlakiewicz
0819a55ffb
Undefine NDEBUG for tests - cmake version. See issue #501 .
5 years ago
Eric Haszlakiewicz
37b4da6b92
Merge pull request #501 from andy5995/iss_406-2
undefine NDEBUG for tests
5 years ago
Eric Haszlakiewicz
581b94b3bd
Add a shim script to ease shift from autoconf to cmake.
5 years ago
Eric Haszlakiewicz
11a638048d
Add a few missing features to the cmake setup that are present in configure.ac:
Include all compiler warnings, and provide DISABLE_WERROR to make them not be errors.
Define _REENTRANT, if setting it works.
Set -Bsymbolic-functions, and provide DISABLE_BSYMBOLIC to turn that off.
Implement the check for HAS_GNU_WARNING_LONG
5 years ago
Eric Haszlakiewicz
a92e6d2c28
Set the soversion in the cmake built library, and arrange for the file name to be generated appropriately too.
5 years ago
Eric Haszlakiewicz
41f434e89f
Fix test_util_file for VS2013 too, but skip all the tests for anything older than that because the limitations are too inconvenient.
5 years ago
Eric Haszlakiewicz
b99be9cf4e
Fix up the test_util_file test for builds on Windows VS2015.
5 years ago
Eric Haszlakiewicz
7f30afc6e5
Fix some Windows compile issues, add JSON_EXPORT's, fix bogus character escapes, define __func__ and omit unistd.h if needed.
5 years ago
Eric Haszlakiewicz
f19abcf981
Get the cmake build a bit closer to the autoconf one: include json_visit.h, and fix the version stamped in json-c.pc.
5 years ago
Eric Haszlakiewicz
bdaff94e9a
Build and run the tests as part of the cmake build.
5 years ago
Eric Haszlakiewicz
25aedddcdf
Fix memory leaks in test_double_serializer, and make sure all tests return 0 at the end of main().
5 years ago
Eric Haszlakiewicz
3d3b014971
Add a quick way (JSONC_TEST_TRACE=1) to turn on shell tracing in tests.
5 years ago
Eric Haszlakiewicz
b1ad748842
Extend test_double_serializer to check NaN and Infinity handling.
5 years ago
Eric Haszlakiewicz
af8dd4a307
Define vars earlier to fix old Windows builds.
5 years ago
Eric Haszlakiewicz
baed9983b3
Add a json_object_from_fd_ex() function, to allow the max nesting depth to be specified.
5 years ago
Eric Haszlakiewicz
ac26ea9c5b
Add a test for serializing the double value -1.0.
5 years ago
Eric Haszlakiewicz
ddd049045d
Merge pull request #505 from grdowns/vcpkg-instructions
Add vcpkg installation instructions
6 years ago
grdowns
7ef51239a9
Update dependencies
6 years ago
grdowns
760c1e284c
Add vcpkg installation instructions
6 years ago
Eric Haszlakiewicz
eae040a84a
Issue #488 : use JSON_EXPORT on functions so they are properly exported on Windows.
6 years ago
Eric Haszlakiewicz
374ffe87c6
Issue #463 : fix newlocale() call to use LC_NUMERIC_MASK instead of LC_NUMERIC, and remove incorrect comment.
The second call to newlocale() with LC_TIME accidentally made things
work because LC_TIME == LC_NUMERIC_MASK on some platforms.
6 years ago
Eric Haszlakiewicz
05b41b159e
Add a json_tokener_get_parse_end() function to replace direct access of tok->char_offset.
6 years ago
Eric Haszlakiewicz
087534c030
Minor cleanup of includes in a couple of tests.
6 years ago
Eric Haszlakiewicz
d0b87ee87b
Add an explicit cast to double to squash a -Wimplicit-int-float-conversion warning.
Though we will no longer be comparing exactly against INT64_MAX, this is ok
because any value of that magnitude stored in a double will *also* have been
rounded up, so the comparison will work appropriately.
6 years ago
andy5995
8799623806
undefine NDEBUG for tests
(closes #406 )
6 years ago
Eric Haszlakiewicz
a91aa5e35d
Merge pull request #499 from andy5995/travis_valgrind
.travis.yml:test on more recent clang and gcc versions
6 years ago
andy5995
509600a7f7
add xenial default clang with CHECK enabled
6 years ago
andy5995
4f69529a04
add missing dist
6 years ago
andy5995
dd08b70e46
manually use apt-get to install packages on bionic
6 years ago
andy5995
dd0eef6aab
add tests on bionic beaver
6 years ago
andy5995
163db3f6d0
revert toolchain back to "test"
6 years ago
andy5995
1da4b23235
change key
6 years ago
andy5995
a49f1dee8a
use "non-test" ppa
Maybe something weird about how gcc is configured with the test
toolchain?
6 years ago
andy5995
897b49f475
remove useless condition that shows logs
6 years ago
andy5995
b140c473d1
install doxygen so 'make distcheck' can succeed
6 years ago
andy5995
6288be340c
test for more compilers
6 years ago
andy5995
57e79e1d0b
show the logs if tests fail
6 years ago
andy5995
50e7fff0f3
.travis.yml:install valgrind
(#498 )
6 years ago
Eric Haszlakiewicz
c8e1b59ae5
Merge pull request #495 from andy5995/README_typos
README.md:fix 2 typos
6 years ago