File: build-linux

package info (click to toggle)
qpdf 12.3.2-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 72,660 kB
  • sloc: cpp: 59,054; perl: 12,189; ansic: 6,809; sh: 1,231; python: 1,041; xml: 43; makefile: 42
file content (31 lines) | stat: -rwxr-xr-x 1,143 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
set -ex
sudo apt-get update
sudo apt-get -y install \
   build-essential cmake zlib1g-dev libjpeg-dev libgnutls28-dev \
   libssl-dev libtiff-tools ghostscript
cmake -S . -B build -DCI_MODE=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
      -DREQUIRE_CRYPTO_OPENSSL=1 -DREQUIRE_CRYPTO_GNUTLS=1
cmake --build build --verbose -j$(nproc) -- -k
cd build
# Make sure char is signed by default -- see also test-unsigned-char
./qpdf/test_char_sign | grep 'char is signed'
# 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
cd ..
# Perform additional tests on header files.
./build-scripts/check-headers
# Perform additional tests on private header files.
./build-scripts/check-private-headers
# Create distribution
export TMPDIR=$PWD/dist-tmp
rm -rf $TMPDIR
./make_dist --ci
mkdir distribution
cp $TMPDIR/qpdf*-ci.tar.gz distribution
sha256sum distribution/*