Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ jobs:
with:
python-version: 3.14
- name: install python dependencies
run: pip install htmlcmp==1.2.4
run: pip install htmlcmp==2.0.0

- name: download binaries
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
Expand Down Expand Up @@ -250,7 +250,7 @@ jobs:
run: |
compare-html \
--driver firefox \
--max-workers 1 \
--max-workers 2 \
test/data/reference-output/odr-public/output \
build/test/output/odr-public/output

Expand All @@ -261,7 +261,7 @@ jobs:
run: |
compare-html \
--driver firefox \
--max-workers 1 \
--max-workers 2 \
test/data/reference-output/odr-private/output \
build/test/output/odr-private/output

Expand Down
21 changes: 21 additions & 0 deletions test/scripts/compare_output.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

REF="test/data/reference-output/"
OBS="cmake-build-relwithdebinfo/test/output/"
DRIVER="firefox"

if [ ! -d "$REF" ]; then
echo "Reference output directory does not exist: $REF"
exit 1
fi
if [ ! -d "$OBS" ]; then
echo "Observed output directory does not exist: $OBS"
exit 1
fi

docker run -ti \
-v $(pwd):/repo \
-p 8000:8000 \
--platform linux/amd64 \
ghcr.io/opendocument-app/odr_core_test:2.0.0 \
compare-html /repo/$REF /repo/$OBS --driver $DRIVER --max-workers 4 -vv
4 changes: 2 additions & 2 deletions test/scripts/compare_output_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ docker run -ti \
-v $(pwd):/repo \
-p 8000:8000 \
--platform linux/amd64 \
ghcr.io/opendocument-app/odr_core_test:1.3.0 \
compare-html-server /repo/$REF /repo/$OBS --compare --max-workers 4 --driver $DRIVER --port 8000 -vv
ghcr.io/opendocument-app/odr_core_test:2.0.0 \
compare-html-server /repo/$REF /repo/$OBS --driver $DRIVER --max-workers 4 --compare --port 8000 -vv
Loading