1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-09 17:10:17 +00:00
trezor-firmware/script/test
2017-12-19 14:11:51 +01:00

16 lines
272 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 &
fi
TREZOR_TRANSPORT_V1=1 "${PYTHON:-python}" -m pytest --pyarg trezorlib.tests.device_tests "$@"