Commit 70b8c41f46ee723f9fa216f619bf927a0319bda5
1 parent
1639d972
Run all crypto providers in CI for Linux and sanitizer builds
Showing
2 changed files
with
12 additions
and
4 deletions
azure-pipelines/build-linux
| @@ -2,12 +2,16 @@ | @@ -2,12 +2,16 @@ | ||
| 2 | set -ex | 2 | set -ex |
| 3 | sudo apt-get update | 3 | sudo apt-get update |
| 4 | sudo apt-get -y install \ | 4 | sudo apt-get -y install \ |
| 5 | - autoconf build-essential zlib1g-dev libjpeg-dev \ | 5 | + autoconf build-essential zlib1g-dev libjpeg-dev libgnutls28-dev \ |
| 6 | docbook-xsl fop xsltproc libxml2-utils inkscape imagemagick | 6 | docbook-xsl fop xsltproc libxml2-utils inkscape imagemagick |
| 7 | ./configure --enable-werror --enable-doc-maintenance \ | 7 | ./configure --enable-werror --enable-doc-maintenance \ |
| 8 | + --enable-crypto-native --enable-crypto-gnutls \ | ||
| 8 | --enable-show-failed-test-output | 9 | --enable-show-failed-test-output |
| 9 | make -j$(nproc) -k | 10 | make -j$(nproc) -k |
| 10 | -make -k check | 11 | +for i in $(./qpdf/build/qpdf --show-crypto); do |
| 12 | + echo "*** Running tests with crypto provider $i" | ||
| 13 | + env QPDF_CRYPTO_PROVIDER=$i make -k check | ||
| 14 | +done | ||
| 11 | make distfiles.zip | 15 | make distfiles.zip |
| 12 | ./make_dist --ci --no-tests | 16 | ./make_dist --ci --no-tests |
| 13 | mkdir distribution | 17 | mkdir distribution |
azure-pipelines/test-sanitizers
| @@ -2,11 +2,15 @@ | @@ -2,11 +2,15 @@ | ||
| 2 | set -e | 2 | set -e |
| 3 | sudo apt-get update | 3 | sudo apt-get update |
| 4 | sudo apt-get -y install \ | 4 | sudo apt-get -y install \ |
| 5 | - autoconf build-essential zlib1g-dev libjpeg-dev | 5 | + autoconf build-essential zlib1g-dev libjpeg-dev libgnutls28-dev |
| 6 | ./configure \ | 6 | ./configure \ |
| 7 | CFLAGS="-fsanitize=address -fsanitize=undefined -g" \ | 7 | CFLAGS="-fsanitize=address -fsanitize=undefined -g" \ |
| 8 | CXXFLAGS="-fsanitize=address -fsanitize=undefined -g" \ | 8 | CXXFLAGS="-fsanitize=address -fsanitize=undefined -g" \ |
| 9 | LDFLAGS="-fsanitize=address -fsanitize=undefined" \ | 9 | LDFLAGS="-fsanitize=address -fsanitize=undefined" \ |
| 10 | + --enable-crypto-native --enable-crypto-gnutls \ | ||
| 10 | --enable-werror --disable-shared --enable-show-failed-test-output | 11 | --enable-werror --disable-shared --enable-show-failed-test-output |
| 11 | make -j$(nproc) -k | 12 | make -j$(nproc) -k |
| 12 | -make -k check | 13 | +for i in $(./qpdf/build/qpdf --show-crypto); do |
| 14 | + echo "*** Running tests with crypto provider $i" | ||
| 15 | + env QPDF_CRYPTO_PROVIDER=$i make -k check | ||
| 16 | +done |