aboutsummaryrefslogtreecommitdiff
path: root/build_full_test.mk
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2021-11-23 03:31:01 +0100
committerGitHub <noreply@github.com>2021-11-23 13:31:01 +1100
commita24bdccee0580d1263733bc7e66e4e4f97713f19 (patch)
tree868cb12a436a87b39c936292f442bcc266ae0224 /build_full_test.mk
parente20bc76a1e05d02c15a452e51fa76d9ec39b0369 (diff)
downloadqmk_firmware-a24bdccee0580d1263733bc7e66e4e4f97713f19.tar.gz
qmk_firmware-a24bdccee0580d1263733bc7e66e4e4f97713f19.zip
[Tests] Increase QMK test coverage take 2 (#15269)
* Add per-test keymaps * Add better trace and info logs for failed unit-tests * Add layer state assertion with tracing message * Use individual test binaries configuration options * Add basic qmk functionality tests * Add tap hold configurations tests * Add auto shift tests Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'build_full_test.mk')
-rw-r--r--build_full_test.mk23
1 files changed, 13 insertions, 10 deletions
diff --git a/build_full_test.mk b/build_full_test.mk
index f8030cb06..4cd1ac61b 100644
--- a/build_full_test.mk
+++ b/build_full_test.mk
@@ -13,21 +13,24 @@
13# You should have received a copy of the GNU General Public License 13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>. 14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15 15
16#include $(TMK_PATH)/protocol.mk 16$(TEST)_INC := \
17 tests\test_common\common_config.h
17 18
18TEST_PATH=tests/$(TEST) 19$(TEST)_SRC := \
19
20$(TEST)_SRC= \
21 $(TEST_PATH)/keymap.c \
22 $(TMK_COMMON_SRC) \ 20 $(TMK_COMMON_SRC) \
23 $(QUANTUM_SRC) \ 21 $(QUANTUM_SRC) \
24 $(SRC) \ 22 $(SRC) \
23 tests/test_common/keymap.c \
25 tests/test_common/matrix.c \ 24 tests/test_common/matrix.c \
26 tests/test_common/test_driver.cpp \ 25 tests/test_common/test_driver.cpp \
27 tests/test_common/keyboard_report_util.cpp \ 26 tests/test_common/keyboard_report_util.cpp \
28 tests/test_common/test_fixture.cpp 27 tests/test_common/test_fixture.cpp \
29$(TEST)_SRC += $(patsubst $(ROOTDIR)/%,%,$(wildcard $(TEST_PATH)/*.cpp)) 28 tests/test_common/test_keymap_key.cpp \
29 tests/test_common/test_logger.cpp \
30 $(patsubst $(ROOTDIR)/%,%,$(wildcard $(TEST_PATH)/*.cpp))
31
32$(TEST)_DEFS := $(TMK_COMMON_DEFS) $(OPT_DEFS)
33
34$(TEST)_CONFIG := $(TEST_PATH)/config.h
30 35
31$(TEST)_DEFS=$(TMK_COMMON_DEFS) $(OPT_DEFS) 36VPATH += $(TOP_DIR)/tests/test_common \ No newline at end of file
32$(TEST)_CONFIG=$(TEST_PATH)/config.h
33VPATH+=$(TOP_DIR)/tests/test_common