mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 08:14:24 +02:00
Move sanitizer logs into regress for collection.
This commit is contained in:
parent
35ef2b3b6e
commit
55c60bdd39
6
.github/configs
vendored
6
.github/configs
vendored
@ -43,6 +43,8 @@ case "$config" in
|
|||||||
CONFIGFLAGS="--with-pam --with-Werror"
|
CONFIGFLAGS="--with-pam --with-Werror"
|
||||||
;;
|
;;
|
||||||
clang-sanitize-*)
|
clang-sanitize-*)
|
||||||
|
# Put Sanitizer logs in regress dir.
|
||||||
|
SANLOGS=`pwd`/regress
|
||||||
# - We replace chroot with chdir so that the sanitizer in the preauth
|
# - We replace chroot with chdir so that the sanitizer in the preauth
|
||||||
# privsep process can read /proc.
|
# privsep process can read /proc.
|
||||||
# - clang does not recognizes explicit_bzero so we use bzero
|
# - clang does not recognizes explicit_bzero so we use bzero
|
||||||
@ -53,14 +55,14 @@ case "$config" in
|
|||||||
clang-sanitize-address)
|
clang-sanitize-address)
|
||||||
CFLAGS="-fsanitize=address -fno-omit-frame-pointer"
|
CFLAGS="-fsanitize=address -fno-omit-frame-pointer"
|
||||||
LDFLAGS="-fsanitize=address"
|
LDFLAGS="-fsanitize=address"
|
||||||
CPPFLAGS='-Dchroot=chdir -Dexplicit_bzero=bzero -DASAN_OPTIONS=\"detect_leaks=0:log_path=/tmp/asan.log\"'
|
CPPFLAGS='-Dchroot=chdir -Dexplicit_bzero=bzero -DASAN_OPTIONS=\"detect_leaks=0:log_path='$SANLOGS'/asan.log\"'
|
||||||
CONFIGFLAGS="--without-openssl --without-zlib --without-shadow"
|
CONFIGFLAGS="--without-openssl --without-zlib --without-shadow"
|
||||||
TEST_TARGET="t-exec"
|
TEST_TARGET="t-exec"
|
||||||
;;
|
;;
|
||||||
clang-sanitize-memory)
|
clang-sanitize-memory)
|
||||||
CFLAGS="-fsanitize=memory -fsanitize-memory-track-origins"
|
CFLAGS="-fsanitize=memory -fsanitize-memory-track-origins"
|
||||||
LDFLAGS="-fsanitize=memory"
|
LDFLAGS="-fsanitize=memory"
|
||||||
CPPFLAGS='-Dchroot=chdir -Dexplicit_bzero=bzero -DMSAN_OPTIONS=\"log_path=/tmp/msan.log\"'
|
CPPFLAGS='-Dchroot=chdir -Dexplicit_bzero=bzero -DMSAN_OPTIONS=\"log_path='$SANLOGS'/msan.log\"'
|
||||||
CONFIGFLAGS="--without-openssl --without-zlib --without-shadow"
|
CONFIGFLAGS="--without-openssl --without-zlib --without-shadow"
|
||||||
TEST_TARGET="t-exec"
|
TEST_TARGET="t-exec"
|
||||||
;;
|
;;
|
||||||
|
4
.github/workflows/c-cpp.yml
vendored
4
.github/workflows/c-cpp.yml
vendored
@ -109,5 +109,5 @@ jobs:
|
|||||||
config.log
|
config.log
|
||||||
regress/*.log
|
regress/*.log
|
||||||
regress/valgrind-out/
|
regress/valgrind-out/
|
||||||
/tmp/asan.log.*
|
regress/asan.log.*
|
||||||
/tnp/msan.log.*
|
regress/msan.log.*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user