Skip to content
Snippets Groups Projects
Commit 929a675a authored by Damien George's avatar Damien George
Browse files

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.
parent 4d4a7f53
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash #!/usr/bin/env bash
CPYTHON3=python3.3 CPYTHON3=python3.4
MP_CPY=../../unix-cpy/cpy MP_CPY=../../unix-cpy/cpy
RM=/bin/rm RM=/bin/rm
...@@ -17,8 +17,8 @@ function run_test_on_dir() { ...@@ -17,8 +17,8 @@ function run_test_on_dir() {
basename=$(basename $file .py) basename=$(basename $file .py)
$CPYTHON3 -B -c "import compileall; compileall.compile_file('$file', quiet=True)" $CPYTHON3 -B -c "import compileall; compileall.compile_file('$file', quiet=True)"
#/usr/lib/python3.3/compileall.py $file #/usr/lib/python3.4/compileall.py $file
$CPYTHON3 -B unpyc.py $1/__pycache__/$basename.cpython-33.pyc > output/$basename.pycout $CPYTHON3 -B unpyc.py $1/__pycache__/$basename.cpython-34.pyc > output/$basename.pycout
$MP_CPY $file | $CPYTHON3 -B check.py output/$basename.pycout $MP_CPY $file | $CPYTHON3 -B check.py output/$basename.pycout
done done
......
#! /usr/bin/env python3.3 #! /usr/bin/env python3
import os import os
import subprocess import subprocess
...@@ -6,10 +6,10 @@ import sys ...@@ -6,10 +6,10 @@ import sys
from glob import glob from glob import glob
if os.name == 'nt': if os.name == 'nt':
CPYTHON3 = 'python3.3.exe' CPYTHON3 = 'python3.exe'
MP_PY = '../windows/micropython.exe' MP_PY = '../windows/micropython.exe'
else: else:
CPYTHON3 = 'python3.3' CPYTHON3 = 'python3'
MP_PY = '../unix/micropython' MP_PY = '../unix/micropython'
def rm_f(fname): def rm_f(fname):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment