Skip to content

Commit

Permalink
Supposedly final tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Morwenn committed Nov 17, 2019
1 parent 2110849 commit 6fd48e9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 51 deletions.
12 changes: 0 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,6 @@ matrix:
compiler: gcc

# OSX clang
# - os: osx
# osx_image: xcode9.2
# env: BUILD_TYPE=Debug USE_VALGRIND=true CMAKE_GENERATOR="Xcode"
# addons:
# homebrew:
# update: true
# packages:
# - ccache
# - cmake
# - valgrind
# compiler: clang

- os: osx
osx_image: xcode8.3
env: BUILD_TYPE=Release CMAKE_GENERATOR="Xcode"
Expand Down
17 changes: 7 additions & 10 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ target_include_directories(Catch2 INTERFACE
option(GFX_TIMSORT_USE_VALGRIND "Whether to run the tests with Valgrind" OFF)
set(GFX_TIMSORT_SANITIZE "" CACHE STRING "Comma-separated list of options to pass to -fsanitize")

# Configure Valgrind
if (${GFX_TIMSORT_USE_VALGRIND})
find_program(MEMORYCHECK_COMMAND valgrind)
set(MEMORYCHECK_COMMAND_OPTIONS "--leak-check=full --track-origins=yes --error-exitcode=1 --show-reachable=no")
endif()

macro(configure_tests target)
# Add required dependencies to tests
target_link_libraries(${target} PRIVATE
Expand Down Expand Up @@ -80,23 +86,14 @@ add_executable(cxx_98_tests
configure_tests(cxx_98_tests)
target_compile_features(cxx_98_tests PRIVATE cxx_std_98)

# Tests that require C++11 support to run
# Tests that require C++11 support
add_executable(cxx_11_tests
main.cpp
cxx_11_tests.cpp
)
configure_tests(cxx_11_tests)
target_compile_features(cxx_11_tests PRIVATE cxx_std_11)

# Configure Valgrind
if (${GFX_TIMSORT_USE_VALGRIND})
find_program(MEMORYCHECK_COMMAND valgrind)
set(MEMORYCHECK_COMMAND_OPTIONS "--leak-check=full --track-origins=yes --error-exitcode=1 --show-reachable=no")
if (APPLE)
set(MEMORYCHECK_SUPPRESSIONS_FILE ${CMAKE_CURRENT_SOURCE_DIR}/valgrind-osx.supp)
endif()
endif()

include(CTest)
include(ParseAndAddCatchTests)

Expand Down
29 changes: 0 additions & 29 deletions tests/valgrind-osx.supp

This file was deleted.

0 comments on commit 6fd48e9

Please sign in to comment.