mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-29 19:08:12 +00:00
23 lines
357 B
Bash
Executable File
23 lines
357 B
Bash
Executable File
#!/bin/bash
|
|
MICROPYTHON=../vendor/micropython/unix/micropython
|
|
results=()
|
|
error=0
|
|
if [ -z "$*" ]; then
|
|
list="test_*.py"
|
|
else
|
|
list="$*"
|
|
fi
|
|
for i in $list; do
|
|
echo
|
|
if $MICROPYTHON $i; then
|
|
results+=("OK $i")
|
|
else
|
|
results+=("FAIL $i")
|
|
error=1
|
|
fi
|
|
done
|
|
echo
|
|
echo 'Summary:'
|
|
printf '%s\n' "${results[@]}"
|
|
exit $error
|