-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: remove symbolic links from repository
This will reduce cross-platform differences between windows and linux. Closes #627.
- Loading branch information
Showing
3 changed files
with
49 additions
and
46 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
See docs/section-6-contributing.md. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
set -eux | ||
|
||
root=$(dirname "$0")/.. | ||
export ASAN_OPTIONS="quarantine_size_mb=10:detect_leaks=1:symbolize=1" | ||
export UBSAN="print_stacktrace=1:halt_on_error=1:symbolize=1" | ||
|
||
# check if CI env var exists | ||
|
||
if [ -z "${CI:-}" ]; then | ||
declare -A mode_config=( ["halt"]="-timeout=1 -rss_limit_mb=2048" ["recover"]="-timeout=10 -rss_limit_mb=2048" ) | ||
else | ||
declare -A mode_config=( ["halt"]="-max_total_time=120 -timeout=1 -rss_limit_mb=2048" ["recover"]="-time=120 -timeout=10 -rss_limit_mb=2048" ) | ||
fi | ||
|
||
if [ "$#" -lt 3 ]; then | ||
echo "usage: $0 <language> (halt|recover) <testcase> <libFuzzer args...>" | ||
exit 1 | ||
fi | ||
|
||
lang="$1" | ||
shift | ||
mode="$1" | ||
shift | ||
testcase="$1" | ||
shift | ||
# Treat remainder of arguments as libFuzzer arguments | ||
|
||
"${root}/test/fuzz/out/${lang}_fuzzer" "${mode_config[$mode]}" -runs=1 "${testcase}" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters