Skip to content

Commit

Permalink
scripts/run_tests.sh: add CFI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ebiggers committed Oct 18, 2020
1 parent 3b4a590 commit a2d9266
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,16 @@ run_tests() {
log "Skipping ASAN tests because compiler ($CC_VERSION) doesn't support ASAN"
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
check_symbol_prefixes
}
Expand Down

0 comments on commit a2d9266

Please sign in to comment.