Skip to content

Commit

Permalink
Merge pull request #66 from kkarbowiak/build-cleanup
Browse files Browse the repository at this point in the history
Cleanup: rename build targets
  • Loading branch information
kkarbowiak authored Feb 25, 2025
2 parents 61b56bf + fd206e2 commit b43cb50
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
run: cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS=-fsanitize=address,undefined,alignment,array-bounds -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address,undefined,alignment,array-bounds

- name: CMake build
run: cmake --build build --parallel --target run_unit_test
run: cmake --build build --parallel --target run-unit-test

valgrind:
name: "Valgrind"
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
run: cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CXX_FLAGS=--coverage -DCMAKE_EXE_LINKER_FLAGS=--coverage

- name: CMake build
run: cmake --build build --parallel --target run_unit_test
run: cmake --build build --parallel --target run-unit-test

- name: Generate coverage
run: |
Expand Down
2 changes: 1 addition & 1 deletion test/exit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ set_property(TEST error-test-1 PROPERTY WILL_FAIL true)
add_test(NAME error-test-2 COMMAND app)
set_property(TEST error-test-2 PROPERTY PASS_REGULAR_EXPRESSION "the following arguments are required: positional\nusage: app \\[-h\\] \\[--optional OPTIONAL\\] \\[-v\\] positional\n\npositional arguments:\n positional\n\noptional arguments:\n -h, --help show this help message and exit\n --optional OPTIONAL\n -v, --version show program's version number and exit\n")

add_custom_target(run_exit_test ALL
add_custom_target(run-exit-test ALL
COMMAND ${CMAKE_CTEST_COMMAND} -C debug --output-on-failure
DEPENDS app)
4 changes: 2 additions & 2 deletions test/unittest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ target_compile_options(unittest PRIVATE
/W4 /WX /permissive->)
target_link_options(unittest PRIVATE $ENV{LINKER_OPTIONS})

add_test(NAME unittest COMMAND unittest)
add_custom_target(run_unit_test ALL
add_test(NAME unit-test COMMAND unittest)
add_custom_target(run-unit-test ALL
COMMAND ${CMAKE_CTEST_COMMAND} -C debug --output-on-failure
DEPENDS unittest)

0 comments on commit b43cb50

Please sign in to comment.