You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/tests/run_tests.sh

28 lines
353 B

#!/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