|
|
@ -23,7 +23,7 @@ west build -d build/$testcase -b native_posix -- -DZMK_CONFIG=$testcase > /dev/n |
|
|
|
if [ $? -gt 0 ]; then |
|
|
|
if [ $? -gt 0 ]; then |
|
|
|
echo "FAIL: $testcase did not build" >> ./build/tests/pass-fail.log |
|
|
|
echo "FAIL: $testcase did not build" >> ./build/tests/pass-fail.log |
|
|
|
else |
|
|
|
else |
|
|
|
./build/$testcase/zephyr/zmk.exe | sed -e "s/.*> //" | sed -n -f $testcase/events.patterns > build/$testcase/keycode_events.log |
|
|
|
./build/$testcase/zephyr/zmk.exe | sed -e "s/.*> //" | tee build/$testcase/keycode_events_full.log | sed -n -f $testcase/events.patterns > build/$testcase/keycode_events.log |
|
|
|
diff -au $testcase/keycode_events.snapshot build/$testcase/keycode_events.log |
|
|
|
diff -au $testcase/keycode_events.snapshot build/$testcase/keycode_events.log |
|
|
|
if [ $? -gt 0 ]; then |
|
|
|
if [ $? -gt 0 ]; then |
|
|
|
echo "FAIL: $testcase" >> ./build/tests/pass-fail.log |
|
|
|
echo "FAIL: $testcase" >> ./build/tests/pass-fail.log |
|
|
|