|  | 
| 54 | 54 | // Check errors. | 
| 55 | 55 | // | 
| 56 | 56 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i -unbundle 2>&1 | FileCheck %s --check-prefix CK-ERR1 | 
| 57 |  | -// CK-ERR1: error: only one input file supported in unbundling mode. | 
| 58 |  | -// CK-ERR1: error: number of output files and targets should match in unbundling mode. | 
|  | 57 | +// CK-ERR1: error: only one input file supported in unbundling mode | 
|  | 58 | +// CK-ERR1: error: number of output files and targets should match in unbundling mode | 
| 59 | 59 | 
 | 
| 60 | 60 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR2 | 
| 61 | 61 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1 -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR2 | 
| 62 |  | -// CK-ERR2: error: number of input files and targets should match in bundling mode. | 
|  | 62 | +// CK-ERR2: error: number of input files and targets should match in bundling mode | 
| 63 | 63 | 
 | 
| 64 | 64 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -outputs=%t.i,%t.tgt1,%t.tgt2 -inputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR3 | 
| 65 |  | -// CK-ERR3: error: only one output file supported in bundling mode. | 
| 66 |  | -// CK-ERR3: error: number of input files and targets should match in bundling mode. | 
|  | 65 | +// CK-ERR3: error: only one output file supported in bundling mode | 
|  | 66 | +// CK-ERR3: error: number of input files and targets should match in bundling mode | 
| 67 | 67 | 
 | 
| 68 | 68 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu -outputs=%t.i,%t.tgt1,%t.tgt2 -inputs=%t.bundle.i -unbundle 2>&1 | FileCheck %s --check-prefix CK-ERR4 | 
| 69 | 69 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -outputs=%t.i,%t.tgt1 -inputs=%t.bundle.i -unbundle 2>&1 | FileCheck %s --check-prefix CK-ERR4 | 
| 70 |  | -// CK-ERR4: error: number of output files and targets should match in unbundling mode. | 
|  | 70 | +// CK-ERR4: error: number of output files and targets should match in unbundling mode | 
| 71 | 71 | 
 | 
| 72 |  | -// RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2.notexist -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR5 | 
| 73 |  | -// RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -outputs=%t.i,%t.tgt1,%t.tgt2 -inputs=%t.bundle.i.notexist -unbundle 2>&1 | FileCheck %s --check-prefix CK-ERR5 | 
| 74 |  | -// CK-ERR5: error: Can't open file {{.+}}.notexist: {{N|n}}o such file or directory | 
|  | 72 | +// RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2.notexist -outputs=%t.bundle.i 2>&1 | FileCheck %s -DFILE=%t.tgt2.notexist --check-prefix CK-ERR5 | 
|  | 73 | +// RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -outputs=%t.i,%t.tgt1,%t.tgt2 -inputs=%t.bundle.i.notexist -unbundle 2>&1 | FileCheck %s -DFILE=%t.bundle.i.notexist --check-prefix CK-ERR5 | 
|  | 74 | +// CK-ERR5: error: '[[FILE]]': {{N|n}}o such file or directory | 
| 75 | 75 | 
 | 
| 76 |  | -// RUN: not clang-offload-bundler -type=invalid -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR6 | 
| 77 |  | -// CK-ERR6: error: invalid file type specified. | 
|  | 76 | +// RUN: not clang-offload-bundler -type=invalid -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i 2>&1 | FileCheck %s -DTYPE=invalid --check-prefix CK-ERR6 | 
|  | 77 | +// CK-ERR6: error: '[[TYPE]]': invalid file type specified | 
| 78 | 78 | 
 | 
| 79 | 79 | // RUN: not clang-offload-bundler 2>&1 | FileCheck %s --check-prefix CK-ERR7 | 
| 80 | 80 | // CK-ERR7-DAG: clang-offload-bundler: for the --type option: must be specified at least once! | 
| 81 | 81 | // CK-ERR7-DAG: clang-offload-bundler: for the --inputs option: must be specified at least once! | 
| 82 | 82 | // CK-ERR7-DAG: clang-offload-bundler: for the --targets option: must be specified at least once! | 
| 83 | 83 | 
 | 
