mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
ci: Add new build-check-sanitized.sh
All C/C++ projects should use the sanitizers (and static analysis) in their CI. We had this but lost it in one of our CI shuffles; let's readd it.
This commit is contained in:
parent
afb032e693
commit
6b5aef7612
12
ci/build-check-sanitized.sh
Executable file
12
ci/build-check-sanitized.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/bash
|
||||
# Build with ASAN and UBSAN + unit tests.
|
||||
|
||||
set -xeuo pipefail
|
||||
|
||||
dn=$(dirname $0)
|
||||
. ${dn}/libbuild.sh
|
||||
export CFLAGS='-fsanitize=address -fsanitize=undefined -fsanitize-undefined-trap-on-error'
|
||||
# We leak global state in a few places, fixing that is hard.
|
||||
export ASAN_OPTIONS='detect_leaks=0'
|
||||
${dn}/build.sh
|
||||
make check
|
Loading…
Reference in New Issue
Block a user