|
38 | 38 | config.unsupported_features = []
|
39 | 39 |
|
40 | 40 | # test-mode: Set if tests should run normally or only build/run
|
41 |
| -match lit_config.params.get("test-mode", "full"): |
42 |
| - case "run-only": |
43 |
| - config.test_mode = "run-only" |
44 |
| - config.available_features.add("run-mode") |
45 |
| - case "build-only": |
46 |
| - config.test_mode = "build-only" |
47 |
| - config.sycl_devices = [] |
48 |
| - case "full": |
49 |
| - config.test_mode = "full" |
50 |
| - config.available_features.add("run-mode") |
51 |
| - config.available_features.add("build-and-run-mode") |
52 |
| - case _: |
53 |
| - lit_config.error("Invalid argument for test-mode") |
| 41 | +config.test_mode = lit_config.params.get("test-mode", "full") |
| 42 | +if config.test_mode == "full": |
| 43 | + config.available_features.add("run-mode") |
| 44 | + config.available_features.add("build-and-run-mode") |
| 45 | +elif config.test_mode == "run-only": |
| 46 | + lit_config.note("run-only test mode enabled, only executing tests") |
| 47 | + config.available_features.add("run-mode") |
| 48 | +elif config.test_mode == "build-only": |
| 49 | + lit_config.note("build-only test mode enabled, only compiling tests") |
| 50 | + config.sycl_devices = [] |
| 51 | +else: |
| 52 | + lit_config.error("Invalid argument for test-mode") |
54 | 53 |
|
55 | 54 | # Cleanup environment variables which may affect tests
|
56 | 55 | possibly_dangerous_env_vars = [
|
|
0 commit comments