mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 20:50:14 +01:00
github/workflows: Test mpy-cross debug emitter.
This commit adds a new workflow step to the CI, to test the debug emitter provided by mpy-cross. The checks being done are limited to make sure that the debug emitter does not crash and emits opcodes for a simple test file that is guaranteed to work for all configurations. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
This commit is contained in:
committed by
Damien George
parent
65f994e26a
commit
6b661ca3f6
@@ -173,6 +173,15 @@ function ci_mpy_format_test {
|
||||
$micropython ./tools/mpy-tool.py -x -d examples/natmod/features1/features1.mpy
|
||||
}
|
||||
|
||||
function ci_mpy_cross_debug_emitter {
|
||||
make ${MAKEOPTS} -C mpy-cross
|
||||
mpy_cross=./mpy-cross/build/mpy-cross
|
||||
|
||||
# Make sure the debug emitter does not crash or fail for simple files
|
||||
$mpy_cross -X emit=native -march=debug ./tests/basics/0prelim.py | \
|
||||
grep -E "ENTRY|EXIT" | wc -l | grep "^2$"
|
||||
}
|
||||
|
||||
########################################################################################
|
||||
# ports/cc3200
|
||||
|
||||
|
||||
Reference in New Issue
Block a user