Skip to content

Commit dc51f5d

Browse files
committed
Better visibility for C tests:
- turn on output-on-failure by default - explain how to run tests in README
1 parent 4f59b98 commit dc51f5d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ How to build:
8282
$ make
8383
$ sudo make install
8484
85+
How to run tests:
86+
87+
$ make test
88+
8589
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`.
8690
8791
#### GUI on Windows

0 commit comments

Comments
 (0)