tmp/arduino-cli-pre-rebase
Jesse Vincent 4 years ago
parent 86552b46c1
commit ad067ee95a
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -1,4 +1,7 @@
top_dir := $(abspath $(dir $(lastword ${MAKEFILE_LIST}))..) top_dir := $(abspath $(dir $(lastword ${MAKEFILE_LIST}))..)
$(info Top dir is $(top_dir))
build_dir := ${top_dir}/_build build_dir := ${top_dir}/_build
LIB_DIR := ${build_dir}/lib LIB_DIR := ${build_dir}/lib
@ -13,21 +16,22 @@ TESTS ?= $(shell find ${top_dir}/${TEST_PATH} -name '*.ino' -exec dirname {} \;
.PHONY: clean cmake-clean all googletest .PHONY: clean cmake-clean all googletest
generate-testcases: $(info TEst dir is $(TESTS))
@for test in ${TESTS}; do \
${MAKE} -s -f ${top_dir}/testing/makefiles/testcase.mk -C ${test} top_dir=${top_dir} testcase=${test} generate-testcase; \
done
all: ${TESTS} all: ${TESTS}
@for test in ${TESTS}; do \ @for test in ${TESTS}; do \
${MAKE} -s -f ${top_dir}/testing/makefiles/testcase.mk -C ${test} top_dir=${top_dir} testcase=${test} run; \ ${MAKE} -s -f ${top_dir}/testing/makefiles/testcase.mk -C ${test} top_dir=${top_dir} testcase=${test} run; \
done || exit 1 done || exit 1
generate-testcases:
@for test in ${TESTS}; do \
${MAKE} -s -f ${top_dir}/testing/makefiles/testcase.mk -C ${test} top_dir=${top_dir} testcase=${test} generate-testcase; \
done
cmake-clean: cmake-clean:
rm -rf "${top_dir}/testing/googletest/build/*" rm -rf "${top_dir}/testing/googletest/build/*"
clean: cmake-clean clean: cmake-clean
# ${top_dir}/testing/googletest/build/Makefile
@for test in ${TESTS}; do \ @for test in ${TESTS}; do \
${MAKE} -s -f ${top_dir}/testing/makefiles/testcase.mk -C $${test} top_dir=${top_dir} testcase=$${test} clean; \ ${MAKE} -s -f ${top_dir}/testing/makefiles/testcase.mk -C $${test} top_dir=${top_dir} testcase=$${test} clean; \
done done

Loading…
Cancel
Save