mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 10:58:58 +00:00
Run tests with sanitizers in CI
This commit is contained in:
parent
bcfa407912
commit
127859a6d3
@ -1,5 +1,7 @@
|
||||
2019-06-15 Jay Berkenbilt <ejb@ql.org>
|
||||
|
||||
* Update CI (Azure Pipelines) to run tests with some sanitizers.
|
||||
|
||||
* Do "ideal integration" with oss-fuzz. This includes adding a
|
||||
better fuzzer with a seed corpus and adding automated tests of the
|
||||
fuzzer with the test data.
|
||||
|
@ -108,3 +108,15 @@ jobs:
|
||||
displayName: 'Build Fuzzer'
|
||||
dependsOn: Linux
|
||||
condition: succeeded()
|
||||
- job: Sanitizers
|
||||
pool:
|
||||
vmImage: ubuntu-16.04
|
||||
steps:
|
||||
- script: azure-pipelines/test-sanitizers
|
||||
displayName: 'Sanitizer Tests'
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testRunTitle: Sanitizers
|
||||
buildPlatform: Sanitizers
|
||||
dependsOn: Linux
|
||||
condition: succeeded()
|
||||
|
12
azure-pipelines/test-sanitizers
Executable file
12
azure-pipelines/test-sanitizers
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install \
|
||||
autoconf build-essential zlib1g-dev libjpeg-dev
|
||||
./configure \
|
||||
CFLAGS="-fsanitize=address -fsanitize=undefined -g" \
|
||||
CXXFLAGS="-fsanitize=address -fsanitize=undefined -g" \
|
||||
LDFLAGS="-fsanitize=address -fsanitize=undefined" \
|
||||
--enable-werror --disable-shared --enable-show-failed-test-output
|
||||
make -j$(nproc) -k
|
||||
make -k check
|
Loading…
Reference in New Issue
Block a user