micropython/tests/bytecode
Damien George 929a675a3d Change test scripts to use python3; bytecode tests use python3.4.
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-02 15:31:39 +01:00
..
mp-tests py: Add built-in super. 2014-02-05 00:51:47 +00:00
pylib-tests Fix bash->/usr/bin/env bash; add LICENSE for Python library tests. 2014-01-02 16:14:19 +00:00
.gitignore Add 2 files to a gitignore. 2013-12-29 18:22:03 +00:00
README.md Fix bash->/usr/bin/env bash; add LICENSE for Python library tests. 2014-01-02 16:14:19 +00:00
check.py Add tests to test compiler and emitted byte code. 2013-12-29 18:21:02 +00:00
run-tests Change test scripts to use python3; bytecode tests use python3.4. 2014-04-02 15:31:39 +01:00
unpyc.py Add tests to test compiler and emitted byte code. 2013-12-29 18:21:02 +00:00

README.md

This directory contains the framework and test files for testing the byte code output of the Micro Python compiler.

You need to first build the 'cpy' executable in the directory micropython/unix-cpy/. This executable is a minimal version of Micro Python which compiles a single source file and outputs the corresponding byte code.

The output of Micro Python is checked against CPython 3.3.

To run the tests use:

./run-tests

Note that the tests in pylib-test/ are from the Python 3.3 library, and are licensed under the relevant license, as per pylib-test/LICENSE.txt.