Commit db4ec7a9db7a0d87d459d7dc80f9a2afb4cbeadb
1 parent
273eaf46
Test qpdf + pikepdf with FUTURE
Showing
2 changed files
with
19 additions
and
1 deletions
.github/workflows/main.yml
| ... | ... | @@ -118,6 +118,14 @@ jobs: |
| 118 | 118 | - uses: actions/checkout@v3 |
| 119 | 119 | - name: 'pikepdf' |
| 120 | 120 | run: build-scripts/test-pikepdf |
| 121 | + pikepdf-future: | |
| 122 | + runs-on: ubuntu-latest | |
| 123 | + # Run after pikepdf to save concurrent runners | |
| 124 | + needs: pikepdf | |
| 125 | + steps: | |
| 126 | + - uses: actions/checkout@v3 | |
| 127 | + - name: 'qpdf + pikepdf with FUTURE' | |
| 128 | + run: build-scripts/test-pikepdf future | |
| 121 | 129 | Fuzzers: |
| 122 | 130 | runs-on: ubuntu-latest |
| 123 | 131 | needs: Prebuild | ... | ... |
build-scripts/test-pikepdf
| 1 | 1 | #!/bin/bash |
| 2 | 2 | set -ex |
| 3 | +cmake_extra= | |
| 4 | +future=0 | |
| 5 | +if [ "$1" = "future" ]; then | |
| 6 | + future=1 | |
| 7 | + cmake_extra=-DFUTURE=ON | |
| 8 | +fi | |
| 3 | 9 | sudo apt-get update |
| 4 | 10 | sudo apt-get -y install \ |
| 5 | 11 | build-essential cmake zlib1g-dev libjpeg-dev libgnutls28-dev |
| 6 | -cmake -S . -B build -DBUILD_STATIC_LIBS=0 -DCMAKE_BUILD_TYPE=RelWithDebInfo | |
| 12 | +cmake -S . -B build -DBUILD_STATIC_LIBS=0 -DCMAKE_BUILD_TYPE=RelWithDebInfo $cmake_extra | |
| 7 | 13 | cmake --build build --verbose -j$(nproc) --target libqpdf -- -k |
| 14 | +if [ "$future" = "1" ]; then | |
| 15 | + # Run qpdf's test suite in FUTURE mode as well | |
| 16 | + ctest --verbose | |
| 17 | +fi | |
| 8 | 18 | export QPDF_SOURCE_TREE=$PWD |
| 9 | 19 | export QPDF_BUILD_LIBDIR=$QPDF_SOURCE_TREE/build/libqpdf |
| 10 | 20 | export LD_LIBRARY_PATH=$QPDF_BUILD_LIBDIR | ... | ... |