Skip to content

Commit

Permalink
added arch
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Nov 12, 2024
1 parent 0049c2d commit 1910a4a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 15 deletions.
13 changes: 13 additions & 0 deletions tests/extended/archlinux.sh
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
8 changes: 1 addition & 7 deletions tests/extended/debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,4 @@ rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/loca
export LANG=en_US.UTF8
export LC_ALL=en_US.UTF8

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/
bash /gef/tests/extended/run_pytest.sh
9 changes: 1 addition & 8 deletions tests/extended/fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,4 @@ dnf install -y gdb cmake gcc python3 python3-pip procps file elfutils binutils c
export LANG=en_US.UTF8
export LC_ALL=en_US.UTF8

git config --global --add safe.directory /gef
cd /gef
alias gdb-multiarch=gdb
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/
bash /gef/tests/extended/run_pytest.sh
10 changes: 10 additions & 0 deletions tests/extended/run_pytest.sh
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/

0 comments on commit 1910a4a

Please sign in to comment.