aboutsummaryrefslogtreecommitdiffstats
path: root/build-scripts/test-pikepdf
diff options
context:
space:
mode:
authorJay Berkenbilt <jberkenbilt@users.noreply.github.com>2023-12-16 17:53:47 +0100
committerGitHub <noreply@github.com>2023-12-16 17:53:47 +0100
commit1d053905852b407eef472b0ef7886d10bb650383 (patch)
treeea3cc619a139a1fc8f96266a8bdb3432e4671400 /build-scripts/test-pikepdf
parent290742b069756218cd9d2075ea18b9fa60fc56ca (diff)
parent762f232146f3edc234c898b48e9daacf72ee9577 (diff)
downloadqpdf-1d053905852b407eef472b0ef7886d10bb650383.tar.zst
Merge pull request #1081 from jberkenbilt/future-build
Future build
Diffstat (limited to 'build-scripts/test-pikepdf')
-rwxr-xr-xbuild-scripts/test-pikepdf12
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