Commit Graph

31 Commits

Author SHA1 Message Date
Michael Hansen
f37caa8f2a Test runner refactor (#508)
* Port test runner script to Python.

This allows us to keep the test output in sorted order while still running the
tests in parallel.  It also now defaults to using the number of available CPU
threads for parallel execution, rather than the previously hard-coded default.

* Also port decompyle_test.sh script to python within run_tests.py

* Fix cmake check target for multi-config generators.

Adds testing of release builds on both MSVC and GCC.

* Fix diff comparisons on Windows

* Ubuntu runners don't have ninja by default
2024-08-08 15:55:35 -07:00
Alex
75de28decc Python 3.13 initial support (#497)
* Support for JUMP_BACKWARD

* Initial support for Python 3.13

* Remove opcode from another old PR, not needed in the current one

* Update bytes/python_3_13.cpp

Co-authored-by: Michael Hansen <zrax0111@gmail.com>

* Update bytecode_ops.inl

Co-authored-by: Michael Hansen <zrax0111@gmail.com>

* Update .gitignore

Co-authored-by: Michael Hansen <zrax0111@gmail.com>

* Update bytecode_ops.inl

---------

Co-authored-by: Michael Hansen <zrax0111@gmail.com>
2024-08-07 15:39:40 -07:00
Alex
ba91ff2de5 Revert shadow changes and add option -Wno-error=shadow to cmakefile 2024-03-12 22:40:50 +02:00
Alex
ce439a67bb Return back -Wshadow compiler option into non-Windows envs 2024-03-11 22:51:17 +02:00
Alex
f80b662f77 Fix for Centos6/7 compilation issues 2024-03-08 14:27:36 +02:00
Michael Hansen
ab6aaf6da3 Convert opcode maps to C++ source with macros.
This removes the requirement to run a python script to preprocess the
input files before compiling pycdas/pycdc.
2023-12-05 14:30:33 -08:00
asas1asas200
9ab04e2c0b Fix CMP0148 warning in CMakeLists.txt (#400)
* Fix CMP0148 warning in CMakeLists.txt

* bump cmake minimum required to 3.12

* Fix var name to match  new Find module
2023-11-16 08:07:00 -08:00
Michael Hansen
9b384ad1fa Add basic bytecode and disassembly support for Python 3.12 2023-11-09 12:17:03 -08:00
Michael Hansen
bb54b27cd1 Move cmake_minimum_required to the top of CMakeLists, so it correctly affects everything else below it 2023-06-20 13:28:10 -07:00
Michael Hansen
9f1d0f2a21 Add basic opcode (disassembly) support for Python 3.11 2023-01-19 11:32:07 -08:00
GawdOfROFL
e4e3a9f4ed added python 3.10 support 2021-10-10 00:52:41 +05:30
John Richards
0573318528 Renames options for BLOCK/STACK debugging and fixes indentation 2020-10-20 00:42:44 -04:00
John Richards
05c373b07a Adds ability to control block and stack debug output via CMake
Also updates README to detail how to enable various debug options.

A typo related to running tests has also been fixed.
2020-10-19 20:55:20 -04:00
Michael Hansen
8460d119fd Add bytecode support for Python 3.9 rc2 2020-09-29 09:28:15 -07:00
Michael Hansen
428d11c4b5 Add bytecode and disassembly support for Python 3.8.
Also fixes running pymultic from outside of its source directory.
2019-10-14 14:48:26 -07:00
Michael Hansen
c71d41efb6 Add MSVC-based CI build 2019-10-09 20:33:39 -07:00
Michael Hansen
44af6a2c04 Finish removing old tests and old "test" framework. 2019-10-07 20:57:43 -07:00
Michael Hansen
314f4a1a0d Fix several cases of name shadowing, and greatly simplify some
unnecessary stack operations with tuple appending.
2019-10-04 16:16:10 -07:00
Michael Hansen
646213ef4f Add a test for unpack assignment 2019-10-04 14:33:38 -07:00
Michael Hansen
31d907118a Add a new unit test framework that actually checks the output of
decompiled sources against an expected result.
2019-10-03 15:33:52 -07:00
Michael Hansen
619f584bd2 Simplify CMakeLists slightly, and correctly handle AppleClang 2019-10-02 16:27:27 -07:00
Michael Hansen
8d3752b4f0 Start requring C++11 with explicit virtual overrides. 2019-10-02 14:41:49 -07:00
Michael Hansen
98ad031109 Add initial 3.7 alpha support, and fix 3.6 opcode map 2017-12-20 13:49:28 -08:00
Michael Hansen
def5d90a9d Add more advanced round-trip test target that runs decompiled output back
through the originating Python compiler (Linux only for now)
2016-08-30 20:18:29 -07:00
Michael Hansen
c6d92bab3f Silence CMake warning 2016-08-30 11:42:02 -07:00
Michael Hansen
830bb0d31e Some fixes/cleanup for the test script 2016-08-30 11:19:10 -07:00
Michael Hansen
605d064fe7 Initial support for Python 3.6 disassembly 2016-06-22 22:06:09 -07:00
Arthur Zamarin
2d0b446486 Add install rules to CMake build
install the executables to the bin folder
2015-10-26 09:40:35 +02:00
Michael Hansen
5fae3e2d1f Add Python 3.5 disassembly support 2015-10-01 16:06:09 -07:00
Michael Hansen
32a14d55fa Clean up some CMakeLists stuff 2014-06-10 19:38:32 -07:00
Michael Hansen
4d21654134 Switch build system to CMake 2014-06-10 19:20:56 -07:00