Merge branch 'master' of github.com:micropython/micropython
This commit is contained in:
commit
5f7e8dc176
4
tests/README
Normal file
4
tests/README
Normal 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
3
tests/io/data/file1
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
longer line1
|
||||||
|
line2
|
||||||
|
line3
|
4
tests/io/file1.py
Normal file
4
tests/io/file1.py
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
f = open("io/data/file1")
|
||||||
|
print(f.read(5))
|
||||||
|
print(f.readline())
|
||||||
|
print(f.read())
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
RM="/bin/rm -f"
|
RM="/bin/rm -f"
|
||||||
CPYTHON3=python3.3
|
CPYTHON3=python3.3
|
||||||
MP_PY=../../unix/py
|
MP_PY=../unix/py
|
||||||
|
|
||||||
numtests=0
|
numtests=0
|
||||||
numtestcases=0
|
numtestcases=0
|
||||||
|
@ -10,7 +10,7 @@ numpassed=0
|
||||||
numfailed=0
|
numfailed=0
|
||||||
namefailed=
|
namefailed=
|
||||||
|
|
||||||
for infile in tests/*.py
|
for infile in basics/*.py io/*.py
|
||||||
do
|
do
|
||||||
basename=`basename $infile .py`
|
basename=`basename $infile .py`
|
||||||
outfile=${basename}.out
|
outfile=${basename}.out
|
Loading…
Reference in a new issue