File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,22 @@ fn integration_cfg() {
54
54
}
55
55
}
56
56
57
+ #[ test]
58
+ fn integration_maze ( ) {
59
+ assert_cmd:: Command :: new ( cargo_afl_path ( ) )
60
+ . arg ( "afl" )
61
+ . arg ( "build" )
62
+ . arg ( "-r" )
63
+ . arg ( "--example" )
64
+ . arg ( "maze" )
65
+ . arg ( "--manifest-path" )
66
+ . arg ( "../afl/Cargo.toml" )
67
+ . assert ( )
68
+ . success ( ) ;
69
+
70
+ fuzz_example ( "maze" , true ) ;
71
+ }
72
+
57
73
fn fuzz_example ( name : & str , should_crash : bool ) {
58
74
let temp_dir = tempfile:: TempDir :: new ( ) . expect ( "Could not create temporary directory" ) ;
59
75
let temp_dir_path = temp_dir. path ( ) ;
@@ -64,7 +80,7 @@ fn fuzz_example(name: &str, should_crash: bool) {
64
80
. arg ( input_path ( ) )
65
81
. arg ( "-o" )
66
82
. arg ( temp_dir_path)
67
- . args ( [ "-V" , "5 " ] ) // 5 seconds
83
+ . args ( [ "-V" , "10 " ] ) // 5 seconds
68
84
. arg ( examples_path ( name) )
69
85
. env ( "AFL_BENCH_UNTIL_CRASH" , "1" )
70
86
. env ( "AFL_NO_CRASH_README" , "1" )
You can’t perform that action at this time.
0 commit comments