fix(test): stop using pristine and use 4 threads
This commit is contained in:
parent
5f56266a69
commit
f1224422c5
1 changed files with 2 additions and 2 deletions
|
@ -4,14 +4,14 @@ if [ -z "$1" ]; then
|
||||||
echo "Usage: ./run-test.sh <path to testcase>"
|
echo "Usage: ./run-test.sh <path to testcase>"
|
||||||
exit 1
|
exit 1
|
||||||
elif [ "$1" = "all" ]; then
|
elif [ "$1" = "all" ]; then
|
||||||
find tests -name native_posix.keymap -exec dirname \{\} \; | xargs -l -P 2 ./run-test.sh
|
find tests -name native_posix.keymap -exec dirname \{\} \; | xargs -l -P 4 ./run-test.sh
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
testcase="$1"
|
testcase="$1"
|
||||||
echo "Running $testcase:"
|
echo "Running $testcase:"
|
||||||
|
|
||||||
west build --pristine -d build/$testcase -b native_posix -- -DZMK_CONFIG=$testcase > /dev/null
|
west build -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
|
./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
|
diff -au $testcase/keycode_events.snapshot build/$testcase/keycode_events.log
|
||||||
|
|
Loading…
Reference in a new issue