mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-17 11:58:13 +00:00
25 lines
401 B
Bash
Executable File
25 lines
401 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 ..
|
|
|
|
export EC_BACKEND_FORCE=1
|
|
export EC_BACKEND=1
|
|
export TREZOR_TEST_GET_TX=1
|
|
export TREZOR_TEST_LIVE_REFRESH=1
|
|
python3 -m unittest trezor_monero_test.test_trezor
|
|
error=$?
|
|
kill $upy_pid
|
|
exit $error
|