refactor(tests): Move to native_posix_64 target.
* Allows removing multilib from docker images * Run properly in aarch64 host docker containers for testing on Rasberry Pi. * Small sticky-keys fix to initialize w/ correct constant for max uin32_t value.
This commit is contained in:
parent
35db784b5d
commit
953f5212a8
app
boards
run-test.shsrc/behaviors
tests
backlight
basic
config-brt
config-on
config-step
cycle
low-brightness
caps-word
continue-with-non-alpha-continue-list-item
continue-with-non-modified-numeric-usage-id
deactivate-by-non-alpha-non-continuation
deactivate-by-second-press
combo
combos-and-holdtaps-0
combos-and-holdtaps-1
combos-and-holdtaps-2
layer-filter-0
layer-filter-1
multiple-timeouts
overlapping-combos-0
overlapping-combos-1
overlapping-combos-2
overlapping-combos-3
partially-overlapping-combos
press-release-long-combo-complete
press-release-long-combo-incomplete
press-release-long-combo-wrong-last-key
press-release
press-timeout
press1-press2-release1-release2
press1-press2-release2-release1
press1-release1-press2-release2
slowrelease-disabled
slowrelease-enabled
conditional-layer
chained-activation
mo-overlap
multiple-configs
quad-layer
tri-layer-alt-order
tri-layer
gresc
hold-tap
balanced
1-dn-up
2-dn-timer-up
3a-moddn-dn-modup-up
3b-moddn-dn-modup-timer-up
3c-kcdn-dn-kcup-up
3d-kcdn-dn-kcup-timer-up
4a-dn-htdn-timer-htup-up
4a-dn-kcdn-timer-kcup-up
4b-dn-kcdn-kcup-timer-up
4c-dn-kcdn-kcup-up
4d-dn-kcdn-timer-up-kcup
5-quick-tap
6-retro-tap
7-positional
2-dn-timer-up
4a-dn-ntgdn-timer-ntgup-up
4a-dn-tgdn-timer-tgup-up
tgdn-dn-ntgdn-timer-ntgup-tgup-up
many-nested
hold-preferred
1-dn-up
2-dn-timer-up
3a-moddn-dn-modup-up
3b-moddn-dn-modup-timer-up
3c-kcdn-dn-kcup-up
3d-kcdn-dn-kcup-timer-up
4a-dn-htdn-timer-htup-up
4a-dn-kcdn-timer-kcup-up
4b-dn-kcdn-kcup-timer-up
4c-dn-kcdn-kcup-up
4d-dn-kcdn-timer-up-kcup
5-quick-tap
6-retro-tap
7-positional
2-dn-timer-up
4a-dn-ntgdn-timer-ntgup-up
4a-dn-tgdn-timer-tgup-up
tgdn-dn-ntgdn-timer-ntgup-tgup-up
tap-preferred
1-dn-up
2-dn-timer-up
3a-moddn-dn-modup-up
3b-moddn-dn-modup-timer-up
3c-kcdn-dn-kcup-up
3d-kcdn-dn-kcup-timer-up
4a-dn-htdn-timer-htup-up
4a-dn-kcdn-timer-kcup-up
4b-dn-kcdn-kcup-timer-up
4c-dn-kcdn-kcup-up
4d-dn-kcdn-timer-up-kcup
5-quick-tap
6-nested-timeouts
7-positional
2-dn-timer-up
4a-dn-ntgdn-timer-ntgup-up
4a-dn-tgdn-timer-tgup-up
11
app/boards/native_posix_64.conf
Normal file
11
app/boards/native_posix_64.conf
Normal file
@ -0,0 +1,11 @@
|
||||
CONFIG_KSCAN=n
|
||||
CONFIG_ZMK_KSCAN_MOCK_DRIVER=y
|
||||
CONFIG_ZMK_KSCAN_GPIO_DRIVER=n
|
||||
CONFIG_GPIO=n
|
||||
# Enable to have the native posix build expose USBIP device(s)
|
||||
# CONFIG_ZMK_USB=y
|
||||
CONFIG_LOG=y
|
||||
CONFIG_LOG_BACKEND_SHOW_COLOR=n
|
||||
CONFIG_ZMK_LOG_LEVEL_DBG=y
|
||||
CONFIG_DEBUG=y
|
||||
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
|
18
app/boards/native_posix_64.overlay
Normal file
18
app/boards/native_posix_64.overlay
Normal file
@ -0,0 +1,18 @@
|
||||
#include <behaviors.dtsi>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
#include <dt-bindings/zmk/kscan_mock.h>
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zmk,kscan = &kscan;
|
||||
};
|
||||
|
||||
kscan: kscan {
|
||||
compatible = "zmk,kscan-mock";
|
||||
label = "KSCAN_MOCK";
|
||||
|
||||
rows = <2>;
|
||||
columns = <2>;
|
||||
exit-after;
|
||||
};
|
||||
};
|
@ -13,7 +13,7 @@ if [ $path = "all" ]; then
|
||||
path="tests"
|
||||
fi
|
||||
|
||||
testcases=$(find $path -name native_posix.keymap -exec dirname \{\} \;)
|
||||
testcases=$(find $path -name native_posix_64.keymap -exec dirname \{\} \;)
|
||||
num_cases=$(echo "$testcases" | wc -l)
|
||||
if [ $num_cases -gt 1 ]; then
|
||||
echo "" > ./build/tests/pass-fail.log
|
||||
@ -26,7 +26,7 @@ fi
|
||||
testcase="$path"
|
||||
echo "Running $testcase:"
|
||||
|
||||
west build -d build/$testcase -b native_posix -- -DZMK_CONFIG="$(pwd)/$testcase" > /dev/null 2>&1
|
||||
west build -d build/$testcase -b native_posix_64 -- -DZMK_CONFIG="$(pwd)/$testcase" > /dev/null 2>&1
|
||||
if [ $? -gt 0 ]; then
|
||||
echo "FAILED: $testcase did not build" | tee -a ./build/tests/pass-fail.log
|
||||
exit 1
|
||||
|
@ -26,7 +26,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
|
||||
|
||||
#define ZMK_BHV_STICKY_KEY_MAX_HELD 10
|
||||
|
||||
#define ZMK_BHV_STICKY_KEY_POSITION_FREE ULONG_MAX
|
||||
#define ZMK_BHV_STICKY_KEY_POSITION_FREE UINT32_MAX
|
||||
|
||||
struct behavior_sticky_key_config {
|
||||
uint32_t release_after_ms;
|
||||
|
0
app/tests/backlight/config-on/native_posix.conf → app/tests/backlight/config-on/native_posix_64.conf
0
app/tests/backlight/config-on/native_posix.conf → app/tests/backlight/config-on/native_posix_64.conf
@ -0,0 +1,17 @@
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
#include <behaviors.dtsi>
|
||||
#include <dt-bindings/zmk/kscan_mock.h>
|
||||
#include "../behavior_keymap.dtsi"
|
||||
|
||||
&kscan {
|
||||
events = <
|
||||
ZMK_MOCK_PRESS(0,0,10000)
|
||||
ZMK_MOCK_RELEASE(0,0,10)
|
||||
ZMK_MOCK_PRESS(0,1,30)
|
||||
ZMK_MOCK_RELEASE(0,1,30)
|
||||
ZMK_MOCK_PRESS(0,0,10)
|
||||
ZMK_MOCK_RELEASE(0,0,30)
|
||||
ZMK_MOCK_PRESS(0,1,30)
|
||||
ZMK_MOCK_RELEASE(0,1,1000)
|
||||
>;
|
||||
};
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user