diff options
author | Stefan Kerkmann <karlk90@pm.me> | 2021-11-22 22:15:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 08:15:04 +1100 |
commit | b6054c0206609f3755f71d819643644d250288b0 (patch) | |
tree | 4f6f33040bb5184d47144090058eb089d2782b6c /build_full_test.mk | |
parent | f4966a19d69a7f3bbefeea0537071d7d7c2abbdd (diff) | |
download | qmk_firmware-b6054c0206609f3755f71d819643644d250288b0.tar.gz qmk_firmware-b6054c0206609f3755f71d819643644d250288b0.zip |
[Tests] Increase QMK test coverage (#13789)
* 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
* `qmk format-c
* Fix tests
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'build_full_test.mk')
-rw-r--r-- | build_full_test.mk | 23 |
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 | ||
18 | TEST_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) | 36 | VPATH += $(TOP_DIR)/tests/test_common \ No newline at end of file |
32 | $(TEST)_CONFIG=$(TEST_PATH)/config.h | ||
33 | VPATH+=$(TOP_DIR)/tests/test_common | ||