Commit Graph

10 Commits

Author SHA1 Message Date
patryk4815 c80793f41e
add python3.10, add debian12, drop python3.8, drop ubuntu20.04, drop debian11 (#2421)
* drop ubuntu-20.04

* bump debian11->debian12

* bump python3.8->3.10

* bump py3.10 dependencies

* fix mypy/lint errors
2024-09-05 13:55:16 +02:00
OBarronCS 1438fc0616
Qemu user test structure (#2275)
* Initial version of qemu-user tests

* Refactor testing files to reduce file duplication, introduce qemu-user-tests

* lint and edit github actions workflow file. Move old qemu-user tests to seperate directory

* Add iproute2 so ss command is available

* test ubuntu 24

* funkiness with current working directory...

* Further remote old test_qemu.sh and integrate into a Pytest fixture

* lint

* Disable ASLR, add test for aarch64 jumps

* Use Popen.kill() function to make sure it closes.

Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>

* qemu.kill() on the other fixture as well

* comment

* comment

* lint

* system test path stuff

* remove old try-catch block

* revert

* revert path change

* Use os._exit to pass return code, and move qemu-user tests above system tests because they run significantly faster

* lint

* Flush stdout before os._exit

* Comment out flaky check for the address of main in old qemu tests

* rename qemu-user to cross-arch

* rename qemu-user to cross-arch and hotfix to not run pytest when
cross-arch is used

* remove todo comment

* another comment

* Test pwndbg.gdblib.symbol.address is not None and revert setarch -R

* Revert os.exit change

* Revert os.exit change

* Revert os.exit change

* readd os.exit in new exit places

* lint

* rebase

* delete file introduced in rebase

* break up tests into 3 files to invoke separately. Update GitHub workflow, remove code duplication in existing test

* code coverage

* fix code coverage

* lint

* test difference between Ubuntu 22 and 24 in Kernel tests

* lint

---------

Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
2024-08-17 01:49:45 +02:00
Matt 4e5e44b3fb
Add initialization under LLDB (#2253) 2024-06-24 11:37:15 -07:00
Disconnect3d b2bd87939f
Remove support for Ubuntu 18.04 (#1812) (#1814) 2023-07-19 18:40:37 +02:00
Disconnect3d 2552f95e1f
Remove support for Debian 10 (#1812) 2023-07-19 18:26:28 +02:00
intrigus-lgtm c54d040f06
Fix/ignore venv restrict bind mount (#1796)
* Ignore .venv files in git and docker

* Only bind mount cwd for `main`

Bind mounting `.` in every case would interfere with .dockerignore
We want to ignore `.venv` so that the venv of the built docker image
is used. Otherwise we would use the venv of the host inside docker.
This would negate the whole point of testing in a docker container.

Bind mounting `.` is however useful if one wants to use docker just
for "sandboxing" while running the tests on the local machine.

---------

Co-authored-by: intrigus <abc123zeus@live.de>
2023-07-13 11:27:40 +02:00
Xeonacid 1224cf75ef
Support Arch Linux docker test (#1378)
* Specify dockerfile for ubuntu/debian

To add Dockerfile.arch later

* Support Arch Linux docker test

* Fix setup-dev supported distro

* Create set_zigpath function

* Download zig from upstream for archlinux

* Add hash as part of key for docker cache

as https://github.com/satackey/action-docker-layer-caching#inputs notes.
2022-11-22 19:21:40 +01:00
Disconnect3d dd6454065d
Merged #1351 PR: Run tests in docker images (#1370)
* Added images to DockerFile

* Docker test

* Docker.yml changes, longer timeout and naming changes

* typo in run command

* added matrix for docker workflow 'testing'

* typo in matrix

* git fixes

* docker testing

* Changed stage build'testing'

* testing docker change

* Run images in seperate containers

* docker files added

* reverted Dockerfile

* Removed files from the index (now ignored)

* Docker test, changed build to pull

* Update comments in Ubuntu and Debian dockerfiles

* added main service back

* Reducing common code

* Condensing docker-compose.yml

* Revert docker-compose.yml changes

* Removing matrix from docker-compose.yml

* removing target images from docker-compose

* Added dockerfile-unitTests

* Condensing docker-compose.yml

* Reverting compose changes

* Merged Dockerfiles and fixed image names

* removed .DS_Store

* Revert pycharm_debugging.md

* Testing remove

* Testing remove

* Remove ds files

* Add files via upload

* Add files via upload

* Docker changes

* Docker workflow changes

* Update Dockerfile

* Update docker-compose.yml

* shorten docker-compose.yml by using yaml anchors

* fix docker-compose.yml

Co-authored-by: Kevin Nguyen <u7315258@anu.edu.au>
Co-authored-by: Filip Mazur <110886132+mazfil@users.noreply.github.com>
Co-authored-by: KevinN318 <110944398+KevinN318@users.noreply.github.com>
Co-authored-by: Filip Mazur <u6934917@anu.edu.au>
2022-11-11 07:23:02 +01:00
Gulshan Singh b32c5e052e
Set security_opt to seccomp:unconfined in docker-compose.yml (#1116) 2022-09-04 18:35:46 +02:00
Hubert Bryłkowski 5c9bd146c8 added docker-compose and instructions how to run tests there 2022-07-16 15:16:25 +01:00