mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-06 00:31:10 +01:00
Gave the testing section a makeover.
This commit is contained in:
parent
49ed6c9774
commit
8d0f8d0dcd
44
README.md
44
README.md
@ -87,9 +87,9 @@ be installed.
|
|||||||
|
|
||||||
Invoke SCons as follows:
|
Invoke SCons as follows:
|
||||||
|
|
||||||
scons platform=PLTFRM [TARGET]
|
scons platform=$PLATFORM [TARGET]
|
||||||
|
|
||||||
where `PLTFRM` may be one of:
|
where `$PLATFORM` may be one of:
|
||||||
|
|
||||||
* `suncc`: Sun C++ (Solaris)
|
* `suncc`: Sun C++ (Solaris)
|
||||||
* `vacpp`: Visual Age C++ (AIX)
|
* `vacpp`: Visual Age C++ (AIX)
|
||||||
@ -106,32 +106,34 @@ environment by running `vcvars32.bat` (e.g. MSVC 2008 command prompt) before
|
|||||||
running SCons.
|
running SCons.
|
||||||
|
|
||||||
|
|
||||||
Running the test manually
|
Running the tests manually
|
||||||
-------------------------
|
--------------------------
|
||||||
|
|
||||||
Notes that test can be run by scons using the 'check' target (see above).
|
Note that test can be run using SCons using the `check` target:
|
||||||
|
|
||||||
You need to run test manually only if you are troubleshooting an issue.
|
scons platform=$PLATFORM check
|
||||||
|
|
||||||
In the instruction below, replace "path to jsontest.exe" with the path
|
You need to run tests manually only if you are troubleshooting an issue.
|
||||||
of the 'jsontest' executable that was compiled on your platform.
|
|
||||||
|
|
||||||
cd test
|
In the instructions below, replace `path/to/jsontest` with the path of the
|
||||||
# This will run the Reader/Writer tests
|
`jsontest` executable that was compiled on your platform.
|
||||||
python runjsontests.py "path to jsontest.exe"
|
|
||||||
|
|
||||||
# This will run the Reader/Writer tests, using JSONChecker test suite
|
cd test
|
||||||
# (http://www.json.org/JSON_checker/).
|
# This will run the Reader/Writer tests
|
||||||
# Notes: not all tests pass: JsonCpp is too lenient (for example,
|
python runjsontests.py path/to/jsontest
|
||||||
# it allows an integer to start with '0'). The goal is to improve
|
|
||||||
# strict mode parsing to get all tests to pass.
|
|
||||||
python runjsontests.py --with-json-checker "path to jsontest.exe"
|
|
||||||
|
|
||||||
# This will run the unit tests (mostly Value)
|
# This will run the Reader/Writer tests, using JSONChecker test suite
|
||||||
python rununittests.py "path to test_lib_json.exe"
|
# (http://www.json.org/JSON_checker/).
|
||||||
|
# Notes: not all tests pass: JsonCpp is too lenient (for example,
|
||||||
|
# it allows an integer to start with '0'). The goal is to improve
|
||||||
|
# strict mode parsing to get all tests to pass.
|
||||||
|
python runjsontests.py --with-json-checker path/to/jsontest
|
||||||
|
|
||||||
You can run the tests using valgrind:
|
# This will run the unit tests (mostly Value)
|
||||||
python rununittests.py --valgrind "path to test_lib_json.exe"
|
python rununittests.py path/to/test_lib_json
|
||||||
|
|
||||||
|
# You can run the tests using valgrind:
|
||||||
|
python rununittests.py --valgrind path/to/test_lib_json
|
||||||
|
|
||||||
|
|
||||||
Building the documentation
|
Building the documentation
|
||||||
|
Loading…
Reference in New Issue
Block a user