Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
bb954d80
Commit
bb954d80
authored
Sep 20, 2016
by
Damien George
Browse files
tests: Get cmdline verbose tests running again.
The showbc function now no longer uses the system printf so works correctly.
parent
fbddea92
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/cmdline/cmd_showbc.py.exp
View file @
bb954d80
...
...
@@ -5,7 +5,7 @@ Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
arg names:
(N_STATE 3)
(N_EXC_STACK 0)
bc=-
3
line=1
bc=-
1
line=1
########
bc=\\d\+ line=134
00 MAKE_FUNCTION \.\+
...
...
@@ -34,7 +34,7 @@ arg names:
(INIT_CELL 14)
(INIT_CELL 15)
(INIT_CELL 16)
bc=-
6
line=1
bc=-
4
line=1
########
bc=\\d\+ line=118
00 LOAD_CONST_NONE
...
...
@@ -86,8 +86,7 @@ arg names:
\\d\+ UNARY_OP 4
\\d\+ STORE_FAST 9
\\d\+ LOAD_FAST 0
\\d\+ UNARY_OP 0
\\d\+ NOT
\\d\+ UNARY_OP 6
\\d\+ STORE_FAST 10
\\d\+ LOAD_FAST 0
\\d\+ LOAD_DEREF 14
...
...
@@ -108,8 +107,7 @@ arg names:
\\d\+ LOAD_DEREF 14
\\d\+ LOAD_FAST 1
\\d\+ BINARY_OP 27 __eq__
\\d\+ UNARY_OP 0
\\d\+ NOT
\\d\+ UNARY_OP 6
\\d\+ STORE_FAST 10
\\d\+ LOAD_DEREF 14
\\d\+ LOAD_ATTR c (cache=0)
...
...
@@ -318,7 +316,7 @@ Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
arg names:
(N_STATE 2)
(N_EXC_STACK 0)
bc=-
3
line=1
bc=-
1
line=1
bc=0 line=129
bc=3 line=130
bc=6 line=131
...
...
@@ -342,14 +340,14 @@ Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
arg names:
(N_STATE 1)
(N_EXC_STACK 0)
bc=-
3
line=1
bc=1
0
line=135
bc=-
1
line=1
bc=1
3
line=135
00 LOAD_NAME __name__ (cache=0)
0
3
STORE_NAME __module__
0
5
LOAD_CONST_STRING 'Class'
0
8
STORE_NAME __qualname__
1
0
LOAD_CONST_NONE
1
1
RETURN_VALUE
0
4
STORE_NAME __module__
0
7
LOAD_CONST_STRING 'Class'
1
0 STORE_NAME __qualname__
1
3
LOAD_CONST_NONE
1
4
RETURN_VALUE
File cmdline/cmd_showbc.py, code block '<genexpr>' (descriptor: \.\+, bytecode @\.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
########
...
...
@@ -384,7 +382,7 @@ arg names: * * *
07 LOAD_DEREF 1
09 POP_JUMP_IF_FALSE 3
12 LOAD_DEREF 0
14
LIST_APPEND 2
14
STORE_COMP 8
16 JUMP 3
19 RETURN_VALUE
File cmdline/cmd_showbc.py, code block '<dictcomp>' (descriptor: \.\+, bytecode @\.\+ bytes)
...
...
@@ -404,7 +402,7 @@ arg names: * * *
09 POP_JUMP_IF_FALSE 3
12 LOAD_DEREF 0
14 LOAD_DEREF 0
16
MAP_ADD 2
16
STORE_COMP 13
18 JUMP 3
21 RETURN_VALUE
File cmdline/cmd_showbc.py, code block 'closure' (descriptor: \.\+, bytecode @\.\+ bytes)
...
...
@@ -443,4 +441,4 @@ arg names: * b
mem: total=\\d\+, current=\\d\+, peak=\\d\+
stack: \\d\+ out of \\d\+
GC: total: \\d\+, used: \\d\+, free: \\d\+
No. of 1-blocks: \\d\+, 2-blocks: \\d\+, max blk sz: \\d\+
No. of 1-blocks: \\d\+, 2-blocks: \\d\+, max blk sz: \\d\+
, max free sz: \\d\+
tests/cmdline/cmd_verbose.py.exp
View file @
bb954d80
1
File cmdline/cmd_verbose.py, code block '<module>' (descriptor: \.\+, bytecode \.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
0
8
\.\+
0
2
\.\+
########
\.\+5b
arg names:
(N_STATE 2)
(N_EXC_STACK 0)
bc=-
3
line=1
bc=-
1
line=1
bc=0 line=3
00 LOAD_NAME print (cache=0)
04 LOAD_CONST_SMALL_INT 1
...
...
@@ -15,7 +14,8 @@ arg names:
07 POP_TOP
08 LOAD_CONST_NONE
09 RETURN_VALUE
1
mem: total=\\d\+, current=\\d\+, peak=\\d\+
stack: \\d\+ out of \\d\+
GC: total: \\d\+, used: \\d\+, free: \\d\+
No. of 1-blocks: \\d\+, 2-blocks: \\d\+, max blk sz: \\d\+
No. of 1-blocks: \\d\+, 2-blocks: \\d\+, max blk sz: \\d\+
, max free sz: \\d\+
tests/run-tests
View file @
bb954d80
...
...
@@ -187,11 +187,6 @@ def run_tests(pyb, tests, args):
if
not
'True'
in
str
(
t
,
'ascii'
):
skip_tests
.
add
(
'cmdline/repl_emacs_keys.py'
)
# These tests are now broken because showbc uses buffered printf
if
True
:
skip_tests
.
add
(
'cmdline/cmd_verbose.py'
)
skip_tests
.
add
(
'cmdline/cmd_showbc.py'
)
upy_byteorder
=
run_micropython
(
pyb
,
args
,
'feature_check/byteorder.py'
)
has_complex
=
run_micropython
(
pyb
,
args
,
'feature_check/complex.py'
)
==
b
'complex
\n
'
cpy_byteorder
=
subprocess
.
check_output
([
CPYTHON3
,
'feature_check/byteorder.py'
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment