1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00
trezor-firmware/script/test

21 lines
377 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")/.."
# Kill jobs on exit
trap "exit" INT TERM
trap "kill 0" EXIT
if [ "$EMULATOR" = 1 ] && [ -z "$(pidof trezor.elf)" ]; then
2017-12-17 16:00:32 +00:00
firmware/trezor.elf &
fi
TREZOR_TRANSPORT_V1=1 pytest "vendor/python-trezor/tests/device_tests" &
# Wait for either job to exit and kill the other
wait -n