File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,12 @@ while [ -n "$1" ]; do
9
9
test -d " $1 " || { echo Error: not a directory: $1 ; }
10
10
test -e " $1 " /fuzzer_stats || { echo Error: not an afl-fuzz -o out directory ; }
11
11
echo File: ` realpath " $1 " `
12
- egrep ' run_time|execs_done|execs_per_sec|paths_total|^unique_|stability' " $1 " /fuzzer_stats | sort | tee -a " $1 " /stats.out
12
+ {
13
+ egrep ' run_time|execs_done|execs_per_sec|paths_total|^unique_|stability' " $1 " /fuzzer_stats
14
+ SECONDS=` egrep run_time " $1 " /fuzzer_stats | awk ' {print$3}' `
15
+ TIME=` date -u -d " @$SECONDS " +" %T" `
16
+ echo " run_clock : $TIME "
17
+ } | sort | tee -a " $1 " /stats.out
13
18
LINES=
14
19
test -e " $1 " /cov/afl-cov.log && LINES=` grep -w lines " $1 " /cov/afl-cov.log| tail -n 1| sed ' s/.*(//' | sed ' s/ .*//' `
15
20
echo " coverage : $LINES " | tee -a " $1 " /stats.out
You can’t perform that action at this time.
0 commit comments