diff options
| author | Marco Luzzaro <marcoluzzaro99@gmail.com> | 2026-11-22 20:14:15 +0100 |
|---|---|---|
| committer | Marco Luzzaro <marcoluzzaro99@gmail.com> | 2026-11-22 20:14:15 +0100 |
| commit | 649e90481f82ceee95ef39fbff3da10726a7e86c (patch) | |
| tree | ac06f7c2d35e4f524952fa6d7f68403722bde684 /tools/cf_diff.py | |
| parent | 162821017ea3c286c8bec860f3ff94f037912061 (diff) | |
cf_diff: reject an empty program batch
Diffstat (limited to 'tools/cf_diff.py')
| -rw-r--r-- | tools/cf_diff.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/cf_diff.py b/tools/cf_diff.py index 70d144753..a4fb05204 100644 --- a/tools/cf_diff.py +++ b/tools/cf_diff.py | |||
| @@ -599,6 +599,8 @@ def main(argv=None): | |||
| 599 | help="also run spirv-as and spirv-val on every translation (a failure counts as a mismatch)") | 599 | help="also run spirv-as and spirv-val on every translation (a failure counts as a mismatch)") |
| 600 | ap.add_argument("--self-test", action="store_true") | 600 | ap.add_argument("--self-test", action="store_true") |
| 601 | a = ap.parse_args(argv) | 601 | a = ap.parse_args(argv) |
| 602 | if a.programs < 1: | ||
| 603 | ap.error("--programs must be at least 1") | ||
| 602 | if a.spirv_val: | 604 | if a.spirv_val: |
| 603 | missing = [t for t in ("spirv-as", "spirv-val") if not shutil.which(t)] | 605 | missing = [t for t in ("spirv-as", "spirv-val") if not shutil.which(t)] |
| 604 | if missing: | 606 | if missing: |