mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-08-03 17:56:17 -04:00
scripts/run_tests.sh: add CFI tests
This commit is contained in:
parent
3b4a590f10
commit
a2d92667b5
@ -268,6 +268,16 @@ run_tests() {
|
|||||||
log "Skipping ASAN tests because compiler ($CC_VERSION) doesn't support ASAN"
|
log "Skipping ASAN tests because compiler ($CC_VERSION) doesn't support ASAN"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cflags=("-fsanitize=cfi" "-fno-sanitize-recover=cfi" "-flto"
|
||||||
|
"-fvisibility=hidden")
|
||||||
|
if cflags_supported "${cflags[@]}"; then
|
||||||
|
begin "Running tests with CFI"
|
||||||
|
CFLAGS="$CFLAGS ${cflags[*]}" do_run_tests --quick
|
||||||
|
end
|
||||||
|
else
|
||||||
|
log "Skipping CFI tests because compiler ($CC_VERSION) doesn't support CFI"
|
||||||
|
fi
|
||||||
|
|
||||||
install_uninstall_tests
|
install_uninstall_tests
|
||||||
check_symbol_prefixes
|
check_symbol_prefixes
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user