mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 17:38:39 +00:00
28 lines
353 B
Bash
Executable File
28 lines
353 B
Bash
Executable File
#!/bin/bash
|
|
|
|
MICROPYTHON=../build/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
|