Paul Sokolovsky
57b5ee2fcf
tests/run-tests: Don't post-process CRASH result in any way.
If we got a CRASH result, return early, similar to SKIP. This is important
because previous refactor changed branching logic a bit, so CRASH now gets
post-processed into CRASH\n, which broke remote hardware tests.
8 years ago
Paul Sokolovsky
5b8122f2bb
tests/run-tests: Search feature checks wrt to main script location.
If run-tests script is run from another dir, we still want to look up
feature checks in run-tests' dir.
8 years ago
Damien George
805b1c8bc3
tests/run-tests: Update names of tests that may need skipping.
8 years ago
Paul Sokolovsky
831e157226
tests/run-tests: Introduce generic "minimal" target.
Used e.g. by Zephyr port.
8 years ago
Paul Sokolovsky
b099aeb3ca
run-tests: Add feature check for "const" keyword and skip related tests.
8 years ago
Paul Sokolovsky
5b2db4bb51
tests/run-tests: Be sure to close Pyboard object on completion.
So underlying device was properly closed too.
8 years ago
Damien George
c772817dee
tests/micropython: Add tests for micropython.schedule().
8 years ago
Damien George
923ec1169f
tests/run-tests: Re-instate skipping of doubleprec test on pyboard.
8 years ago
Paul Sokolovsky
854bb322bf
tests/feature_check/int_big: Rework "big int" detection.
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.
8 years ago
Paul Sokolovsky
3ab6aa3a6d
tests/basic: Split tests into working with small ints and not working.
Tests which don't work with small ints are suffixed with _intbig.py. Some
of these may still work with long long ints and need to be reclassified
later.
8 years ago
Paul Sokolovsky
89e570a5b4
tests/run-tests: Check for big int availability and skip related tests.
Big aka arbitrary-precision integers (implemented by MPZ module) are used
in tests starting with "int_big_" or ending with "_intbig".
8 years ago
Damien George
019048a6dc
tests/micropython: Add test for iterating with the heap locked.
8 years ago
Paul Sokolovsky
ce2e0eeb7b
tests/run-tests: Allow to skip tests using async/await keywords.
8 years ago
stijn
c6fd9ba4f3
tests: Add option to not clear MICROPYPATH when running tests
This allows using the test runner for other scenarios than just
testing uPy itself.
The principle of comparing either to CPython or else to a .exp
file is really handy but to be able to test custom modules not
built into micropython.exe one needs to be able to specify the
module search path a.k.a MICROPYPATH.
10 years ago
Paul Sokolovsky
aee723ed4c
tests/run-tests: Skip frozenset tests if set literal syntax is not available.
8 years ago
stijn
533129f835
tests: Make sure special tests can be skipped as well.
Fixes #2806 .
8 years ago
Damien George
1864f90e9a
tests: Add test for builtin help function.
8 years ago
Damien George
96baaa68a4
tests: Update tests, and add new ones, for recent generator tweaks.
8 years ago
Paul Sokolovsky
26f00ff154
tests/run-tests: Allow to skip set tests.
If sets are not enabled, set literals lead to SyntaxError during parsing,
so it requires feature_check. Set tests are skipped based on set_*.py
pattern.
8 years ago
Rami Ali
f397e1fdf0
tests/thread: Improve modthread.c test coverage.
8 years ago
Damien George
cdec7ba30e
tests: Add a coverage test for printing the parse-tree.
8 years ago
Rami Ali
5d06a74303
tests/basics: Improve test coverage for generators.
8 years ago
Damien George
1e7a801e2d
tests/run-tests: For REPL tests make sure the REPL is exited at the end.
8 years ago
Damien George
1f43d49f9e
tests/micropython: Move alloc-less traceback test to separate test file.
The native emitter doesn't provide proper traceback info so this test
should not be run in that case.
8 years ago
Damien George
1e3a7c4ac5
tests/run-tests: Enable extmod/machine1.py on pyboard.
It now works.
8 years ago
Damien George
5e22afce41
tests: Improve test coverage of py/compile.c.
8 years ago
stijn
7f19b1c3eb
tests: Fix expected output of verbose cmdline test
The output might contain more than one line ending in 5b so properly skip
everything until the next known point.
This fixes test failures in appveyor debug builds.
8 years ago
Damien George
cd20027f56
tests/run-tests: Disable cmdline/cmd_showbc test on Windows.
Disabled until a proper fix is found.
8 years ago
Damien George
3f5fe6269e
tests/run-tests: Add --via-mpy option to run test from precompiled code.
With mpy-cross built, tests can now be run by first compiling them to .mpy
files, and then executing the .mpy file. Usage: ./run-tests --via-mpy
8 years ago
Damien George
bb954d80a4
tests: Get cmdline verbose tests running again.
The showbc function now no longer uses the system printf so works
correctly.
8 years ago
Damien George
763e04bba5
tests/run-tests: Disable thread/stress_recurse.py test on Travis.
It has reliability issues (cause unknown at this time).
8 years ago
Damien George
8f8f699eb7
tests/run-tests: Disable thread_gc1.py test on Travis.
It has reliability issues (cause unknown at this time).
8 years ago
Damien George
78bc31e294
tests/run-tests: Disable thread/stress_heap.py when running on Travis.
It has reliability issues and sometimes fails on Travis (reason currently
unknown).
8 years ago
Damien George
567e7fcd12
tests/run-tests: Disable thread/thread_lock4.py on Travis.
It has reliability issues that need to be worked out.
8 years ago
Paul Sokolovsky
6ead9f6f3d
tests/run-tests: Make "regex'ed .exp" facility available to device tests.
Required to pass bytes_compare3.py (opptional warnings) on devices.
8 years ago
Paul Sokolovsky
b652ee705b
tests/bytes_compare: Rework test for bytes <-> str comparison.
This may produce a warning, depending on MicroPython configuration.
8 years ago
Damien George
2b5a1067c0
tests/run-tests: If running thread tests on unix, don't run mutate ones.
They will fail because the GIL is disabled on the unix build.
8 years ago
Paul Sokolovsky
5ec11f565b
tests/run-tests: Factor out list supported external boards.
To get consistent error messages, etc.
9 years ago
Paul Sokolovsky
3c2e40b008
tests/run-tests: Add gen_yield_from_stopped to skipped for --emit=native.
Just as the rest of generator tests, which aren't yet supoorted for
native.
9 years ago
Damien George
c2a519bab9
tests: Skip async tests for native emitter.
9 years ago
Damien George
2c915e1ae6
py: Implement basic with support in native emitter.
9 years ago
Damien George
157056ecdf
tests: Add new subdir "stress/" specifically for stress tests.
9 years ago
Damien George
9996adc37d
tests/run-tests: Add cmd line option "--heapsize".
This allows you to specify the heapsize that unix will use when running
the test suite, eg: ./run-tests --heapsize 16k
9 years ago
Damien George
f0e2d13fd2
tests/run-tests: Simplify handling of newline in output from tests.
Now, all output has newlines converted to \n, regardless of port or
platform.
9 years ago
Damien George
d964873e56
tests/run-tests: Fix logic when selecting test-dirs for a given target.
9 years ago
Paul Sokolovsky
2382d30318
tests/run-tests: Skips for esp8266.
9 years ago
danicampora
5148860332
tests: Skip uctypes and urandom tests not supported byt the WiPy.
9 years ago
Paul Sokolovsky
2850e7cd97
tests/run-tests: Add esp8266 target.
9 years ago
Damien George
e5ce5e2a43
tests: Skip class_bind_self.py for native emitter.
9 years ago
Damien George
7ce8860b6b
tests: Skip try-finally test for native emitter.
9 years ago