aboutsummaryrefslogtreecommitdiff
path: root/tests/run-tests
AgeCommit message (Collapse)Author
2014-08-29tests: Add option to run-tests to enable native emitter.Damien George
2014-07-19py: Add stream reading of n unicode chars; unicode support by default.Damien George
With unicode enabled, this patch allows reading a fixed number of characters from text-mode streams; eg file.read(5) will read 5 unicode chars, which can made of more than 5 bytes. For an ASCII stream (ie no chars > 127) it only needs to do 1 read. If there are lots of non-ASCII chars in a stream, then it needs multiple reads of the underlying object. Adds a new test for this case. Enables unicode support by default on unix and stmhal ports.
2014-07-12run-tests: Add option to write CPython's test results to .exp files.Paul Sokolovsky
Mostly to run testsuite on targets which doesn't have CPython.
2014-06-28tests: Write output in byte mode, not text mode.Damien George
This enables testing unicode and non-unicode implementations.
2014-06-08tests: Run 'micropython' tests on pyboard.Damien George
2014-06-06Turn the Travis CI test skipping mechanism into something more genericChris Angelico
2014-06-06Figure out the test_name before using it (significant only to Travis skips)Chris Angelico
2014-05-31tests: Change --test_dirs to --test-dirs.Damien George
2014-05-28tests: Add argument to allow specifying which directories to teststijn
2014-05-11tests: Fix handling of newlines from expected output filesstijn
2014-05-10run-tests: Add support for skipping tests.Paul Sokolovsky
MicrpPython test should print single "SKIP" line for test to be skipped.
2014-05-08py, compiler: Add basic support for A=const(123).Damien George
You can now do: X = const(123) Y = const(456 + X) and the compiler will replace X and Y with their values. See discussion in issue #266 and issue #573.
2014-05-07tests: Add a test for native code on pyboard.Damien George
2014-05-07tests: Add inline assembler test for pyboard.Damien George
2014-05-03tests: Add a suite of tests specifically for the pyboard.Damien George
In tests/pyb is now a suite of tests that tests the pyb module on the pyboard. They include expected output files because we can't run CPython on the pyboard to compare against. run-tests script has now been updated to allow pyboard tests to be run. Just pass the option --pyboard. This runs all basic, float and pyb tests. Note that float/math-fun.py currently fails because not all math functions are implemented in stmhal/.
2014-04-17Merge pull request #504 from lurch/patch-4Damien George
Allow the uPy used by run-tests to be overridden
2014-04-17tests: Split out those tests requiring float and import.Damien George
Tests in basics (which should probably be renamed to core) should not rely on float, or import any non-built-in files. This way these tests can be run when those features are not available. All test in basics now pass on the pyboard using stmhal port, except for string-repr which has some issues with character hex printing.
2014-04-17Changed the envvar name to MICROPY_MICROPYTHONAndrew Scheller
As discussed in #504
2014-04-16Stupid typoAndrew Scheller
2014-04-16Allow the uPy used by run-tests to be overriddenAndrew Scheller
with MICROPY_MP_PY envvar, in an analogous way to MICROPY_CPYTHON3 envvar. (the reason for this will be made clearer by a later PR)
2014-04-16run-tests can now skip certain tests when run under Travis CIAndrew Scheller
See the `skip_travis_tests` variable. Fixes #495 (also tidied up usage of os.path.basename() function)
2014-04-15travis: Diff output, hopefully this works.Damien George
2014-04-15travis: More tests debugging.Damien George
2014-04-13tests: Make tests pass on pyboard.Damien George
2014-04-13Make pyboard.py have its own exception; update run-tests for pyboard.Damien George
2014-04-06py: Implement more features in native emitter.Damien George
On x64, native emitter now passes 70 of the tests.
2014-04-04run-tests: Elaborate python3 command override capabilities.Paul Sokolovsky
2014-04-03Changes to get unix/ port compiling on Cygwin.Damien George
2014-04-03tests: Allow to run tests on pyboard.Damien George
To run the tests on the pyboard you need to set the "test_on_pyboard" variable to "True", and also have tools/pyboard.py available for import (easiest is to symlink to it).
2014-04-03run-tests: Allow to override python3 command to use via environment var.Paul Sokolovsky
2014-04-02Change test scripts to use python3; bytecode tests use python3.4.Damien George
I upgraded to Python 3.4.0, so needed to make these changes. Hopefully the tests still run with Python 3.3.x (the scripts use python3 so are agnostic as to the subversion). Bytecode tests are tightly coupled to the Python version, and now some fail against Python 3.4.
2014-04-02Add more tests.Damien George
2014-03-23run-tests: Dump output of failing tests to files again.Paul Sokolovsky
This was a long-standing regression from converting script from sh to python.
2014-01-29run-tests can handle segfault.Damien George
2014-01-28Added Windows port (see #233)Markus Siemens
2014-01-21run-tests: Allow to run tests selectively via command line.Paul Sokolovsky
2014-01-20Rename unix binary to 'micropython'.Damien George
2014-01-19Add directory for I/O tests with basic test for file methods.Paul Sokolovsky
2014-01-19Move tests in basic/tests/ up one level preparating to multiple test dirs.Paul Sokolovsky