summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-02-17 12:01:49 +1100
committerDamien George <damien@micropython.org>2022-02-24 18:29:02 +1100
commit73a1927fce29f461945708675b82bd3d29f9f568 (patch)
tree0c8e89d99322b4de4a33113323c9b1394d97c1c6 /tools
parentc0f2af4e862a9bb80e401894bad30378dbeac85e (diff)
github/workflows: Add new workflow to test .mpy file format and tools.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ci.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/ci.sh b/tools/ci.sh
index 3e78ae4a0..075e5e423 100755
--- a/tools/ci.sh
+++ b/tools/ci.sh
@@ -68,6 +68,23 @@ function ci_code_size_build {
}
########################################################################################
+# .mpy file format
+
+function ci_mpy_format_setup {
+ sudo pip3 install pyelftools
+}
+
+function ci_mpy_format_test {
+ # Test mpy-tool.py dump feature on bytecode
+ python2 ./tools/mpy-tool.py -xd ports/minimal/frozentest.mpy
+ python3 ./tools/mpy-tool.py -xd ports/minimal/frozentest.mpy
+
+ # Test mpy-tool.py dump feature on native code
+ make -C examples/natmod/features1
+ ./tools/mpy-tool.py -xd examples/natmod/features1/features1.mpy
+}
+
+########################################################################################
# ports/cc3200
function ci_cc3200_setup {