Skip to content

Commit 4ddd7e5

Browse files
authored
runtests.sh: refactoring and cleanups (#4029)
* runtests.sh: avoid redundant `pkg-config` checks and simplified the check * runtests.sh: write a message when something is completely missing * runtests.sh: derive paths from script location * runtests.sh: improved readability by using individual functions for each file * runtests.sh: added helper function `get_pkg_config_cflags()` to clean up cflag lookup from `pkg-config` * runtests.sh: simplified `xmlstarlet` calls
1 parent 8b90b2d commit 4ddd7e5

2 files changed

Lines changed: 379 additions & 325 deletions

File tree

test/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ if (BUILD_TESTS)
4343
# TODO: get rid of the copy
4444
add_custom_target(checkcfg ${CMAKE_COMMAND} -E copy $<TARGET_FILE:cppcheck> ${CMAKE_SOURCE_DIR}
4545
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/cfg/runtests.sh
46-
DEPENDS cppcheck validateCFG
47-
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/cfg)
46+
DEPENDS cppcheck validateCFG)
4847
endif()
4948

5049
if (REGISTER_TESTS)

0 commit comments

Comments
 (0)