Kevin Phoenix
add1659f32
Move python tests to test directory
2024-07-15 12:14:03 -07:00
Kevin Phoenix
8ce088bf58
Python2 leftovers v2 ( #2395 )
...
* Remove python2 leftovers
* Remove python2 references from BUILDING.txt
* Remove some leftover install3 references
* Update shebangs to python3
* Delete suite/test_corpus.py
2024-07-01 14:10:12 +08:00
Wu ChenXu
a3fd6ac3a4
Revert "Remove python2 leftovers ( #2378 )" ( #2391 )
...
This reverts commit 60d5b7ec2f .
2024-06-24 16:42:27 +08:00
Rot127
1adc45f265
Use python3 as default interpreter for all python scripts ( #2390 )
2024-06-19 18:52:51 +08:00
Kevin Phoenix
60d5b7ec2f
Remove python2 leftovers ( #2378 )
...
* Remove python2 leftovers
* Remove python2 references from BUILDING.txt
* Remove some leftover install3 references
2024-06-09 17:29:50 +08:00
Nguyen Anh Quynh
2576c4a4fb
python: temporarily comment out skipdata setup, which is still broken on MacOS. #1316
2019-01-02 10:11:48 +08:00
Nguyen Anh Quynh
145b83062e
python: rename getter/setter skipdata_cb to skipdata_callback. Hello 2019
2019-01-01 00:22:45 +08:00
Nguyen Anh Quynh
5087076f62
python: attempt to fix #1320
2018-12-31 15:51:50 +08:00
Семён Марьясин
784118b9a1
Fix skipdata setup ( #1320 )
...
* Fix skipdata_setup for when _cb is None
ctypes prototype does not accept None value,
so if we want to get a NULL function pointer
then we should either call it with no arguments
or pass zero as an argument.
Fixes #1316
* Do store and return skipdata_setup data
* Add convenience wrappers for skipdata_setup
* Uncomment skipdata_setup tests
* Add alternate usage variants to test_skipdata.py
* document getter
2018-12-31 15:42:44 +08:00
Nguyen Anh Quynh
71a42c13c6
python: cast skipdata function inside binding to simplify the API
2016-10-02 01:35:28 +08:00
Niels Boehm
0f4ecc6ccc
Use and test syntax against None in all_tests.
...
Comparing against 0 or just testing the truthiness is suboptimal, as you
lose the ability to explicitly set the syntax to CS_OPT_SYNTAX_DEFAULT
or 0.
Also, using None to mean "don't change" or other "here is no value"
interpretations is much more pythonic than the C-idiomatic 0.
2016-06-13 12:25:24 +02:00
Nguyen Anh Quynh
03d1e1f86d
python: clean up test_*.py
2015-04-27 11:51:48 +08:00
Nguyen Anh Quynh
44adb35f6a
python: clean test_skipdata.py
2015-04-27 11:12:53 +08:00
Nguyen Anh Quynh
cbc7dd9392
python: fix test_skipdata.py after the change in the core on SKIPDATA's callback prototype
2014-07-10 15:57:42 +08:00
Nguyen Anh Quynh
1098329f40
python: refactor tests, so it is possible to reuse print_insn_detail() of all archs
2014-05-17 09:51:15 +08:00
Nguyen Anh Quynh
4b9de0df04
python: change SKIPDATA's callback prototype after the last change in the core
2014-04-14 14:56:25 +08:00
Nguyen Anh Quynh
749046bbdc
python: initial Python3 support
2014-04-12 01:15:10 +08:00
Nguyen Anh Quynh
b64d1cf193
refine the comments for Skipdata sample code
2014-04-10 23:05:28 +08:00
Nguyen Anh Quynh
301d740aa3
python: rename skipdata_opt to skipdata_setup & handle callback properly
2014-04-10 22:34:27 +08:00
Nguyen Anh Quynh
1eccbaba38
python: minor fix for test_skipdata.py
2014-04-10 17:48:19 +08:00
Nguyen Anh Quynh
c2638ce57f
python: disable setup to skipdata_opt in test_skipdata.py
2014-04-10 16:10:57 +08:00
Nguyen Anh Quynh
f0c577fd3d
python: support SKIPDATA option. this also adds test_skipdata.py
2014-04-10 16:09:15 +08:00