Debian Codegraph @

clang/test/Driver/config-zos1.c

raw
1 // UNSUPPORTED: system-windows
2 // REQUIRES: systemz-registered-target
3
4 // RUN: export CLANG_CONFIG_PATH=%S/Inputs/config-zos
5 // RUN: env -u CLANG_NO_DEFAULT_CONFIG %clang --target=s390x-ibm-zos -c -### %s 2>&1 | FileCheck %s
6 // CHECK: Configuration file: {{.*}}/Inputs/config-zos/clang.cfg
7 // CHECK: "-D" "ABC=123"
8
9 // RUN: export CLANG_CONFIG_PATH=%S/Inputs/config-zos/def.cfg
10 // RUN: env -u CLANG_NO_DEFAULT_CONFIG %clang --target=s390x-ibm-zos -c -### %s 2>&1 | FileCheck %s -check-prefix=CHECK-DEF
11 // CHECK-DEF: Configuration file: {{.*}}/Inputs/config-zos/def.cfg
12 // CHECK-DEF: "-D" "DEF=456"
13
14 // RUN: export CLANG_CONFIG_PATH=%S/Inputs/config-zos/Garbage
15 // RUN: env -u CLANG_NO_DEFAULT_CONFIG not %clang --target=s390x-ibm-zos -c -### %s 2>&1 | FileCheck %s -check-prefix=CHECK-ERR
16 // CHECK-ERR: error: configuration file '{{.*}}/Inputs/config-zos/Garbage' cannot be found
17
18 // The directory exists but no clang.cfg in it
19 // RUN: export CLANG_CONFIG_PATH=%S/Inputs/config-zos/tst
20 // RUN: env -u CLANG_NO_DEFAULT_CONFIG not %clang --target=s390x-ibm-zos -c -### %s 2>&1 | FileCheck %s -check-prefix=CHECK-ERRDIR
21 // CHECK-ERRDIR: error: configuration file '{{.*}}/Inputs/config-zos/tst/clang.cfg' cannot be found