Skip to content

Commit 9b9d121

Browse files
committed
-v option
1 parent c0da127 commit 9b9d121

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

afl-cov.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
# easy wrapper script for afl-cov
44
#
55
test "$1" = "-h" -o -z "$1" && {
6-
echo Syntax: $0 out-dir \"exec cmd --foo @@\"
6+
echo "Syntax: $0 [-v] out-dir \"exec cmd --foo @@\""
7+
echo
78
echo Generates the coverage information for an AFL run.
89
echo Must be run from the top directory of the coverage build.
10+
echo The -v option enables verbose output
11+
echo
912
echo Example: $0 ../target/out \"tools/target @@\"
1013
exit 1
1114
}
@@ -17,7 +20,8 @@ HOMEPATH=`dirname $0`
1720
DST=`realpath "$1"`
1821
export PATH=$HOMEPATH:$PATH
1922

20-
afl-cov -v -d "$DST" --cover-corpus --coverage-cmd "$2" --code-dir . --overwrite
23+
test "$1" = "-v" && { OPT="-v" ; shift ; }
24+
afl-cov $OPT -d "$DST" --cover-corpus --coverage-cmd "$2" --code-dir . --overwrite
2125

2226
test -e "$1"/fuzzer_stats && {
2327
echo "runtime :" $(expr `grep last_update "$DST"/fuzzer_stats|awk '{print$3}'` - `grep start_time "$DST"/fuzzer_stats|awk '{print$3}'`) seconds

0 commit comments

Comments
 (0)