aboutsummaryrefslogtreecommitdiffstats
path: root/azure-pipelines
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-11-06 03:31:56 +0100
committerJay Berkenbilt <ejb@ql.org>2019-11-09 15:53:42 +0100
commit70b8c41f46ee723f9fa216f619bf927a0319bda5 (patch)
tree956942b73367b77d82a0212144ef7a14dfbe79db /azure-pipelines
parent1639d972ea0b30711b9a762fe4475cdb2b229be1 (diff)
downloadqpdf-70b8c41f46ee723f9fa216f619bf927a0319bda5.tar.zst
Run all crypto providers in CI for Linux and sanitizer builds
Diffstat (limited to 'azure-pipelines')
-rwxr-xr-xazure-pipelines/build-linux8
-rwxr-xr-xazure-pipelines/test-sanitizers8
2 files changed, 12 insertions, 4 deletions
diff --git a/azure-pipelines/build-linux b/azure-pipelines/build-linux
index a1db7659..9524b413 100755
--- a/azure-pipelines/build-linux
+++ b/azure-pipelines/build-linux
@@ -2,12 +2,16 @@
set -ex
sudo apt-get update
sudo apt-get -y install \
- autoconf build-essential zlib1g-dev libjpeg-dev \
+ autoconf build-essential zlib1g-dev libjpeg-dev libgnutls28-dev \
docbook-xsl fop xsltproc libxml2-utils inkscape imagemagick
./configure --enable-werror --enable-doc-maintenance \
+ --enable-crypto-native --enable-crypto-gnutls \
--enable-show-failed-test-output
make -j$(nproc) -k
-make -k check
+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
make distfiles.zip
./make_dist --ci --no-tests
mkdir distribution
diff --git a/azure-pipelines/test-sanitizers b/azure-pipelines/test-sanitizers
index 507b73ed..f20fc4b3 100755
--- a/azure-pipelines/test-sanitizers
+++ b/azure-pipelines/test-sanitizers
@@ -2,11 +2,15 @@
set -e
sudo apt-get update
sudo apt-get -y install \
- autoconf build-essential zlib1g-dev libjpeg-dev
+ 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-gnutls \
--enable-werror --disable-shared --enable-show-failed-test-output
make -j$(nproc) -k
-make -k check
+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