1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 21:38:26 +00:00
trezor-firmware/tests/run_tests_device_emu.sh

20 lines
389 B
Bash
Raw Normal View History

#!/bin/bash
# run emulator
cd ../src
../build/unix/micropython -O0 main.py >/dev/null &
upy_pid=$!
sleep 1
# run tests
cd ../tests
2017-10-31 12:55:51 +00:00
error=0
2017-12-19 18:32:07 +00:00
if ! TREZOR_TRANSPORT_V1=0 pytest -k 'not skip_t2' --pyargs trezorlib.tests.device_tests ; then
2017-10-31 12:55:51 +00:00
error=1
fi
2017-12-19 18:32:07 +00:00
if ! TREZOR_TRANSPORT_V1=1 pytest -k 'not skip_t2' --pyargs trezorlib.tests.device_tests ; then
2017-10-31 12:55:51 +00:00
error=1
fi
kill $upy_pid
exit $error