@@ -70,11 +70,12 @@ def main():
70
70
do_cmd ("%s clone %s %s" % (cmds ['git' ],
71
71
fwknop_codecov_dir , fwknop_afl_dir ), None , cargs )
72
72
73
- ### build both fwknop repositories under the specified commit
74
- build_fwknop (fwknop_codecov_dir , fwknop_commit ,
75
- fwknop_codecov_compile , cmds , cargs )
76
- build_fwknop (fwknop_afl_dir , fwknop_commit ,
77
- fwknop_afl_compile , cmds , cargs )
73
+ if not cargs .skip_compile :
74
+ ### build both fwknop repositories under the specified commit
75
+ build_fwknop (fwknop_codecov_dir , fwknop_commit ,
76
+ fwknop_codecov_compile , cmds , cargs )
77
+ build_fwknop (fwknop_afl_dir , fwknop_commit ,
78
+ fwknop_afl_compile , cmds , cargs )
78
79
79
80
### run the actual tests
80
81
print "[+] Running afl-cov tests (ignore 'Terminated' messages)..."
@@ -137,6 +138,9 @@ def parse_cmdline():
137
138
p .add_argument ("--ignore-core-pattern" , action = 'store_true' ,
138
139
help = "Ignore the /proc/sys/kernel/core_pattern setting in --live mode" ,
139
140
default = False )
141
+ p .add_argument ("--skip-compile" , action = 'store_true' ,
142
+ help = "Skip fwknop compilation (assumes it was already done from a previous run)" ,
143
+ default = False )
140
144
p .add_argument ("-v" , "--verbose" , action = 'store_true' ,
141
145
help = "Verbose mode" , default = False )
142
146
0 commit comments