Skip to content

Commit 08a42a3

Browse files
authored
Merge pull request #944 from vmallet/ctests_verbose
C: Increase tests visibility (Issue #943)
2 parents 734e47c + fa7bb8e commit 08a42a3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ ENDIF ()
184184

185185
IF (MSGPACK_BUILD_TESTS)
186186
ENABLE_TESTING ()
187+
list(APPEND CMAKE_CTEST_ARGUMENTS "--output-on-failure")
187188
# MEMORYCHECK_COMMAND_OPTIONS needs to place prior to CTEST_MEMORYCHECK_COMMAND
188189
SET (MEMORYCHECK_COMMAND_OPTIONS "--leak-check=full --show-leak-kinds=definite,possible --error-exitcode=1")
189190
FIND_PROGRAM(CTEST_MEMORYCHECK_COMMAND NAMES valgrind)

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ How to build:
8282
$ make
8383
$ sudo make install
8484
85+
How to run tests:
86+
87+
In order to run tests you must have the [GoogleTest](https://github.com/google/googletest) framework installed. If you do not currently have it, install it and re-run `cmake`.
88+
Then:
89+
90+
$ make test
91+
8592
When you use the C part of `msgpack-c`, you need to build and link the library. By default, both static/shared libraries are built. If you want to build only static library, set `BUILD_SHARED_LIBS=OFF` to cmake. If you want to build only shared library, set `BUILD_SHARED_LIBS=ON`.
8693
8794
#### GUI on Windows

0 commit comments

Comments
 (0)