2019-06-15 19:34:29 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y install \
|
2019-11-06 02:31:56 +00:00
|
|
|
autoconf build-essential zlib1g-dev libjpeg-dev libgnutls28-dev
|
2019-06-15 19:34:29 +00:00
|
|
|
./configure \
|
|
|
|
CFLAGS="-fsanitize=address -fsanitize=undefined -g" \
|
|
|
|
CXXFLAGS="-fsanitize=address -fsanitize=undefined -g" \
|
|
|
|
LDFLAGS="-fsanitize=address -fsanitize=undefined" \
|
2019-11-06 02:31:56 +00:00
|
|
|
--enable-crypto-native --enable-crypto-gnutls \
|
2019-06-15 19:34:29 +00:00
|
|
|
--enable-werror --disable-shared --enable-show-failed-test-output
|
|
|
|
make -j$(nproc) -k
|
2019-11-06 02:31:56 +00:00
|
|
|
for i in $(./qpdf/build/qpdf --show-crypto); do
|
|
|
|
echo "*** Running tests with crypto provider $i"
|
|
|
|
env QPDF_CRYPTO_PROVIDER=$i make -k check
|
|
|
|
done
|