1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +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
EXE=build/unix/micropython
OPTLEVEL="${OPTLEVEL:-0}"
OPTLEVEL="${OPTLEVEL:-1}"
MAIN="${MAIN:-main.py}"
BROWSER="${BROWSER:-chromium}"
if file $EXE | grep -q 80386 ; then

View File

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

View File

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