2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 19:08:59 +00:00
qpdf/build-scripts/build-linux

25 lines
832 B
Plaintext
Raw Normal View History

#!/bin/bash
set -ex
sudo apt-get update
sudo apt-get -y install \
2022-03-12 12:12:08 +00:00
build-essential cmake zlib1g-dev libjpeg-dev libgnutls28-dev \
libssl-dev libtiff-tools ghostscript
2022-03-12 12:12:08 +00:00
cmake -S . -B build -DCI_MODE=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DREQUIRE_CRYPTO_OPENSSL=1 -DREQUIRE_CRYPTO_GNUTLS=1
cmake --build build -j$(nproc) -- -k
cd build
# libtests automatically runs with all crypto providers.
env QPDF_TEST_COMPARE_IMAGES=1 ctest --verbose
# Run just qpdf tests with remaining crypto providers.
for i in $(./qpdf/qpdf --show-crypto | tail -n +2); do
echo "*** Running qpdf tests with crypto provider $i"
env QPDF_CRYPTO_PROVIDER=$i ctest --verbose -R '^qpdf$'
done
2022-03-12 12:12:08 +00:00
cd ..
2021-12-13 12:43:26 +00:00
export TMPDIR=$PWD/dist-tmp
rm -rf $TMPDIR
./make_dist --ci
2018-10-13 15:59:05 +00:00
mkdir distribution
2021-12-13 12:43:26 +00:00
cp $TMPDIR/qpdf*-ci.tar.gz distribution
2018-10-13 15:59:05 +00:00
sha256sum distribution/*