Skip to content

Commit 0180d26

Browse files
committed
feat(helper): Add ctest options from env
./helper.mk test ctest="ctest -VV -R zpc_config_test" Signed-off-by: Philippe Coval <[email protected]>
1 parent bb1976f commit 0180d26

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

helper.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ endif
102102

103103
run_file?=${build_dir}/applications/zpc/zpc
104104

105+
# Can be overloaded from env: ./helper.mk ctest="ctest -V -R"
106+
ctest?=ctest
107+
105108
help: ./helper.mk
106109
@echo "# ${project}: ${url}"
107110
@echo "#"
@@ -247,7 +250,7 @@ ${build_dir}: ${build_dir}/CMakeCache.txt
247250
file -E "$<"
248251

249252
test: ${build_dir}
250-
ctest --test-dir ${<}/${project_test_dir}
253+
${ctest} --test-dir ${<}/${project_test_dir}
251254

252255
check: test
253256

0 commit comments

Comments
 (0)