fix(test): change the layout
This commit is contained in:
parent
6cd46b9504
commit
f02fa01e9a
14 changed files with 82 additions and 72 deletions
17
app/run-test.sh
Executable file
17
app/run-test.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: ./run-test.sh <path to testcase>"
|
||||
exit 1
|
||||
elif [ "$1" = "all" ]; then
|
||||
find tests -name native_posix.keymap -exec dirname \{\} \; | xargs -l -P 2 ./run-test.sh
|
||||
exit $?
|
||||
fi
|
||||
|
||||
testcase="$1"
|
||||
echo "Running $testcase:"
|
||||
|
||||
west build --pristine -d build/$testcase -b native_posix -- -DZMK_CONFIG=$testcase > /dev/null
|
||||
./build/$testcase/zephyr/zmk.exe | sed -e "s/.*> //" | sed -n -f $testcase/events.patterns > build/$testcase/keycode_events.log
|
||||
|
||||
diff -au $testcase/keycode_events.snapshot build/$testcase/keycode_events.log
|
||||
Loading…
Add table
Add a link
Reference in a new issue