File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 3
3
# easy wrapper script for afl-cov
4
4
#
5
5
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
7
8
echo Generates the coverage information for an AFL run.
8
9
echo Must be run from the top directory of the coverage build.
10
+ echo The -v option enables verbose output
11
+ echo
9
12
echo Example: $0 ../target/out \" tools/target @@\"
10
13
exit 1
11
14
}
@@ -17,7 +20,8 @@ HOMEPATH=`dirname $0`
17
20
DST=` realpath " $1 " `
18
21
export PATH=$HOMEPATH :$PATH
19
22
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
21
25
22
26
test -e " $1 " /fuzzer_stats && {
23
27
echo " runtime :" $( expr ` grep last_update " $DST " /fuzzer_stats| awk ' {print$3}' ` - ` grep start_time " $DST " /fuzzer_stats| awk ' {print$3}' ` ) seconds
You can’t perform that action at this time.
0 commit comments