2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-02 19:49:43 +00:00
qpdf/build-scripts/test-sanitizers

18 lines
683 B
Plaintext
Raw Normal View History

2019-06-15 19:34:29 +00:00
#!/bin/bash
set -e
sudo apt-get update
sudo apt-get -y install \
autoconf build-essential zlib1g-dev libjpeg-dev libgnutls28-dev libssl-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" \
2021-02-10 19:26:54 +00:00
CC=clang CXX="clang++ --std=c++14" \
--enable-crypto-native --enable-crypto-openssl --enable-crypto-gnutls \
2019-06-15 19:34:29 +00:00
--enable-werror --disable-shared --enable-show-failed-test-output
make -j$(nproc) -k
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