diff --git a/.github/workflows/build-matrix.yml b/.github/workflows/build-matrix.yml index 1efa3f1..4f2f2a5 100644 --- a/.github/workflows/build-matrix.yml +++ b/.github/workflows/build-matrix.yml @@ -67,7 +67,3 @@ jobs: echo "Contents of output directory:" ls -R ${{ github.workspace }}/output/bin/release - -# - name: Run tests -# run: | -# ctest --test-dir ${{ github.workspace }}/output/bin/release --output-on-failure -C Release \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index b25faf8..b7bec72 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,9 @@ else () message(WARNING "You are using an unsupported compiler! Compilation has only been tested with MSVC, GCC and Clang.") endif () +include(CTest) +enable_testing() + configure_file( "src/ProjectConfig.h.in" "${PROJECT_BINARY_DIR}/ProjectConfig.h" @@ -64,6 +67,3 @@ add_subdirectory(test/test_gtfsRaptorConfig) # BECHMARKS add_subdirectory(benchmark/benchmark_schedule) add_subdirectory(benchmark/benchmark_gtfsRaptor) - -include(CTest) -enable_testing()