Skip to content

Commit

Permalink
tests: add packet.exe integration to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
thebendavis committed Jul 9, 2024
1 parent 4abd67d commit 95ea397
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ jobs:
cat out.log
grep -e "All .* tests passed" out.log || exit 1
- name: Docker Integration Test
run: |
docker run --rm --entrypoint tests/integration/packet/packet.exp pate
- name: Push Docker image
run: |
CI_COMMIT_SHORT_SHA=$(git rev-parse --short $GITHUB_SHA)
Expand Down Expand Up @@ -123,7 +127,7 @@ jobs:
sudo apt install -y software-properties-common apt-transport-https ca-certificates wget
sudo apt install -y bsdiff curl zlibc zlib1g zlib1g-dev git zip \
libgmp3-dev build-essential libtinfo-dev autoconf automake gperf cmake locales \
python3-distutils python-setuptools antlr3 libantlr3c-dev libtool libtool-bin libboost-all-dev python3-pip libfftw3-dev
python3-distutils python-setuptools antlr3 libantlr3c-dev libtool libtool-bin libboost-all-dev python3-pip libfftw3-dev expect-lite
sudo locale-gen en_US.UTF-8
sudo pip3 install toml
Expand Down Expand Up @@ -192,5 +196,9 @@ jobs:
run: |
cabal test pkg:pate --test-options="-t 2400s"
- name: Integration Test
run: |
./tests/integration/packet/packet.exp
- name: Docs
run: cabal haddock pkg:pate
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ RUN cabal v2-build pate-repl-base
ENV PATH="/home/src/:/root/.ghcup/bin:${PATH}"

COPY --from=gitbase /home/src/loadrepl.ghci /home/src/loadrepl.ghci
RUN apt install -y libtinfo5 libtinfo-dev
RUN apt install -y libtinfo5 libtinfo-dev expect-lite
ENTRYPOINT ["/home/src/pate.sh"]


2 changes: 1 addition & 1 deletion tests/integration/packet/packet.exp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

spawn ./pate.sh --original tests/integration/packet/exe/packet.exe --patched tests/integration/packet/exe/packet.patched.exe -s parse_packet

set timeout 120
set timeout 240

expect_before {
timeout { send_user "\n\nFAILURE: timeout\n"; exit 1 }
Expand Down

0 comments on commit 95ea397

Please sign in to comment.