From ad067ee95a5c70e9c61912c60bbaad525d91b70b Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 16 Nov 2020 22:59:07 -0800 Subject: [PATCH] snap --- tests/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index efa7f810..0501454f 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,4 +1,7 @@ top_dir := $(abspath $(dir $(lastword ${MAKEFILE_LIST}))..) + +$(info Top dir is $(top_dir)) + build_dir := ${top_dir}/_build 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 -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 +$(info TEst dir is $(TESTS)) 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 || 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: rm -rf "${top_dir}/testing/googletest/build/*" clean: cmake-clean -# ${top_dir}/testing/googletest/build/Makefile @for test in ${TESTS}; do \ ${MAKE} -s -f ${top_dir}/testing/makefiles/testcase.mk -C $${test} top_dir=${top_dir} testcase=$${test} clean; \ done