1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-06 14:52:33 +00:00

tests: fix trezor.config test by changing PYOPT to 1

This commit is contained in:
Pavol Rusnak 2018-02-09 13:41:31 +01:00
parent b0242d3a3e
commit 800c2c64c8
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 7 additions and 3 deletions

2
emu.sh
View File

@ -3,7 +3,7 @@
source emu.config 2>/dev/null source emu.config 2>/dev/null
EXE=build/unix/micropython EXE=build/unix/micropython
OPTLEVEL="${OPTLEVEL:-0}" OPTLEVEL="${OPTLEVEL:-1}"
MAIN="${MAIN:-main.py}" MAIN="${MAIN:-main.py}"
BROWSER="${BROWSER:-chromium}" BROWSER="${BROWSER:-chromium}"
if file $EXE | grep -q 80386 ; then if file $EXE | grep -q 80386 ; then

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
MICROPYTHON=../build/unix/micropython MICROPYTHON=../build/unix/micropython
PYOPT=1
results=() results=()
error=0 error=0
@ -13,7 +14,7 @@ fi
for i in $list; do for i in $list; do
echo echo
if $MICROPYTHON $i; then if $MICROPYTHON -O$PYOPT $i; then
results+=("OK $i") results+=("OK $i")
else else
results+=("FAIL $i") results+=("FAIL $i")

View File

@ -1,8 +1,11 @@
#!/bin/bash #!/bin/bash
MICROPYTHON=../build/unix/micropython
PYOPT=0
# run emulator # run emulator
cd ../src cd ../src
../build/unix/micropython -O0 main.py >/dev/null & $MICROPYTHON -O$PYOPT main.py >/dev/null &
upy_pid=$! upy_pid=$!
sleep 1 sleep 1