You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/tests/run_tests_device_emu.sh

22 lines
278 B

#!/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 ..
error=0
if ! pytest "$@"; then
error=1
fi
kill $upy_pid
exit $error