Merge branch 'master' of github.com:micropython/micropython

This commit is contained in:
Damien George 2014-01-19 17:41:01 +00:00
commit 5f7e8dc176
90 changed files with 13 additions and 2 deletions

4
tests/README Normal file
View File

@ -0,0 +1,4 @@
This directory contains tests for various functionality areas of MicroPython.
To run all stable tests, run "run-tests" script in this directory. Note
that bytecode tests are not yet stable and should be run separately in
"bytecode" subdirectory.

3
tests/io/data/file1 Normal file
View File

@ -0,0 +1,3 @@
longer line1
line2
line3

4
tests/io/file1.py Normal file
View File

@ -0,0 +1,4 @@
f = open("io/data/file1")
print(f.read(5))
print(f.readline())
print(f.read())

View File

@ -2,7 +2,7 @@
RM="/bin/rm -f"
CPYTHON3=python3.3
MP_PY=../../unix/py
MP_PY=../unix/py
numtests=0
numtestcases=0
@ -10,7 +10,7 @@ numpassed=0
numfailed=0
namefailed=
for infile in tests/*.py
for infile in basics/*.py io/*.py
do
basename=`basename $infile .py`
outfile=${basename}.out