aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml4
-rw-r--r--CMakeLists.txt2
-rw-r--r--test/CMakeLists.txt2
3 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5f990dd..d6e40a5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -71,5 +71,7 @@ jobs:
name: 'winapi-utf8-${{ matrix.os }}-${{ matrix.toolset }}-${{ matrix.platform }}-${{ matrix.configuration }}'
path: '${{ runner.workspace }}/build/install/'
- name: Test
- run: ../build/install/bin/winapi-utf8-unit-tests
+ run: |
+ cd ../build/cmake
+ ctest -C '${{ env.CONFIGURATION }}' --verbose
if: runner.os == 'Windows'
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4bfa28f..9408887 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.5) # for Boost::* imported targets
project(winapi_utf8 CXX)
+enable_testing()
+
include(cmake/common.cmake)
file(GLOB_RECURSE winapi_utf8_include "include/*.hpp")
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index c410383..d23dc87 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -11,3 +11,5 @@ install(TARGETS unit_tests RUNTIME DESTINATION bin)
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
install(FILES "$<TARGET_PDB_FILE:unit_tests>" DESTINATION bin OPTIONAL)
endif()
+
+add_test(NAME unit_tests COMMAND unit_tests)