diff options
author | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2023-12-16 17:53:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-16 17:53:47 +0100 |
commit | 1d053905852b407eef472b0ef7886d10bb650383 (patch) | |
tree | ea3cc619a139a1fc8f96266a8bdb3432e4671400 /build-scripts/test-pikepdf | |
parent | 290742b069756218cd9d2075ea18b9fa60fc56ca (diff) | |
parent | 762f232146f3edc234c898b48e9daacf72ee9577 (diff) | |
download | qpdf-1d053905852b407eef472b0ef7886d10bb650383.tar.zst |
Merge pull request #1081 from jberkenbilt/future-build
Future build
Diffstat (limited to 'build-scripts/test-pikepdf')
-rwxr-xr-x | build-scripts/test-pikepdf | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/build-scripts/test-pikepdf b/build-scripts/test-pikepdf index e6c8a9a4..cdab79cf 100755 --- a/build-scripts/test-pikepdf +++ b/build-scripts/test-pikepdf @@ -1,10 +1,20 @@ #!/bin/bash set -ex +cmake_extra= +future=0 +if [ "$1" = "future" ]; then + future=1 + cmake_extra=-DFUTURE=ON +fi sudo apt-get update sudo apt-get -y install \ build-essential cmake zlib1g-dev libjpeg-dev libgnutls28-dev -cmake -S . -B build -DBUILD_STATIC_LIBS=0 -DCMAKE_BUILD_TYPE=RelWithDebInfo +cmake -S . -B build -DBUILD_STATIC_LIBS=0 -DCMAKE_BUILD_TYPE=RelWithDebInfo $cmake_extra cmake --build build --verbose -j$(nproc) --target libqpdf -- -k +if [ "$future" = "1" ]; then + # Run qpdf's test suite in FUTURE mode as well + ctest --verbose +fi export QPDF_SOURCE_TREE=$PWD export QPDF_BUILD_LIBDIR=$QPDF_SOURCE_TREE/build/libqpdf export LD_LIBRARY_PATH=$QPDF_BUILD_LIBDIR |