Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)