2018-10-11 13:35:07 -04:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y install \
|
2022-03-12 07:12:08 -05:00
|
|
|
build-essential cmake zlib1g-dev libjpeg-dev libgnutls28-dev \
|
2021-12-21 09:23:20 -05:00
|
|
|
libssl-dev libtiff-tools ghostscript
|
2022-03-12 07:12:08 -05:00
|
|
|
cmake -S . -B build -DCI_MODE=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DREQUIRE_CRYPTO_OPENSSL=1 -DREQUIRE_CRYPTO_GNUTLS=1
|
2022-10-06 07:14:23 -04:00
|
|
|
cmake --build build --verbose -j$(nproc) -- -k
|
2022-03-12 07:12:08 -05:00
|
|
|
cd build
|
2022-09-23 17:43:01 -04:00
|
|
|
# Make sure char is signed by default -- see also test-unsigned-char
|
|
|
|
./qpdf/test_char_sign | grep 'char is signed'
|
2022-03-12 07:12:08 -05:00
|
|
|
# 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$'
|
2019-11-05 21:31:56 -05:00
|
|
|
done
|
2022-03-12 07:12:08 -05:00
|
|
|
cd ..
|
2021-12-13 07:43:26 -05:00
|
|
|
export TMPDIR=$PWD/dist-tmp
|
|
|
|
rm -rf $TMPDIR
|
2021-12-21 09:23:20 -05:00
|
|
|
./make_dist --ci
|
2018-10-13 11:59:05 -04:00
|
|
|
mkdir distribution
|
2021-12-13 07:43:26 -05:00
|
|
|
cp $TMPDIR/qpdf*-ci.tar.gz distribution
|
2018-10-13 11:59:05 -04:00
|
|
|
sha256sum distribution/*
|