mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-08 21:52:42 +00:00
21 lines
345 B
Plaintext
21 lines
345 B
Plaintext
|
#!/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 ]; then
|
||
|
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
|