|
34 | 34 | parser.add_argument("-partition", help="Partition name") |
35 | 35 | parser.add_argument("-core_root", help="path to CORE_ROOT directory") |
36 | 36 | parser.add_argument("-run_duration", help="Run duration in minutes") |
| 37 | +parser.add_argument("-runtime_async", action="store_true", help="Test runtime async") |
37 | 38 | is_windows = platform.system() == "Windows" |
38 | 39 |
|
39 | 40 |
|
@@ -80,6 +81,11 @@ def setup_args(args): |
80 | 81 | lambda unused: True, |
81 | 82 | "Unable to set run_duration") |
82 | 83 |
|
| 84 | + coreclr_args.verify(args, |
| 85 | + "runtime_async", |
| 86 | + lambda unused: True, |
| 87 | + "Unable to set runtime_async") |
| 88 | + |
83 | 89 | return coreclr_args |
84 | 90 |
|
85 | 91 | def extract_jit_assertion_error(text): |
@@ -206,13 +212,18 @@ def main(main_args): |
206 | 212 | reduce_examples = ReduceExamples(fp, temp_location, path_to_tool, path_to_corerun, exit_evt) |
207 | 213 | reduce_examples.start() |
208 | 214 |
|
209 | | - run_command([ |
| 215 | + command = [ |
210 | 216 | path_to_tool, |
211 | 217 | "--seconds-to-run", str(run_duration), |
212 | 218 | "--output-events-to", summary_file_path, |
213 | 219 | "--host", path_to_corerun, |
214 | 220 | "--parallelism", "-1", |
215 | | - "--known-errors", "dotnet/runtime"], |
| 221 | + "--known-errors", "dotnet/runtime"] |
| 222 | + |
| 223 | + if coreclr_args.runtime_async: |
| 224 | + command.extend(["--gen-extensions", "default,async,runtimeasync"]) |
| 225 | + |
| 226 | + run_command(command, |
216 | 227 | _exit_on_fail=True, _output_file=upload_fuzzer_output_path) |
217 | 228 |
|
218 | 229 | exit_evt.set() |
|
0 commit comments