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_device_emu.sh

20 lines
307 B

#!/bin/bash
# run emulator
cd ../src
../build/unix/micropython -O0 main.py >/dev/null &
upy_pid=$!
sleep 1
# run tests
cd ../tests
error=0
if ! TREZOR_TRANSPORT_V1=0 ./run_tests_device.sh; then
error=1
fi
if ! TREZOR_TRANSPORT_V1=1 ./run_tests_device.sh; then
error=1
fi
kill $upy_pid
exit $error