File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,14 @@ test "$1" = "-v" && { OPT="-v" ; shift ; }
24
24
afl-cov $OPT -d " $DST " --cover-corpus --coverage-cmd " $2 " --code-dir . --overwrite
25
25
26
26
test -e " $1 " /fuzzer_stats && {
27
- echo " runtime :" $( expr ` grep last_update " $DST " /fuzzer_stats| awk ' {print$3}' ` - ` grep start_time " $DST " /fuzzer_stats| awk ' {print$3}' ` ) seconds
27
+ DIFF=$( expr ` grep last_update " $DST " /fuzzer_stats| awk ' {print$3}' ` - ` grep start_time " $DST " /fuzzer_stats| awk ' {print$3}' ` )
28
+ echo " runtime : $DIFF seconds"
29
+ TIME=` date -u -d " @$SECONDS " +" %T" `
30
+ echo " run_clock : $TIME "
28
31
egrep ' execs_done|paths_total|^unique_|stability' " $DST " /fuzzer_stats
29
32
LINES=
30
33
test -e " $1 " /cov/afl-cov.log && LINES=` grep -w lines " $1 " /cov/afl-cov.log| tail -n 1| sed ' s/.*(//' | sed ' s/ .*//' `
31
- echo " coverage : $LINES "
34
+ echo " coverage : $LINES lines "
32
35
} | tee " $1 " /stats.out
33
36
34
37
echo open " file://$DST /cov/web/index.html"
Original file line number Diff line number Diff line change @@ -12,13 +12,15 @@ while [ -n "$1" ]; do
12
12
{
13
13
egrep ' run_time|execs_done|execs_per_sec|paths_total|^unique_|stability' " $1 " /fuzzer_stats
14
14
SECONDS=` egrep run_time " $1 " /fuzzer_stats | awk ' {print$3}' `
15
- TIME=` date -u -d " @$SECONDS " +" %T" `
16
- echo " run_clock : $TIME "
15
+ test -n " $SECONDS " && {
16
+ TIME=` date -u -d " @$SECONDS " +" %T" `
17
+ echo " run_clock : $TIME "
18
+ }
17
19
} | sort | tee " $1 " /stats.out
18
20
LINES=
19
21
test -e " $1 " /cov/afl-cov.log && {
20
22
LINES=` grep -w lines " $1 " /cov/afl-cov.log| tail -n 1| sed ' s/.*(//' | sed ' s/ .*//' `
21
- echo " coverage : $LINES " | tee -a " $1 " /stats.out
23
+ echo " coverage : $LINES lines " | tee -a " $1 " /stats.out
22
24
}
23
25
shift
24
26
done
You can’t perform that action at this time.
0 commit comments