mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-20 21:38:26 +00:00
bd32e1e3b3
(so you can run `make test_emu` with a physical Trezor connected)
22 lines
339 B
Bash
Executable File
22 lines
339 B
Bash
Executable File
#!/bin/bash
|
|
|
|
MICROPYTHON=../build/unix/micropython
|
|
PYOPT=0
|
|
|
|
# run emulator
|
|
cd ../src
|
|
$MICROPYTHON -O$PYOPT main.py >/dev/null &
|
|
upy_pid=$!
|
|
sleep 1
|
|
|
|
export TREZOR_PATH=udp:127.0.0.1:21324
|
|
|
|
# run tests
|
|
cd ../tests
|
|
error=0
|
|
if ! pytest -k 'not skip_t2' --pyargs trezorlib.tests.device_tests "$@"; then
|
|
error=1
|
|
fi
|
|
kill $upy_pid
|
|
exit $error
|