Skip to content

Commit

Permalink
Update sanitizer scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mvtiaine committed Jan 6, 2025
1 parent 796e35e commit 6c1b54e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
1 change: 1 addition & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ autoreconf -i && \
./configure && \
make clean && \
CFLAGS="-Werror" \
CXXFLAGS="${CFLAGS}" \
make -j distcheck
echo ${VERSION_OLD} > VERSION
35 changes: 17 additions & 18 deletions scripts/sanitize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,41 @@
set -e

# -Werror
make clean && CFLAGS="-Werror" ./configure && make -j && make -j check
#make clean && CFLAGS="-Werror" CXXFLAGS="${CFLAGS}" ./configure && make -j && make -j check

# assert disabled
make clean && CPPFLAGS="-DNDEBUG" CFLAGS="-Werror -Wno-error=unused-but-set-variable" ./configure && make -j && make -j check
#make clean && CPPFLAGS="-DNDEBUG" CFLAGS="-Werror -Wno-error=unused-but-set-variable" CXXFLAGS="${CFLAGS}" ./configure && make -j && make -j check

# scan-build
#export CXXFLAGS=-std=gnu++20
#make clean && CFLAGS="-Werror" ./configure && scan-build -disable-checker deadcode.DeadStores -analyze-headers --status-bugs make -j
#make clean && CFLAGS="-Werror" ./configure && scan-build --exclude ./uade/src/ -analyze-headers --status-bugs make -j
#make clean && CFLAGS="-Werror" CXXFLAGS="${CFLAGS}" ./configure && scan-build -disable-checker unix.Errno -disable-checker deadcode.DeadStores -analyze-headers --status-bugs make -j
#make clean && CFLAGS="-Werror" CXXFLAGS="${CFLAGS}" ./configure && scan-build -disable-checker unix.Errno --exclude ./uade/src/ -analyze-headers --status-bugs make -j

# sanitizers
make clean && \
CFLAGS="-fsanitize=address -Werror" LDFLAGS=-fsanitize=address ./configure && \
make -j check
make clean && \
CFLAGS="-fsanitize=undefined -Werror" LDFLAGS=-fsanitize=undefined ./configure && \
make -j check
make clean && \
CFLAGS="-fsanitize=thread -Werror" LDFLAGS=-fsanitize=thread ./configure && \
make -j check
#make clean && \
# CFLAGS="-fsanitize=address -Werror -Og -g" CXXFLAGS="${CFLAGS}" LDFLAGS=-fsanitize=address ./configure && \
# make -j check
#make clean && \
# CFLAGS="-fsanitize=undefined -Werror -Og -g" CXXFLAGS="${CFLAGS}" LDFLAGS=-fsanitize=undefined ./configure && \
# make -j check
#make clean && \
# CFLAGS="-fsanitize=thread -Werror -Og -g" CXXFLAGS="${CFLAGS}" LDFLAGS=-fsanitize=thread ./configure && \
# make -j check

#make clean &&
# CFLAGS="-fsanitize=memory -Werror" LDFLAGS=-fsanitize=memory ./configure && \
# CFLAGS="-fsanitize=memory -Werror" CXXFLAGS="${CFLAGS}" LDFLAGS=-fsanitize=memory ./configure && \
# make -j check
#make clean && \
# CFLAGS="-flto -fsanitize=cfi -Werror" LDFLAGS=-fsanitize=cfi ./configure && \
# CFLAGS="-flto -fsanitize=cfi -Werror" CXXFLAGS="${CFLAGS}" LDFLAGS=-fsanitize=cfi ./configure && \
# make -j check

# valgrind
#make clean && \
# CFLAGS="-gdwarf-4 -Werror" ./configure && \
# CFLAGS="-gdwarf-4 -Werror" CXXFLAGS="${CFLAGS}" ./configure && \
# make -j check && \
# WRAPPER="$(which valgrind || echo valgrind) --quiet --exit-on-first-error=yes --error-exitcode=1 --trace-children=yes --track-origins=yes --leak-check=full " make -j check

# callgrind
#make clean && \
# CFLAGS="-gdwarf-4 -Werror" ./configure && \
# CFLAGS="-gdwarf-4 -Werror" CXXFLAGS="${CFLAGS}" ./configure && \
# make -j check && \
# WRAPPER="$(which valgrind || echo valgrind) --tool=callgrind" make -j check

0 comments on commit 6c1b54e

Please sign in to comment.