mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-04-28 13:09:04 +00:00
tests: make path to tested binary configurable
This commit is contained in:
parent
9a42612c41
commit
876ba5f590
@ -3,7 +3,7 @@
|
|||||||
declare -a results
|
declare -a results
|
||||||
declare -i PYOPT=1 passed=0 failed=0 exit_code=0
|
declare -i PYOPT=1 passed=0 failed=0 exit_code=0
|
||||||
declare COLOR_GREEN='\e[32m' COLOR_RED='\e[91m' COLOR_RESET='\e[39m'
|
declare COLOR_GREEN='\e[32m' COLOR_RED='\e[91m' COLOR_RESET='\e[39m'
|
||||||
declare MICROPYTHON=../build/unix/micropython
|
MICROPYTHON="${MICROPYTHON:-../build/unix/micropython}"
|
||||||
|
|
||||||
print_summary() {
|
print_summary() {
|
||||||
echo
|
echo
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
SDIR="$(SHELL_SESSION_FILE='' && cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
SDIR="$(SHELL_SESSION_FILE='' && cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
CORE_DIR="$SDIR/.."
|
CORE_DIR="$SDIR/.."
|
||||||
MICROPYTHON="$CORE_DIR/build/unix/micropython"
|
MICROPYTHON="${MICROPYTHON:-$CORE_DIR/build/unix/micropython}"
|
||||||
RUN_TEST_EMU=1
|
RUN_TEST_EMU=1
|
||||||
DISABLE_FADE=1
|
DISABLE_FADE=1
|
||||||
PYOPT=0
|
PYOPT=0
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
SDIR="$(SHELL_SESSION_FILE='' && cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
SDIR="$(SHELL_SESSION_FILE='' && cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
CORE_DIR="$SDIR/.."
|
CORE_DIR="$SDIR/.."
|
||||||
MICROPYTHON="$CORE_DIR/build/unix/micropython"
|
MICROPYTHON="${MICROPYTHON:-$CORE_DIR/build/unix/micropython}"
|
||||||
DISABLE_FADE=1
|
DISABLE_FADE=1
|
||||||
PYOPT=0
|
PYOPT=0
|
||||||
upy_pid=""
|
upy_pid=""
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
# script/test: Run test suite for application.
|
# script/test: Run test suite for application.
|
||||||
|
|
||||||
|
EMULATOR_BINARY="${EMULATOR_BINARY:-firmware/trezor.elf}"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
@ -9,7 +11,7 @@ cd "$(dirname "$0")/.."
|
|||||||
if [ "$EMULATOR" = 1 ]; then
|
if [ "$EMULATOR" = 1 ]; then
|
||||||
trap "kill %1" EXIT
|
trap "kill %1" EXIT
|
||||||
|
|
||||||
firmware/trezor.elf &
|
"${EMULATOR_BINARY}" &
|
||||||
export TREZOR_PATH=udp:127.0.0.1:21324
|
export TREZOR_PATH=udp:127.0.0.1:21324
|
||||||
"${PYTHON:-python}" script/wait_for_emulator.py
|
"${PYTHON:-python}" script/wait_for_emulator.py
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user