-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update how we do our simulator builds to try to avoid a race when bui…
…lding the arduino core (#1371) * Current Docker Desktop no longer accepts that trailing colon * Make the firmwaredump plugin not explode when compiled against the simulator This makes it easier to smoke test more stuff in the simulator * Add a cache warmer to our test suite. This will be run before any other tests when running simulator tests. In theory, this might help prevent race conditions during simulator testing in CI from causing test failures * Remove an extra internal / from a path * Build the cache warmer test before any other (including everything in the plugins directory) Update the "tests failed" output to be a little bit more friendly * There was a typo in a directory name that only bit us when building on case-sensitive filesystems. (This is an older plugin not used in current code)
- Loading branch information
Showing
9 changed files
with
132 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
**/bin/ | ||
**/lib/ | ||
**/obj/ | ||
_cache-warmer/warm-cache/generated-all-plugins.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"cpu": { | ||
"fqbn": "keyboardio:virtual:model01", | ||
"port": "" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
default_fqbn: keyboardio:virtual:model01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
VERSION 1 | ||
|
||
KEYSWITCH A 2 1 | ||
KEYSWITCH S 2 2 | ||
|
||
# ============================================================================== | ||
NAME Warm the cache | ||
|
||
RUN 4 ms | ||
PRESS A | ||
RUN 1 cycle | ||
EXPECT keyboard-report Key_A # Key A should be pressed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* -*- mode: c++ -*- | ||
* Copyright (C) 2020 Keyboard.io, Inc. | ||
* | ||
* 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, version 3. | ||
* | ||
* 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 <Kaleidoscope.h> | ||
#include "generated-all-plugins.h" | ||
// *INDENT-OFF* | ||
KEYMAPS( | ||
[0] = KEYMAP_STACKED | ||
( | ||
___, ___, ___, ___, ___, ___, ___, | ||
___, ___, ___, ___, ___, ___, ___, | ||
___, Key_A, Key_S, ___, ___, ___, | ||
___, ___, ___, ___, ___, ___, ___, | ||
___, ___, ___, ___, | ||
___, | ||
|
||
___, ___, ___, ___, ___, ___, ___, | ||
___, ___, ___, ___, ___, ___, ___, | ||
___, ___, ___, ___, ___, ___, | ||
___, ___, ___, ___, ___, ___, ___, | ||
___, ___, ___, ___, | ||
___ | ||
), | ||
) | ||
// *INDENT-ON* | ||
|
||
void setup() { | ||
Kaleidoscope.setup(); | ||
} | ||
|
||
void loop() { | ||
Kaleidoscope.loop(); | ||
} |