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 7c7191a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .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
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 480

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

0 comments on commit 7c7191a

Please sign in to comment.