Skip to content

Commit

Permalink
rename test target
Browse files Browse the repository at this point in the history
  • Loading branch information
yaito3014 committed Aug 23, 2024
1 parent 2861b59 commit 5439f7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
-S ${{ github.workspace }}
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} --target test
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} --target variant_view_test

- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}/test
Expand Down
8 changes: 4 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ cmake_minimum_required(VERSION 3.23)
include(CTest)
if (BUILD_TESTING)
find_package(Boost REQUIRED COMPONENTS unit_test_framework CONFIG)
add_executable(test test.cpp)
target_compile_features(test PUBLIC cxx_std_20)
target_link_libraries(test PUBLIC variant_view Boost::unit_test_framework)
add_test(NAME variant_view_test COMMAND test)
add_executable(variant_view_test test.cpp)
target_compile_features(variant_view_test PUBLIC cxx_std_20)
target_link_libraries(variant_view_test PUBLIC variant_view Boost::unit_test_framework)
add_test(NAME variant_view_test COMMAND variant_view_test)
endif()

0 comments on commit 5439f7e

Please sign in to comment.