Gulshan Singh
cc50024417
Format shell scripts with shfmt ( #1123 )
...
* Add lint.sh script
* Format shell scripts with shfmt and add to lint.sh
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
3 years ago
Gulshan Singh
2bde0cc1d8
Update CI to test 18.04, 20.04, and 22.04 ( #1100 )
...
* Fix requirements.txt for Python 3.6
* Install coverage from setup-test-tools.sh
* Update CI to test Ubuntu 18.04, 20.04, and 22.04
3 years ago
alufers
c0b3f88f53
Fix zig not being installed when installed system-wide ( #1093 )
3 years ago
Artur Czepiel
4ee225b115
Make ZIGPATH configurable and provide defaults ( #1090 )
...
* Make ZIGPATH configurable and provide defaults
Mostly fixes docker/docker-compose environment where building zig into
$pwd/.zig doesn't work well because it is later overwritten by mounting
the volume in /pwndbg.
With current approach during the docker build zig is put in /opt/zig
instead, and when you run it without docker it's possible to configure a
different path (with sane defaults)
* remove Makefile
* add ZIGPATH to tests.sh for CI
* move ZIGPATH setting before make in tests
3 years ago
alufers
36ee7d238d
tools: change zig to install from a tarball ( fixes : #1085 ) ( #1089 )
...
* tools: change zig to install from a tarball
Migrate from using snap, we install from a cheksumed tarball
* fix: add sudo
* fix: install zig to .zig in PWD
Co-authored-by: Albert Koczy <albert.koczy@asseco.pl>
3 years ago
Disconnect3d
d111c8ddcf
Fix heap test binaries build ( #1087 )
...
* Fix heap test binaries build
* Compile some heap test binaries with zig cc
3 years ago
Disconnect3d
546d6ffa19
fix vis_heap_chunk test on CI? ( #1086 )
...
* fix vis_heap_chunk test on CI?
* add libc6-dev for tests/CI for vis_heap_chunk test
* fix heap_vis.out build
3 years ago
Daniel Ebert
9613310e8c
compile binary just-in-time
4 years ago
Matteo Rizzo
45dd669a23
Make setup.sh work with Podman
...
Containers created with Podman (https://podman.io/ ) don't have a
.dockerenv file in the root directory, so setup.sh tries to invoke sudo.
This doesn't work because podman containers can't use sudo (the
processes inside the container run as an unprivileged user).
This removes the check for .dockerenv. The other checks should already
be sufficient to detect that it's running in a container without sudo.
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