-
-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Add extended testing capability (#1156)
## Description Adds Github Actions workflow (`workflow_dispatch` only) and scripts for running tests in docker on - [x] Fedora - [x] Debian - [x] ArchLinux Fixes #1152
- Loading branch information
Showing
6 changed files
with
84 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Extended Tests | ||
|
||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
variants: | ||
- { os: fedora, version: 41 } | ||
- { os: debian, version: bookworm } | ||
- { os: archlinux, version: base } | ||
|
||
name: "Tests on ${{ matrix.variants }}" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
docker run -v ${PWD}:/gef ${{ matrix.variants.os }}:${{ matrix.variants.version }} "bash /gef/tests/extended/${{ matrix.variants.os }}.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
|
||
#!/bin/bash | ||
set -e | ||
# set -x | ||
# docker run -v /path/to/gef:/gef archlinux:base-20241110.0.278197 "bash /gef/tests/extended/archlinux.sh" | ||
pacman -Suy | ||
pacman -Suy --noconfirm gdb cmake gcc python3 procps file elfutils binutils cmake gcc qemu-user locales git python-pip make | ||
export LANG=en_US.UTF8 | ||
export LC_ALL=en_US.UTF8 | ||
|
||
alias gdb-multiarch=gdb | ||
bash /gef/tests/extended/run_pytest.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
set -e | ||
# set -x | ||
# docker run -v /path/to/gef:/gef debian:bookworm "bash /gef/tests/extended/debian.sh" | ||
apt update -qq | ||
apt install -qq -y gdb-multiarch cmake gcc-multilib python3 python3-pip procps file elfutils binutils cmake gcc g++ gdbserver qemu-user locales git | ||
rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 | ||
export LANG=en_US.UTF8 | ||
export LC_ALL=en_US.UTF8 | ||
|
||
bash /gef/tests/extended/run_pytest.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -e | ||
# set -x | ||
# docker run -v /path/to/gef:/gef fedora:41 "bash /gef/tests/extended/fedora.sh" | ||
dnf install -y gdb cmake gcc python3 python3-pip procps file elfutils binutils cmake gcc g++ gdbserver qemu-user git | ||
export LANG=en_US.UTF8 | ||
export LC_ALL=en_US.UTF8 | ||
|
||
bash /gef/tests/extended/run_pytest.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
git config --global --add safe.directory /gef | ||
cd /gef | ||
export PY_VER=`gdb-multiarch -q -nx -ex "pi print('.'.join(map(str, sys.version_info[:2])))" -ex quit` | ||
echo Using Python ${PY_VER} | ||
python${PY_VER} -m pip install --user --upgrade -r tests/requirements.txt -r docs/requirements.txt --break-system-packages | ||
make -C tests/binaries -j4 | ||
python${PY_VER} -m pytest --forked -n 4 -v -m "not benchmark" tests/ |