Add some disassemble tests using pytest.

This commit is contained in:
rocky
2015-12-15 17:55:57 -05:00
parent fcfe451547
commit dafca53022
11 changed files with 228 additions and 21 deletions

View File

@@ -38,4 +38,4 @@ clean-unverified:
#: Clean temporary compile/decompile/verify direcotries in /tmp
clean-py-dis:
rm -fvr /tmp/py-dis-* || true
rm -fr /tmp/py-dis-* || true

View File

@@ -138,7 +138,7 @@ def do_tests(src_dir, obj_patterns, target_dir, opts):
if opts['start_with']:
try:
start_with = files.index(start_with)
start_with = files.index(opts['start_with'])
files = files[start_with:]
print('>>> starting with file', files[0])
except ValueError:
@@ -203,7 +203,7 @@ if __name__ == '__main__':
print("Can't find directory %s. Skipping" % src_dir,
file=sys.stderr)
continue
if last_compile_version and last_compile_version != compile_version:
if last_compile_version and last_compile_version != compiled_version:
print("Warning: mixed python version decompylation")
else:
last_compile_version = compiled_version