Gulshan Singh
ccc56b9a58
Remove unused imports ( #1139 )
3 years ago
Gulshan Singh
1df714d700
Fix PEP8 violations and add flake8 to CI ( #1102 )
...
* Add flake8 config to setup.cfg
* Fix W291 PEP8 warnings
* Fix W605 PEP8 warnings
* Fix E711 PEP8 error
* Fix E713 PEP8 errors
* Fix E262 PEP8 errors
* Fix E714 PEP8 error
* Fix E712 PEP8 errors
* Add flake8 to CI
3 years ago
Disconnect3d
b3a560eff0
black all da code ( #1103 )
3 years ago
Disconnect3d
ef86a5ca3c
Remove shebang and coding lines
...
Those lines are redundant in our case: pwndbg is not imported or launched directly.
Also, the coding lines were relevant in Py2 but are not really needed in Py3.
4 years ago
Disconnect3d
6fd42dd5ab
Add attachp command and tests for it
4 years ago
Disconnect3d
1e28920440
Stop skipping tests
4 years ago
Daniel Ebert
fb8927d8cd
remove "matches for example ..." comments
4 years ago
Daniel Ebert
1d8568c45b
generate core just-in-time
4 years ago
Daniel Ebert
9613310e8c
compile binary just-in-time
4 years ago
Daniel Ebert
0608fc8dd1
replace "bash" binary with "div_zero_binary" in CI tests
4 years ago
Daniel Ebert
62df89e54c
fix CI tests
4 years ago
Israel Alberto RV
bf49bf8356
Unit test fix ( #868 )
...
* Fixed the failed unit testing; Improved the Dockerfile, again.
* Fixed missing new line joiner in the Dockerfile.
* Fixed the default Python version from 2 to 3.
* Moved the installation of the nasm and golang packages to the setup script.
* Fixed the extra quotes which fails the sudo check.
* Added to the Git ignore file the output files assembled and linked in the test binaries.
* Removed the output files from test binaries.
* Added to the Git ignore file the virtual environment directory.
* Added sudo to the remove and link the Python3 binary.
* Added commands related to GO, to check why is failing.
* Fixed the installation of GO, only install if not exists in Ubuntu.
* Fixed the first test built in Assembler. Checks if it is working in GitHub.
* Fixed the problem with all the assembler tests; Extracted the asserts into methods, avoiding duplicates.
* Fixed some test, should be fail the Travis tests.
* Fixed one test for Travis.
* Fixed the asserts, now find all ecpected items into the output.
* Fixed the split message, joined again.
* Fixed the last error test for loads binary.
* Fixed one missing number in the comparison.
* Fixed the first Lint errors.
* Added comment in the Dockerfile.
The commented line about `git submodule`.
https://github.com/pwndbg/pwndbg/pull/868#discussion_r549075767
* Removed NASM and Go from the setup.
Created a new bash script to install them and added to the Dockerfile.
https://github.com/pwndbg/pwndbg/pull/868/files#r549075931
https://github.com/pwndbg/pwndbg/pull/868/files#r549076078
* Added the setup script in the GitHub test workflow.
https://github.com/pwndbg/pwndbg/pull/868/files#r549075931
https://github.com/pwndbg/pwndbg/pull/868/files#r549076078
* Testing the emulate cases.
It should be fail. I commented the emulation for the address 0x401000.
https://github.com/pwndbg/pwndbg/pull/868#discussion_r549111511
* Fixed the different start addresses in the assembler test.
https://github.com/pwndbg/pwndbg/pull/868#discussion_r549111511
https://github.com/pwndbg/pwndbg/pull/868#discussion_r549075485
* Experimenting with the python location.
Commented the remove python binary and added some logs.
https://github.com/pwndbg/pwndbg/pull/868#discussion_r549076170
* Removed the commands about delete Python and link the Python3.
https://github.com/pwndbg/pwndbg/pull/868#discussion_r549076170
5 years ago
Disconnect3d
301012abf2
Py3k ( #817 )
...
* Py3k
* Dont run py2 on CI
* Don't launch futurize on CI
* Move to latest isort options
* Modernize imports (isort>=5)
* Fix removed jump dir
5 years ago
Disconnect3d
87aa167599
Run each test in a separate GDB session ( #498 )
...
* it would be cool to have tests that run within GDB so that we don't have to parse GDB output and deal with weird problems
* we can't run all tests in one GDB session as `file x; entry; <some pwndbg command>; file y; entry; <some wndbg command>;` may have different results - it seems either us or GDB fails to cleanup everything properly
8 years ago
Disconnect3d
2bc872cf7f
Fix isort ( #493 )
8 years ago
ecx86
ed2c92f6c3
Leak offset probing tool ( #492 )
...
* PIE command
* Kill compat in piebase command
* Improve piebase command
* Improve piebase command exe name introspection
* No longer rely on executeable segment for piebase
* Leak probing tool
* Fix description for probeleak
* Update probeleak.py
Changed `%x` to `0x%x` in edge case scenario print/reporting.
* Reorder imports
* Improve probeleak printing
8 years ago
Disconnect3d
e225ba9f64
Tests framework ( #375 )
...
* Add prototype of unit tests for pwndbg
* Add test for pwndbg [filter]
* Fix isort, e2e tests, add pytest requirement
* Add comment about not handling exceptions for unittests
* Fixes after rebase
* Fix test_loads_without_crashing
* e2e tests: no colors & loading pwndbg tests
* Fix isort
* Add example of no file loaded test
* Move tests to unit_tests, add binary, add memory tests
* Isort fixes
* Move from e2e/unit tests to tests
* Add info about tests to DEVELOPING.md
* Fix tests
* review fixes
* commands filtering test: check for contents, not for equality
* Add tests launcher bash script
* Change tests launcher name from unittests to pytests
* Cleanup; better test file paths
* Add theme param to disable colors
* Better test_loads
* Skip some tests locally that can run on travis
* Fix test_loads according to travis
* Fix travis tests
8 years ago