| 84 | 84 | // RUN: not clang-offload-bundler -type=i -targets=hxst-powerpcxxle-ibm-linux-gnu,openxp-pxxerpc64le-ibm-linux-gnu,xpenmp-x86_xx-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR8 | 
| 85 |  | -// CK-ERR8: error: invalid target 'hxst-powerpcxxle-ibm-linux-gnu', unknown offloading kind 'hxst', unknown target triple 'powerpcxxle-ibm-linux-gnu'. | 
| 86 |  | -// CK-ERR8: error: invalid target 'openxp-pxxerpc64le-ibm-linux-gnu', unknown offloading kind 'openxp', unknown target triple 'pxxerpc64le-ibm-linux-gnu'. | 
| 87 |  | -// CK-ERR8: error: invalid target 'xpenmp-x86_xx-pc-linux-gnu', unknown offloading kind 'xpenmp', unknown target triple 'x86_xx-pc-linux-gnu'. | 
|  | 85 | +// CK-ERR8: error: invalid target 'hxst-powerpcxxle-ibm-linux-gnu', unknown offloading kind 'hxst', unknown target triple 'powerpcxxle-ibm-linux-gnu' | 
|  | 86 | +// CK-ERR8: error: invalid target 'openxp-pxxerpc64le-ibm-linux-gnu', unknown offloading kind 'openxp', unknown target triple 'pxxerpc64le-ibm-linux-gnu' | 
|  | 87 | +// CK-ERR8: error: invalid target 'xpenmp-x86_xx-pc-linux-gnu', unknown offloading kind 'xpenmp', unknown target triple 'x86_xx-pc-linux-gnu' | 
| 88 | 88 | 
 | 
| 89 | 89 | // RUN: not clang-offload-bundler -type=i -targets=openmp-powerpc64le-linux,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR9A | 
| 90 | 90 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,host-%itanium_abi_triple,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR9B | 
| 91 |  | -// CK-ERR9A: error: expecting exactly one host target but got 0. | 
| 92 |  | -// CK-ERR9B: error: expecting exactly one host target but got 2. | 
|  | 91 | +// CK-ERR9A: error: expecting exactly one host target but got 0 | 
|  | 92 | +// CK-ERR9B: error: expecting exactly one host target but got 2 | 
| 93 | 93 | 
 | 
| 94 | 94 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu -outputs=%t.i,%t.tgt1,%t.tgt2 -inputs=%t.bundle.i -unbundle -check-section 2>&1 | FileCheck %s --check-prefix CK-ERR10 | 
| 95 |  | -// CK-ERR10: error: -unbundle and -check-section are not compatible options. | 
|  | 95 | +// CK-ERR10: error: -unbundle and -check-section are not compatible options | 
| 96 | 96 | 
 | 
| 97 | 97 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu -inputs=%t.bundle.i,%t.i  -check-section 2>&1 | FileCheck %s --check-prefix CK-ERR11 | 
| 98 |  | -// CK-ERR11: error: only one input file supported in checking mode. | 
|  | 98 | +// CK-ERR11: error: only one input file supported in checking mode | 
| 99 | 99 | 
 | 
| 100 | 100 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu -inputs=%t.bundle.i  -check-section 2>&1 | FileCheck %s --check-prefix CK-ERR12 | 
| 101 |  | -// CK-ERR12: error: only one target supported in checking mode. | 
|  | 101 | +// CK-ERR12: error: only one target supported in checking mode | 
| 102 | 102 | 
 | 
| 103 | 103 | // RUN: not clang-offload-bundler -type=i -targets=openmp-powerpc64le-ibm-linux-gnu -inputs=%t.bundle.i -outputs=%t.r  -check-section 2>&1 | FileCheck %s --check-prefix CK-ERR13 | 
| 104 |  | -// CK-ERR13: error: no output file supported in checking mode. | 
|  | 104 | +// CK-ERR13: error: no output file supported in checking mode | 
| 105 | 105 | 
 | 
| 106 | 106 | // | 
| 107 | 107 | // Check text bundle. This is a readable format, so we check for the format we expect to find. | 
|  | 
0 commit comments