929a675a3d
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.
31 lines
639 B
Bash
Executable File
31 lines
639 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CPYTHON3=python3.4
|
|
MP_CPY=../../unix-cpy/cpy
|
|
|
|
RM=/bin/rm
|
|
|
|
mkdir -p output
|
|
|
|
function run_test_on_dir() {
|
|
echo ""
|
|
echo "Testing directory $1..."
|
|
echo ""
|
|
|
|
for file in $1/*.py
|
|
do
|
|
basename=$(basename $file .py)
|
|
|
|
$CPYTHON3 -B -c "import compileall; compileall.compile_file('$file', quiet=True)"
|
|
#/usr/lib/python3.4/compileall.py $file
|
|
$CPYTHON3 -B unpyc.py $1/__pycache__/$basename.cpython-34.pyc > output/$basename.pycout
|
|
|
|
$MP_CPY $file | $CPYTHON3 -B check.py output/$basename.pycout
|
|
done
|
|
|
|
echo ""
|
|
}
|
|
|
|
run_test_on_dir mp-tests
|
|
run_test_on_dir pylib-tests
|