1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 11:58:13 +00:00
trezor-firmware/tests/run_tests.sh

23 lines
357 B
Bash
Raw Normal View History

#!/bin/bash
MICROPYTHON=../vendor/micropython/unix/micropython
results=()
2016-10-03 14:32:58 +00:00
error=0
if [ -z "$*" ]; then
list="test_*.py"
else
list="$*"
fi
for i in $list; do
2016-04-12 16:09:23 +00:00
echo
if $MICROPYTHON $i; then
results+=("OK $i")
else
results+=("FAIL $i")
2016-10-03 14:32:58 +00:00
error=1
fi
2016-04-12 16:09:23 +00:00
done
echo
echo 'Summary:'
printf '%s\n' "${results[@]}"
2016-10-03 14:32:58 +00:00
exit $error