1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 07:18:09 +00:00
trezor-firmware/legacy/script/test

20 lines
390 B
Plaintext
Raw Normal View History

2017-12-17 16:00:32 +00:00
#!/bin/bash
# script/test: Run test suite for application.
EMULATOR_BINARY="${EMULATOR_BINARY:-firmware/trezor.elf}"
2017-12-17 16:00:32 +00:00
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
"${EMULATOR_BINARY}" &
export TREZOR_PATH=udp:127.0.0.1:21324
"${PYTHON:-python}" script/wait_for_emulator.py
2017-12-17 16:00:32 +00:00
fi
"${PYTHON:-python}" -m pytest ../tests/device_tests "$@"