mirror of
https://github.com/siemens-mobile-hacks/capstone.git
synced 2026-11-25 22:27:31 +00:00
* Add arm64.py and sysz_const.py compatibility layer to the Python bindings When importing `capstone.arm64` before doing other capstone imports the ARM64 constants get monkey patched into the exports. Same with `capstone.sysz_const` for the SYSZ constants. * Add SPDX-License comments * Access an instruction detail in compatibility test * Fail python tests on error instead of just ERROR output Include the test_iter.py in the test_all.py too. * Improve python compatibility docs Co-authored-by: Rot127 <45763064+Rot127@users.noreply.github.com> * Test for ARM_CC_* constants presence --------- Co-authored-by: Rot127 <45763064+Rot127@users.noreply.github.com>
20 lines
503 B
Python
Executable file
20 lines
503 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import test_lite
|
|
import test_iter
|
|
import test_skipdata
|
|
import test_customized_mnem
|
|
import test_compatibility_layer
|
|
|
|
errors = []
|
|
errors.extend(test_lite.test_class())
|
|
errors.extend(test_iter.test_class())
|
|
errors.extend(test_skipdata.test_class())
|
|
errors.extend(test_customized_mnem.test())
|
|
errors.extend(test_compatibility_layer.test_compatibility())
|
|
|
|
if errors:
|
|
print("Some errors happened. Please check the output")
|
|
for error in errors:
|
|
print(error)
|
|
exit(1)
|