1# Check whether boolean options are consistently normalized to ON/OFF.
2RUN: llvm-config --assertion-mode 2>&1 | FileCheck --check-prefix=CHECK-ONOFF %s
3RUN: llvm-config --has-global-isel 2>&1 | FileCheck --check-prefix=CHECK-ONOFF %s
4CHECK-ONOFF: {{ON|OFF}}
5CHECK-ONOFF-NOT: error:
6CHECK-ONOFF-NOT: warning
7
8# ...or to YES/NO.
9RUN: llvm-config --has-rtti 2>&1 | FileCheck --check-prefix=CHECK-YESNO %s
10CHECK-YESNO: {{YES|NO}}
11CHECK-YESNO-NOT: error:
12CHECK-YESNO-NOT: warning
13
14# Also check some other multi-choice options.
15RUN: llvm-config --build-mode 2>&1 | FileCheck --check-prefix=CHECK-BUILD-MODE %s
16CHECK-BUILD-MODE: {{[Dd][Ee][Bb][Uu][Gg]|[Rr][Ee][Ll][Ee][Aa][Ss][Ee]|[Rr][Ee][Ll][Ww][Ii][Tt][Hh][Dd][Ee][Bb][Ii][Nn][Ff][Oo]|[Mm][Ii][Nn][Ss][Ii][Zz][Ee][Rr][Ee][Ll]}}
17CHECK-BUILD-MODE-NOT: error:
18CHECK-BUILD-MODE-NOT: warning
19
20RUN: llvm-config --build-system 2>&1 | FileCheck --check-prefix=CHECK-BUILD-SYSTEM %s
21CHECK-BUILD-SYSTEM: {{cmake|gn}}
22CHECK-BUILD-SYSTEM-NOT: error:
23CHECK-BUILD-SYSTEM-NOT: warning
24
25RUN: llvm-config --shared-mode 2>&1 | FileCheck --check-prefix=CHECK-SHARED-MODE %s
26CHECK-SHARED-MODE: {{static|shared}}
27CHECK-SHARED-MODE-NOT: error:
28CHECK-SHARED-MODE-NOT: warning
29