cb424d7448
verify-patch-sanity.py validates every active recipe .patch has internally- consistent hunk line counts — catching the 'malformed patch at line N' failure at commit/CI/preflight time instead of hours into a cook. This cycle hit that class three times (qtwaylandscanner, sddm, xwayland), each only discovered when cookbook tried to apply the patch. Running it across the repo found 29 latent malformed patches (validated against GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22'). They were harmless only because they sit in vendored recipes (baked, not re- applied) — but would fail on any version-bump re-derivation. --fix recounts the hunk headers (body untouched) and repaired all 29. Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test (test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats (empty placeholders, bare-@@ git hunks).
25 lines
1.5 KiB
C
25 lines
1.5 KiB
C
// This file checks output given when processing C/ObjC files.
|
|
// When user selects invalid language standard
|
|
// print out supported values with short description.
|
|
|
|
// RUN: not %clang %s -std=foobar -c 2>&1 | FileCheck --match-full-lines %s
|
|
// RUN: not %clang -x objective-c %s -std=foobar -c 2>&1 | FileCheck --match-full-lines %s
|
|
|
|
// CHECK: error: invalid value 'foobar' in '-std=foobar'
|
|
// CHECK-NEXT: note: use 'c89', 'c90', or 'iso9899:1990' for 'ISO C 1990' standard
|
|
// CHECK-NEXT: note: use 'iso9899:199409' for 'ISO C 1990 with amendment 1' standard
|
|
// CHECK-NEXT: note: use 'gnu89' or 'gnu90' for 'ISO C 1990 with GNU extensions' standard
|
|
// CHECK-NEXT: note: use 'c99' or 'iso9899:1999' for 'ISO C 1999' standard
|
|
// CHECK-NEXT: note: use 'gnu99' for 'ISO C 1999 with GNU extensions' standard
|
|
// CHECK-NEXT: note: use 'c11' or 'iso9899:2011' for 'ISO C 2011' standard
|
|
// CHECK-NEXT: note: use 'gnu11' for 'ISO C 2011 with GNU extensions' standard
|
|
// CHECK-NEXT: note: use 'c17', 'iso9899:2017', 'c18', or 'iso9899:2018' for 'ISO C 2017' standard
|
|
// CHECK-NEXT: note: use 'gnu17' or 'gnu18' for 'ISO C 2017 with GNU extensions' standard
|
|
// CHECK-NEXT: note: use 'c23' or 'iso9899:2024' for 'ISO C 2023' standard
|
|
// CHECK-NEXT: note: use 'gnu23' for 'ISO C 2023 with GNU extensions' standard
|
|
// CHECK-NEXT: note: use 'c2y' for 'Working Draft for ISO C2y' standard
|
|
// CHECK-NEXT: note: use 'gnu2y' for 'Working Draft for ISO C2y with GNU extensions' standard
|
|
|
|
// Make sure that no other output is present.
|
|
// CHECK-NOT: {{^.+$}}
|