mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-16 01:27:07 +00:00
98174373b9
Explicitly enable openssl crypto provider in the linux and sanitizer builds, and disable it in the windows build.
17 lines
632 B
Bash
Executable File
17 lines
632 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
sudo apt-get update
|
|
sudo apt-get -y install \
|
|
autoconf build-essential zlib1g-dev libjpeg-dev libgnutls28-dev
|
|
./configure \
|
|
CFLAGS="-fsanitize=address -fsanitize=undefined -g" \
|
|
CXXFLAGS="-fsanitize=address -fsanitize=undefined -g" \
|
|
LDFLAGS="-fsanitize=address -fsanitize=undefined" \
|
|
--enable-crypto-native --enable-crypto-openssl --enable-crypto-gnutls \
|
|
--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
|