micropython/tests/micropython
Jim Mussared d94141e147 py/persistentcode: Introduce .mpy sub-version.
The intent is to allow us to make breaking changes to the native ABI (e.g.
changes to dynruntime.h) without needing the bytecode version to increment.

With this commit the two bits previously used for the feature flags (but
now unused as of .mpy version 6) encode a sub-version.  A bytecode-only
.mpy file can be loaded as long as MPY_VERSION matches, but a native .mpy
(i.e. one with an arch set) must also match MPY_SUB_VERSION.  This allows 3
additional updates to the native ABI per bytecode revision.

The sub-version is set to 1 because the previous commits that changed the
layout of mp_obj_type_t have changed the native ABI.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Signed-off-by: Damien George <damien@micropython.org>
2022-09-19 23:19:55 +10:00
..
builtin_execfile.py tests/micropython: Add test for builtin execfile() function. 2022-06-29 12:48:42 +10:00
builtin_execfile.py.exp tests/micropython: Add test for builtin execfile() function. 2022-06-29 12:48:42 +10:00
const.py tests/micropython/const.py: Add comment about required config for test. 2021-11-17 14:28:20 +11:00
const.py.exp
const2.py
const2.py.exp
const_alltypes.py py/parse: Allow all constant objects to be used in "X = const(o)". 2022-05-18 16:18:35 +10:00
const_alltypes.py.exp py/parse: Allow all constant objects to be used in "X = const(o)". 2022-05-18 16:18:35 +10:00
const_error.py
const_error.py.exp
const_intbig.py
const_intbig.py.exp
decorator.py
decorator.py.exp
decorator_error.py
decorator_error.py.exp
emg_exc.py
emg_exc.py.exp
extreme_exc.py tests/micropython: Fully unlink nested list in extreme exc test. 2022-05-18 09:16:33 +10:00
extreme_exc.py.exp
heap_lock.py
heap_lock.py.exp
heap_locked.py
heap_locked.py.exp
heapalloc.py tests/micropython: Add tests that const tuples don't use the heap. 2022-04-15 00:17:02 +10:00
heapalloc.py.exp tests/micropython: Add tests that const tuples don't use the heap. 2022-04-15 00:17:02 +10:00
heapalloc_bytesio.py
heapalloc_bytesio.py.exp
heapalloc_bytesio2.py
heapalloc_bytesio2.py.exp
heapalloc_exc_compressed.py tests/micropython: Switch from set.pop to raise-0 to test exc strings. 2022-03-07 16:48:35 +11:00
heapalloc_exc_compressed.py.exp tests/micropython: Switch from set.pop to raise-0 to test exc strings. 2022-03-07 16:48:35 +11:00
heapalloc_exc_compressed_emg_exc.py tests/micropython: Switch from set.pop to raise-0 to test exc strings. 2022-03-07 16:48:35 +11:00
heapalloc_exc_compressed_emg_exc.py.exp tests/micropython: Switch from set.pop to raise-0 to test exc strings. 2022-03-07 16:48:35 +11:00
heapalloc_exc_raise.py
heapalloc_exc_raise.py.exp
heapalloc_fail_bytearray.py
heapalloc_fail_bytearray.py.exp
heapalloc_fail_dict.py
heapalloc_fail_dict.py.exp
heapalloc_fail_list.py
heapalloc_fail_list.py.exp
heapalloc_fail_memoryview.py
heapalloc_fail_memoryview.py.exp
heapalloc_fail_set.py
heapalloc_fail_set.py.exp
heapalloc_fail_tuple.py
heapalloc_fail_tuple.py.exp
heapalloc_inst_call.py
heapalloc_inst_call.py.exp
heapalloc_int_from_bytes.py
heapalloc_int_from_bytes.py.exp
heapalloc_iter.py
heapalloc_str.py
heapalloc_str.py.exp
heapalloc_super.py
heapalloc_super.py.exp
heapalloc_traceback.py
heapalloc_traceback.py.exp
heapalloc_yield_from.py
heapalloc_yield_from.py.exp
import_mpy_invalid.py py: Rework bytecode and .mpy file format to be mostly static data. 2022-02-24 18:08:43 +11:00
import_mpy_invalid.py.exp py: Rework bytecode and .mpy file format to be mostly static data. 2022-02-24 18:08:43 +11:00
import_mpy_native.py py/persistentcode: Introduce .mpy sub-version. 2022-09-19 23:19:55 +10:00
import_mpy_native.py.exp tests/micropython: Make import_mpy_native test run on all architectures. 2022-05-26 12:54:43 +10:00
import_mpy_native_gc.py py/persistentcode: Introduce .mpy sub-version. 2022-09-19 23:19:55 +10:00
import_mpy_native_gc.py.exp
kbd_intr.py
kbd_intr.py.exp
meminfo.py
meminfo.py.exp
memstats.py
memstats.py.exp
native_closure.py
native_closure.py.exp
native_const.py
native_const.py.exp
native_const_intbig.py
native_const_intbig.py.exp
native_for.py
native_for.py.exp
native_fun_attrs.py py/objfun: Support function attributes on native functions. 2022-06-25 00:22:15 +10:00
native_fun_attrs.py.exp py/objfun: Support function attributes on native functions. 2022-06-25 00:22:15 +10:00
native_gen.py tests/micropython: Add more test cases for native generators. 2022-05-18 15:23:11 +10:00
native_gen.py.exp tests/micropython: Add more test cases for native generators. 2022-05-18 15:23:11 +10:00
native_misc.py py/emitnative: Ensure stack settling is safe mid-branch. 2021-07-19 23:18:59 +10:00
native_misc.py.exp py/emitnative: Ensure stack settling is safe mid-branch. 2021-07-19 23:18:59 +10:00
native_try.py
native_try.py.exp
native_try_deep.py
native_try_deep.py.exp
native_while.py tests: Move native while test from pybnative to micropython. 2022-05-26 12:54:43 +10:00
native_while.py.exp tests: Move native while test from pybnative to micropython. 2022-05-26 12:54:43 +10:00
native_with.py
native_with.py.exp
opt_level.py
opt_level.py.exp
opt_level_lineno.py
opt_level_lineno.py.exp
schedule.py
schedule.py.exp
stack_use.py
stack_use.py.exp
viper_addr.py
viper_addr.py.exp
viper_args.py
viper_args.py.exp
viper_binop_arith.py
viper_binop_arith.py.exp
viper_binop_arith_uint.py
viper_binop_arith_uint.py.exp
viper_binop_bitwise_uint.py
viper_binop_bitwise_uint.py.exp
viper_binop_comp.py
viper_binop_comp.py.exp
viper_binop_comp_imm.py
viper_binop_comp_imm.py.exp
viper_binop_comp_uint.py
viper_binop_comp_uint.py.exp
viper_binop_divmod.py
viper_binop_divmod.py.exp
viper_binop_multi_comp.py
viper_binop_multi_comp.py.exp
viper_cond.py
viper_cond.py.exp
viper_const.py
viper_const.py.exp
viper_const_intbig.py
viper_const_intbig.py.exp
viper_error.py
viper_error.py.exp
viper_globals.py
viper_globals.py.exp
viper_import.py
viper_import.py.exp
viper_misc.py
viper_misc.py.exp
viper_misc2.py
viper_misc2.py.exp
viper_misc_intbig.py
viper_misc_intbig.py.exp
viper_ptr8_load.py
viper_ptr8_load.py.exp
viper_ptr8_store.py
viper_ptr8_store.py.exp
viper_ptr16_load.py
viper_ptr16_load.py.exp
viper_ptr16_store.py
viper_ptr16_store.py.exp
viper_ptr32_load.py
viper_ptr32_load.py.exp
viper_ptr32_store.py
viper_ptr32_store.py.exp
viper_storeattr.py py/emitnative: Fix STORE_ATTR viper code-gen when value is not a pyobj. 2022-07-12 17:18:27 +10:00
viper_storeattr.py.exp py/emitnative: Fix STORE_ATTR viper code-gen when value is not a pyobj. 2022-07-12 17:18:27 +10:00
viper_subscr.py
viper_subscr.py.exp
viper_subscr_multi.py py/emitnative: Ensure load_subscr does not clobber existing REG_RET. 2021-09-13 22:30:24 +10:00
viper_subscr_multi.py.exp py/emitnative: Ensure load_subscr does not clobber existing REG_RET. 2021-09-13 22:30:24 +10:00
viper_try.py
viper_try.py.exp
viper_types.py
viper_types.py.exp
viper_with.py
viper_with.py.exp