You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Add verify tests. Add Python 2.6 bytecode and use.
This commit is contained in:
@@ -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
|
||||
|
BIN
test/bytecode_2.6/00_assign.pyc
Normal file
BIN
test/bytecode_2.6/00_assign.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/00_import.pyc
Normal file
BIN
test/bytecode_2.6/00_import.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/00_pass.pyc
Normal file
BIN
test/bytecode_2.6/00_pass.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/01_class.pyc
Normal file
BIN
test/bytecode_2.6/01_class.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/01_list_comprehension.pyc
Normal file
BIN
test/bytecode_2.6/01_list_comprehension.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/01_positional.pyc
Normal file
BIN
test/bytecode_2.6/01_positional.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/01_try_except.pyc
Normal file
BIN
test/bytecode_2.6/01_try_except.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/02_def.pyc
Normal file
BIN
test/bytecode_2.6/02_def.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/02_slice.pyc
Normal file
BIN
test/bytecode_2.6/02_slice.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/05_if.pyc
Normal file
BIN
test/bytecode_2.6/05_if.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/05_ifelse.pyc
Normal file
BIN
test/bytecode_2.6/05_ifelse.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/05_try_except.pyc
Normal file
BIN
test/bytecode_2.6/05_try_except.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/10_class.pyc
Normal file
BIN
test/bytecode_2.6/10_class.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/10_for.pyc
Normal file
BIN
test/bytecode_2.6/10_for.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/10_keyword.pyc
Normal file
BIN
test/bytecode_2.6/10_keyword.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/10_mixed_boolean.pyc
Normal file
BIN
test/bytecode_2.6/10_mixed_boolean.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/10_while.pyc
Normal file
BIN
test/bytecode_2.6/10_while.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/15_assert.pyc
Normal file
BIN
test/bytecode_2.6/15_assert.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/15_for_if.pyc
Normal file
BIN
test/bytecode_2.6/15_for_if.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/20_try_except.pyc
Normal file
BIN
test/bytecode_2.6/20_try_except.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.6/25_try_except.pyc
Normal file
BIN
test/bytecode_2.6/25_try_except.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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']
|
||||
|
@@ -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],
|
||||
|
||||
|
Reference in New Issue
Block a user