File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 7171
7272 - name : Run test
7373 run : |
74- cd ${{ env.CMAKE_BUILD_DIR }}/tests
74+ cd ${{ env.CMAKE_BUILD_DIR }}
7575 set CTEST_OUTPUT_ON_FAILURE=1
7676 ctest -C Debug
Original file line number Diff line number Diff line change @@ -71,5 +71,9 @@ endif()
7171option (STDSHARP_BUILD_TEST "Whether to build test" )
7272
7373if (STDSHARP_BUILD_TEST)
74+ #
75+ # Add the unit tests
76+ #
77+ include (CTest)
7478 add_subdirectory (tests)
7579endif ()
Original file line number Diff line number Diff line change @@ -99,11 +99,6 @@ endif()
9999# if(${CMAKE_CXX_COMPILER_ID} MATCHES Clang)
100100# target_enable_coverage(${PROJECT_NAME} FORMAT lcov)
101101# endif()
102-
103- #
104- # Add the unit tests
105- #
106- enable_testing ()
107102add_test (NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME} )
108103
109104verbose_message("Finished adding unit tests for ${CMAKE_PROJECT_NAME} ." )
You can’t perform that action at this time.
0 commit comments