1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-23 16:08:17 +00:00
trezor-firmware/script/test

16 lines
272 B
Plaintext
Raw Normal View History

2017-12-17 16:00:32 +00:00
#!/bin/bash
# script/test: Run test suite for application.
set -e
cd "$(dirname "$0")/.."
2017-12-18 21:44:50 +00:00
if [ "$EMULATOR" = 1 ]; then
trap "kill %1" EXIT
2017-12-17 16:00:32 +00:00
firmware/trezor.elf &
fi
2017-12-18 21:44:50 +00:00
TREZOR_TRANSPORT_V1=1 "${PYTHON:-python}" -m pytest --pyarg trezorlib.tests.device_tests "$@"