|
|
@ -20,12 +20,12 @@ TESTS ?= $(shell cd $(tests_dir); find ${TEST_PATH} -name '*.ino' -exec dirname
|
|
|
|
|
|
|
|
|
|
|
|
generate-testcases:
|
|
|
|
generate-testcases:
|
|
|
|
@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} generate-testcase; \
|
|
|
|
${MAKE} -s -f ${top_dir}/testing/makefiles/testcase.mk -C $${test} testcase=$${test} generate-testcase; \
|
|
|
|
done
|
|
|
|
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} testcase=$${test} run; \
|
|
|
|
done || exit 1
|
|
|
|
done || exit 1
|
|
|
|
|
|
|
|
|
|
|
|
cmake-clean:
|
|
|
|
cmake-clean:
|
|
|
@ -33,7 +33,7 @@ cmake-clean:
|
|
|
|
|
|
|
|
|
|
|
|
clean: cmake-clean
|
|
|
|
clean: cmake-clean
|
|
|
|
@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} testcase=$${test} clean; \
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
rm -rf "${build_dir}/*"
|
|
|
|
rm -rf "${build_dir}/*"
|
|
|
@ -51,7 +51,7 @@ Makefile:
|
|
|
|
@:
|
|
|
|
@:
|
|
|
|
|
|
|
|
|
|
|
|
${TESTS}: ${libcommon_a} googletest
|
|
|
|
${TESTS}: ${libcommon_a} googletest
|
|
|
|
${MAKE} -f ${top_dir}/testing/makefiles/testcase.mk -C $@ top_dir=${top_dir} testcase=$@ build
|
|
|
|
${MAKE} -f ${top_dir}/testing/makefiles/testcase.mk -C $@ testcase=$@ build
|
|
|
|
|
|
|
|
|
|
|
|
%+run:
|
|
|
|
%+run:
|
|
|
|
${MAKE} -s -f ${top_dir}/testing/makefiles/testcase.mk -C $* top_dir=${top_dir} testcase=$* run
|
|
|
|
${MAKE} -s -f ${top_dir}/testing/makefiles/testcase.mk -C $* testcase=$* run
|
|
|
|