1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 23:08:14 +00:00
trezor-firmware/legacy/script/test
2019-07-09 12:51:48 +02:00

18 lines
346 B
Bash
Executable File

#!/bin/bash
# script/test: Run test suite for application.
set -e
cd "$(dirname "$0")/.."
if [ "$EMULATOR" = 1 ]; then
trap "kill %1" EXIT
firmware/trezor.elf &
export TREZOR_PATH=udp:127.0.0.1:21324
"${PYTHON:-python}" script/wait_for_emulator.py
fi
"${PYTHON:-python}" -m pytest --pyargs trezorlib.tests.device_tests "$@"