summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* py/mkrules.mk: Remove special check for "-B" in qstr auto generation.Damien George2017-03-15
| | | | | | When make is passed "-B" it seems that everything is considered out-of-date and so $? expands to all prerequisites. Thus there is no need for a special check to see if $? is emtpy.
* tests/basics: Move string-modulo-format int tests to dedicated file.Damien George2017-03-15
|
* tests/basics: Add test for string module formatting with int argument.Damien George2017-03-15
|
* tests/basics/string_format2: Adjust comment now that tests succeed.Damien George2017-03-15
|
* py/mpprint: Fix int formatting so "+" is printed for 0-valued integer.Damien George2017-03-15
|
* py/emitnative: Remove obsolete commented out code.Damien George2017-03-15
|
* tests/micropython/viper_error: Add more tests to improve coverage.Damien George2017-03-14
|
* py/emitnative: Use assertions and mp_not_implemented correctly.Damien George2017-03-14
| | | | | Assertions are used to check expressions that should always be true, and mp_not_implemented is used for code that can be reached.
* tests/extmod: Improve tinfgzip.c test coverage.Rami Ali2017-03-14
|
* tests/extmod/vfs_basic: Unmount all existing devices before doing test.Damien George2017-03-14
| | | | | This is so the test can run successfully on targets that already have something mounted.
* tests/run-tests: Re-instate skipping of doubleprec test on pyboard.Damien George2017-03-14
|
* lib/utils/pyexec: Fix bug with pyexec_file not setting flag for source.Damien George2017-03-14
|
* tests/basics/struct_micropython: Add test for 'S' typecode in ustruct.Damien George2017-03-14
| | | | | | | | The 'S' typecode is a uPy extension so it should be grouped with the other extension (namely 'O' typecode). Testing 'S' needs uctypes which is an extmod module and not always available, so this test is made optional and will only be run on ports that have (u)struct and uctypes. Otherwise it will be silently skipped.
* tests: Improve binary.c test coverage.Rami Ali2017-03-14
|
* tests/extmod: Improve re1.5/recursiveloop.c test coverage.Rami Ali2017-03-14
|
* tests/extmod/vfs_basic: Add more tests for basic VFS functionality.Damien George2017-03-14
|
* py/objint: Allow to print long-long ints without using the heap.Damien George2017-03-14
| | | | | | | Some stack is allocated to format ints, and when the int implementation uses long-long there should be additional stack allocated compared with the other cases. This patch uses the existing "fmt_int_t" type to determine the amount of stack to allocate.
* esp8266: Only execute main.py if in friendly REPL mode.Damien George2017-03-14
|
* teensy/lexerfrozen: Make mp_lexer_new_from_file raise an exception.Damien George2017-03-14
|
* mpy-cross/main: Move lexer constructor to within NLR handler block.Damien George2017-03-14
|
* pic16bit/main: Make mp_lexer_new_from_file raise an exception.Damien George2017-03-14
|
* lib/memzip: Make lexer constructor raise exception when file not found.Damien George2017-03-14
|
* examples/embedding: Place lexer constructor within NLR handler block.Damien George2017-03-14
| | | | The lexer constructor may now raise an exception and it needs to be caught.
* esp8266: Update lexer constructors so they can raise exceptions.Damien George2017-03-14
|
* zephyr/main: Move lexer constructor to within NLR handler block.Damien George2017-03-14
| | | | And raise an exception when mp_lexer_new_from_file is called.
* qemu-arm: Move lexer constructors to within NLR handler block.Damien George2017-03-14
| | | | And raise an exception when mp_lexer_new_from_file is called.
* minimal/main: Move lexer constructor to within NLR handler block.Damien George2017-03-14
| | | | And raise an exception when mp_lexer_new_from_file is called.
* bare-arm/main: Move lexer constructor to within NLR handler block.Damien George2017-03-14
| | | | And raise an exception when mp_lexer_new_from_file is called.
* unix/main: Refactor to put lexer constructors all in one place.Damien George2017-03-14
| | | | | The lexer can now raise an exception on construction so it must go within an nlr handler block.
* lib/utils/pyexec: Refactor to put lexer constructors all in one place.Damien George2017-03-14
| | | | | The lexer can now raise an exception on construction so it must go within an nlr handler block.
* py: Allow lexer to raise exceptions during construction.Damien George2017-03-14
| | | | | | | | | | | | | | | | | | | | | | | | This patch refactors the error handling in the lexer, to simplify it (ie reduce code size). A long time ago, when the lexer/parser/compiler were first written, the lexer and parser were designed so they didn't use exceptions (ie nlr) to report errors but rather returned an error code. Over time that has gradually changed, the parser in particular has more and more ways of raising exceptions. Also, the lexer never really handled all errors without raising, eg there were some memory errors which could raise an exception (and in these rare cases one would get a fatal nlr-not-handled fault). This patch accepts the fact that the lexer can raise exceptions in some cases and allows it to raise exceptions to handle all its errors, which are for the most part just out-of-memory errors during construction of the lexer. This makes the lexer a bit simpler, and also the persistent code stuff is simplified. What this means for users of the lexer is that calls to it must be wrapped in a nlr handler. But all uses of the lexer already have such an nlr handler for the parser (and compiler) so that doesn't put any extra burden on the callers.
* pic16bit/main: Make nlr_jump_fail never return.Damien George2017-03-14
|
* zephyr/main: Remove unused __fatal_error().Paul Sokolovsky2017-03-14
|
* tests/extmod: Add a test for core VFS functionality, sans any filesystem.Damien George2017-03-13
|
* extmod/vfs: Rewrite path lookup algo to support relative paths from root.Damien George2017-03-13
| | | | | | | For example, if the current directory is the root dir then this patch allows one to do uos.listdir('mnt'), where 'mnt' is a valid mount point. Previous to this patch such a thing would not work, on needed to do uos.listdir('/mnt') instead.
* qemu-arm: Add basic uos module with generic VFS capabilities.Damien George2017-03-13
|
* extmod/vfs_fat: Allow to compile with MICROPY_VFS_FAT disabled.Damien George2017-03-13
| | | | | Some ports may want to compile with generic MICROPY_VFS support but without the VfsFat class. This patch allows such a thing.
* zephyr/main: nlr_jump_fail: Fix noreturn warning.Paul Sokolovsky2017-03-13
|
* zephyr: Move "minimal" configuration building to a separate wrapper script.Paul Sokolovsky2017-03-12
| | | | | | | | | | | | | | Minimal config can be now build with: ./make-minimal BOARD=... This is required because of Makefile.exports magic, which in its turn depends on PROJ_CONF to be set correctly at the beginning of Makefile parsing at all times. Instead of adding more and more workarounds for that, it's better to just move minimal support to a separate wrapper. Also, remove Zephyr 1.5 era cruft from Makefile, and add support for Zephyr's "run" target which supercedes older "qemu" target in upstream.
* zephyr: Make sure that generated prj.conf is updated only on content changes.Paul Sokolovsky2017-03-12
| | | | | | | | | | This is a typical problem with make: we want to trigger rebuilds only if file actually changed, not if its timestamp changed. In this case, it's aggravated by the fact that prj.conf depends on the value of BOARD variable, so we need to do some tricks anyway. We still don't try to detect if just BOARD changed, just try to generate new prj.conf.tmp every time (quick), but do actual replacement of prj.conf only if its content changed.
* tests/misc/: Make few tests skippable.Paul Sokolovsky2017-03-11
|
* extmod/vfs_fat: Remove obsolete and unused str/len members.Damien George2017-03-10
|
* cc3200/mptask: Allocate flash VFS struct on the heap to trace root ptrs.Damien George2017-03-10
|
* stmhal/main: Allocate flash's VFS struct on the heap to trace root ptrs.Damien George2017-03-10
|
* tests/extmod: Rename websocket test to websocket_basic.Damien George2017-03-10
| | | | | | This is so that the filename of the test doesn't clash with the module name itself (being "websocket"), and lead to potential problems executing the test.
* stmhal/mphalport: Get ticks_cpu() working on F7 MCUs.Damien George2017-03-10
|
* tests/basics/fun_error: Split out skippable test.Paul Sokolovsky2017-03-10
|
* tests/feature_check/int_big: Rework "big int" detection.Paul Sokolovsky2017-03-10
| | | | | | MICROPY_LONGINT_IMPL_LONGLONG doesn't have overflow detection, so just parsing a large number won't give an error, we need to print it out to check that the whole number was parsed.
* py/objint_longlong: Implement mp_obj_int_from_bytes_impl().Paul Sokolovsky2017-03-10
| | | | This makes int.from_bytes() work for MICROPY_LONGINT_IMPL_LONGLONG.
* tests/micropython/opt_level: Clarify the expected output for opt_level == 3.Paul Sokolovsky2017-03-09
|