Add verify tests. Add Python 2.6 bytecode and use.

This commit is contained in:
rocky
2015-12-26 19:14:53 -05:00
parent 3ac3ef24ac
commit 6bd61deccc
26 changed files with 14 additions and 15 deletions

View File

@@ -20,18 +20,19 @@ check:
$(MAKE) check-$$PYTHON_VERSION
#: Run working tests from Python 2.6
check-2.6: check-bytecode-2.5 check-bytecode-2.7
check-2.6: check-bytecode-2.7 check-bytecode-2.5
$(PYTHON) test_pythonlib.py --bytecode-2.6 --verify $(COMPILE)
#: Run working tests from Python 2.7
check-2.7: check-bytecode check-2.7-ok
#: Run working tests from Python 3.3
check-3.3: check-bytecode check-bytecode-3.3
$(PYTHON) test_pythonlib.py --bytecode-3.3
check-3.3: check-bytecode-3.4 check-bytecode-2.7
$(PYTHON) test_pythonlib.py --bytecode-3.3 --verify $(COMPILE)
#: Run working tests from Python 3.4
check-3.4: check-bytecode check-bytecode-3.4
$(PYTHON) test_pythonlib.py --bytecode-3.4
check-3.4: check-bytecode-2.7 check-bytecode-3.2
$(PYTHON) test_pythonlib.py --bytecode-3.4 --verify $(COMPILE)
#: Check deparsing only, but from a different Python version
check-disasm:
@@ -45,6 +46,10 @@ check-bytecode:
check-bytecode-2.5:
$(PYTHON) test_pythonlib.py --bytecode-2.5
#: Check deparsing Python 2.6
check-bytecode-2.6:
$(PYTHON) test_pythonlib.py --bytecode-2.6
#: Check deparsing Python 2.7
check-bytecode-2.7:
$(PYTHON) test_pythonlib.py --bytecode-2.7

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
test/bytecode_2.6/05_if.pyc Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -54,15 +54,6 @@ tests['2.2'] = ['divide_future', 'divide_no_future', 'iterators',
tests['2.3'] = tests['2.2']
tests['2.5'] = tests['2.3']
# tests['2.7'] = ['mine'] + tests['2.6']
tests['2.7'] = [
'simple_source/branching/ifelse',
# 'simple_source/branching/if'
'simple_source/misc/assert',
'simple_source/misc/assign',
# 'simple_source/call_arguments/keyword',
# 'simple_source/call_arguments/positional'
]
tests['2.6'] = tests['2.7']
def file_matches(files, root, basenames, patterns):
files.extend(
@@ -79,7 +70,7 @@ for root, dirs, basenames in os.walk('simple_source'):
simple_source.append(os.path.join(root, basename)[0:-3])
pass
tests['3.3'] = tests['3.4'] = simple_source
tests['2.6'] = tests['2.7'] = tests['3.3'] = tests['3.4'] = simple_source
total_tests = len(tests['2.7'])
#tests['2.2'].sort(); print tests['2.2']

View File

@@ -61,6 +61,9 @@ test_options = {
'bytecode-2.5':
['bytecode_2.5', PYC, 'bytecode_2.5', 2.5],
'bytecode-2.6':
['bytecode_2.6', PYC, 'bytecode_2.6', 2.6],
'bytecode-2.7':
['bytecode_2.7', PYC, 'bytecode_2.7', 2.7],