]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Move test keymap to keymap.c
authorFred Sundvik <fsundvik@gmail.com>
Mon, 26 Jun 2017 20:56:01 +0000 (23:56 +0300)
committerJack Humbert <jack.humb@gmail.com>
Sun, 9 Jul 2017 01:59:51 +0000 (21:59 -0400)
build_full_test.mk
tests/basic/keymap.c [new file with mode: 0644]
tests/basic/test.cpp

index bfd89174de640af74bb676b71e8344563fc1fdc3..66ec48a2d3c0cf84265479210768cb48158611ec 100644 (file)
@@ -19,6 +19,7 @@ TEST_PATH=tests/$(TEST)
 
 $(TEST)_SRC= \
        $(TEST_PATH)/test.cpp \
+       $(TEST_PATH)/keymap.c \
        $(TMK_COMMON_SRC) \
        $(QUANTUM_SRC) \
        tests/test_common/matrix.c \
diff --git a/tests/basic/keymap.c b/tests/basic/keymap.c
new file mode 100644 (file)
index 0000000..2afb4d6
--- /dev/null
@@ -0,0 +1,24 @@
+/* Copyright 2017 Fred Sundvik
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "quantum.h"
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+       [0] = {
+           {KC_A, KC_B},
+           {KC_C, KC_D}
+       },
+};
index 1bd5c2762d8e41ac4993953544275e0bc7d2aa43..f574481f2400094026d94f6e8235a49dc90d6595 100644 (file)
 using testing::_;
 using testing::Return;
 
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
-       [0] = {
-           {KC_A, KC_B},
-           {KC_C, KC_D}
-       },
-};
-
 class KeyPress : public TestFixture {};
 
 TEST_F(KeyPress, SendKeyboardIsNotCalledWhenNoKeyIsPressed) {