@@ -5,7 +5,9 @@ use test_float_parse as tfp;
5
5
6
6
static HELP : & str = r#"Usage:
7
7
8
- ./test-float-parse [--timeout x] [--exclude x] [INCLUDE ...]
8
+ ./test-float-parse [--timeout x] [--exclude x] [--max-failures x] [INCLUDE ...]
9
+ ./test-float-parse [--fuzz-count x] [INCLUDE ...]
10
+ ./test-float-parse [--skip-huge] [INCLUDE ...]
9
11
./test-float-parse --list
10
12
11
13
Args:
22
24
--fuzz-count N Run the fuzzer with N iterations. Only has an effect
23
25
if fuzz tests are enabled. Pass `--fuzz-count none`
24
26
to remove this limit.
27
+ --skip-huge Skip tests that run for a long time.
25
28
"# ;
26
29
27
30
enum ArgMode {
@@ -67,6 +70,7 @@ fn parse_args(args: Vec<String>) -> (tfp::Config, Vec<String>, Vec<String>) {
67
70
timeout : Duration :: from_secs ( 60 * 60 * 3 ) ,
68
71
max_failures : Some ( 20 ) ,
69
72
fuzz_count : Some ( tfp:: DEFAULT_FUZZ_COUNT ) ,
73
+ skip_huge : false ,
70
74
} ;
71
75
72
76
let mut mode = ArgMode :: Any ;
@@ -79,6 +83,10 @@ fn parse_args(args: Vec<String>) -> (tfp::Config, Vec<String>, Vec<String>) {
79
83
ArgMode :: Any if arg == "--exclude" => ArgMode :: Exclude ,
80
84
ArgMode :: Any if arg == "--max-failures" => ArgMode :: MaxFailures ,
81
85
ArgMode :: Any if arg == "--fuzz-count" => ArgMode :: FuzzCount ,
86
+ ArgMode :: Any if arg == "--skip-huge" => {
87
+ cfg. skip_huge = true ;
88
+ ArgMode :: Any
89
+ }
82
90
ArgMode :: Any if arg. starts_with ( '-' ) => {
83
91
panic ! ( "Unknown argument {arg}. Usage:\n {HELP}" )
84
92
}
0 commit comments