Merge pull request #909 from keyboardio/testsuite/batch-run

testing: Build and run the tests separately
pull/912/head v1.99.0
Jesse Vincent 4 years ago committed by GitHub
commit fc2f89190a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,6 +21,8 @@ else
bundle_path = ${BOARD_HARDWARE_PATH}/keyboardio/avr/libraries
endif
build: ${BIN_DIR}/${BIN_FILE}
all: run
run: ${BIN_DIR}/${BIN_FILE}
@ -76,4 +78,4 @@ ${OBJ_DIR}/%.o: ${SRC_DIR}/%.cpp
clean:
rm -rf "${build_dir}"
.PHONY: clean run all
.PHONY: clean run all build

@ -8,6 +8,9 @@ TESTS ?= $(shell find . -name 'sketch.ino' -exec dirname {} \;)
.PHONY: clean cmake-clean all googletest
all: ${TESTS}
@for test in ${TESTS}; do \
${MAKE} -s -f ${top_dir}/testing/makefiles/testcase.mk -C $${test} top_dir=${top_dir} testcase=$${test} run; \
done
cmake-clean:
-${MAKE} clean
@ -28,5 +31,8 @@ ${libcommon_a}:
Makefile:
@:
%: ${libcommon_a} googletest
${TESTS}: ${libcommon_a} googletest
${MAKE} -f ${top_dir}/testing/makefiles/testcase.mk -C $@ top_dir=${top_dir} testcase=$@
%+run:
${MAKE} -s -f ${top_dir}/testing/makefiles/testcase.mk -C $* top_dir=${top_dir} testcase=$* run

Loading…
Cancel
Save