Skip to content

Commit

Permalink
Update the test definition not to use Valgrind if on MacOS
Browse files Browse the repository at this point in the history
Signed-off-by: yamacir-kit <[email protected]>
  • Loading branch information
yamacir-kit committed Sep 4, 2024
1 parent 7986c52 commit 5b97677
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,13 @@ include(CPack)

enable_testing()

find_program(${PROJECT_NAME}_MEMORY_CHECK_COMMAND valgrind)

set(${PROJECT_NAME}_MEMORY_CHECK_OPTIONS
--error-exitcode=1 # = EXIT_FAILURE
--leak-check=full
--quiet
--show-leak-kinds=all)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
find_program(${PROJECT_NAME}_MEMORY_CHECK_COMMAND valgrind)
set(${PROJECT_NAME}_MEMORY_CHECK_OPTIONS --error-exitcode=1 --leak-check=full --quiet --show-leak-kinds=all)
else()
set(${PROJECT_NAME}_MEMORY_CHECK_COMMAND "")
set(${PROJECT_NAME}_MEMORY_CHECK_OPTIONS "")
endif()

file(GLOB ${PROJECT_NAME}_TEST_SS ${CMAKE_CURRENT_SOURCE_DIR}/test/*.ss)

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Procedures for each standard are provided by the following R7RS-style libraries:
cmake -B build -DCMAKE_BUILD_TYPE=Release
cd build
make package
sudo apt install build/meevax_0.5.231_amd64.deb
sudo apt install build/meevax_0.5.232_amd64.deb
```

or
Expand Down Expand Up @@ -122,9 +122,9 @@ sudo rm -rf /usr/local/share/meevax

| Target Name | Description
|-------------|-------------
| `all` | Build shared-library `libmeevax.0.5.231.so` and executable `meevax`
| `all` | Build shared-library `libmeevax.0.5.232.so` and executable `meevax`
| `test` | Test executable `meevax`
| `package` | Generate debian package `meevax_0.5.231_amd64.deb`
| `package` | Generate debian package `meevax_0.5.232_amd64.deb`
| `install` | Copy files into `/usr/local` directly

## Usage
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.231
0.5.232

0 comments on commit 5b97677

Please sign in to comment.