Skip to content

Commit 7d25b80

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 fc15549 commit 7d25b80

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

helper.mk

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ endif
9595

9696
run_file?=${build_dir}/applications/zpc/zpc
9797

98+
# Can be overloaded from env: ./helper.mk ctest="ctest -V -R"
99+
ctest?=ctest
100+
98101
help: ./helper.mk
99102
@echo "# ${project}: ${url}"
100103
@echo "#"
@@ -240,7 +243,7 @@ ${build_dir}: ${build_dir}/CMakeCache.txt
240243
file -E "$<"
241244

242245
test: ${build_dir}
243-
ctest --test-dir ${<}/${project_test_dir}
246+
${ctest} --test-dir ${<}/${project_test_dir}
244247

245248
check: test
246249

@@ -291,6 +294,12 @@ dist/deb: ${build_dir}
291294

292295
dist: dist/cmake
293296

297+
clean:
298+
rm -rf ${build_dir}/_deps/*-build
299+
300+
cleanall: configure/clean
301+
rm -rf ${build_dir}/_deps
302+
294303
distclean:
295304
rm -rf ${build_dir}
296305

0 commit comments

Comments
 (0)