Commit 3696eeae authored by Eric Niebler's avatar Eric Niebler Committed by Facebook Github Bot

split up the tests into separate executables

fbshipit-source-id: 40b0269014ac6fe1cab1362904791ae1819d8aa0
parent eb464ae8
...@@ -19,6 +19,7 @@ script: cmake ...@@ -19,6 +19,7 @@ script: cmake
env: env:
global: global:
- DEPS_DIR=${TRAVIS_BUILD_DIR}/deps - DEPS_DIR=${TRAVIS_BUILD_DIR}/deps
- CMAKE_VERSION="3.12.0"
cache: cache:
directories: directories:
...@@ -155,7 +156,7 @@ before_install: ...@@ -155,7 +156,7 @@ before_install:
- | - |
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
if [ -z "$(ls -A ${DEPS_DIR}/cmake-${CMAKE_VERSION}/cached)" ]; then if [ -z "$(ls -A ${DEPS_DIR}/cmake-${CMAKE_VERSION}/cached)" ]; then
CMAKE_URL="https://cmake.org/files/v3.6/cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz" CMAKE_URL="https://cmake.org/files/v3.12/cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz"
mkdir -p ${DEPS_DIR}/cmake-${CMAKE_VERSION} mkdir -p ${DEPS_DIR}/cmake-${CMAKE_VERSION}
travis_retry wget --no-check-certificate --quiet -O - "${CMAKE_URL}" | tar --strip-components=1 -xz -C ${DEPS_DIR}/cmake-${CMAKE_VERSION} travis_retry wget --no-check-certificate --quiet -O - "${CMAKE_URL}" | tar --strip-components=1 -xz -C ${DEPS_DIR}/cmake-${CMAKE_VERSION}
touch ${DEPS_DIR}/cmake-${CMAKE_VERSION}/cached touch ${DEPS_DIR}/cmake-${CMAKE_VERSION}/cached
......
include(../external/Catch2/contrib/Catch.cmake)
add_library(CatchImpl catch.cpp)
target_link_libraries(CatchImpl pushmi)
add_executable(PushmiTest add_executable(FlowTest FlowTest.cpp)
catch.cpp target_link_libraries(FlowTest pushmi CatchImpl Threads::Threads)
FlowTest.cpp catch_discover_tests(FlowTest)
CompileTest.cpp
NewThreadTest.cpp
TrampolineTest.cpp
PushmiTest.cpp
)
target_link_libraries(PushmiTest
pushmi
Threads::Threads
)
include(../external/Catch2/contrib/Catch.cmake) add_executable(CompileTest CompileTest.cpp)
target_link_libraries(CompileTest pushmi CatchImpl Threads::Threads)
# catch_discover_tests(CompileTest)
add_executable(NewThreadTest NewThreadTest.cpp)
target_link_libraries(NewThreadTest pushmi CatchImpl Threads::Threads)
catch_discover_tests(NewThreadTest)
add_executable(TrampolineTest TrampolineTest.cpp)
target_link_libraries(TrampolineTest pushmi CatchImpl Threads::Threads)
catch_discover_tests(TrampolineTest)
add_executable(PushmiTest PushmiTest.cpp)
target_link_libraries(PushmiTest pushmi CatchImpl Threads::Threads)
catch_discover_tests(PushmiTest) catch_discover_tests(PushmiTest)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment