|
1 | 1 | // Check CUID generated by hash.
|
2 | 2 | // The same CUID is generated for the same file with the same options.
|
3 | 3 |
|
| 4 | +// This test requires relative paths for input files. Since the test may be |
| 5 | +// done out of source tree, create the local directory structure and copy the |
| 6 | +// input file from the source tree into that directory. |
| 7 | +// RUN: mkdir -p %t/Inputs/hip_multiple_inputs |
| 8 | +// RUN: cp %S/Inputs/hip_multiple_inputs/a.cu %t/Inputs/hip_multiple_inputs/a.cu |
| 9 | +// RUN: cd %t |
| 10 | + |
4 | 11 | // RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver \
|
5 | 12 | // RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \
|
6 |
| -// RUN: %S/Inputs/hip_multiple_inputs/a.cu >%t.out 2>&1 |
| 13 | +// RUN: Inputs/hip_multiple_inputs/a.cu >%t.out 2>&1 |
7 | 14 |
|
8 | 15 | // RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver \
|
9 | 16 | // RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \
|
10 |
| -// RUN: %S/Inputs/hip_multiple_inputs/a.cu >>%t.out 2>&1 |
| 17 | +// RUN: Inputs/hip_multiple_inputs/a.cu >>%t.out 2>&1 |
11 | 18 |
|
12 | 19 | // RUN: FileCheck %s -check-prefixes=SAME -input-file %t.out
|
13 | 20 |
|
|
16 | 23 |
|
17 | 24 | // RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu -DX=1 --no-offload-new-driver \
|
18 | 25 | // RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \
|
19 |
| -// RUN: %S/Inputs/hip_multiple_inputs/a.cu >%t.out 2>&1 |
| 26 | +// RUN: Inputs/hip_multiple_inputs/a.cu >%t.out 2>&1 |
20 | 27 |
|
21 | 28 | // RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu -DX=2 --no-offload-new-driver \
|
22 | 29 | // RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \
|
23 |
| -// RUN: %S/Inputs/../Inputs/hip_multiple_inputs/a.cu >>%t.out 2>&1 |
| 30 | +// RUN: Inputs/../Inputs/hip_multiple_inputs/a.cu >>%t.out 2>&1 |
24 | 31 |
|
25 | 32 | // RUN: FileCheck %s -check-prefixes=DIFF -input-file %t.out
|
26 | 33 |
|
|
0 commit comments