File tree Expand file tree Collapse file tree 2 files changed +13
-16
lines changed Expand file tree Collapse file tree 2 files changed +13
-16
lines changed Original file line number Diff line number Diff line change 1
1
// REQUIRES: x86-registered-target
2
2
// REQUIRES: amdgpu-registered-target
3
3
4
- // Check no temporary files or directories are left after compilation.
5
-
6
- // RUN: rm -rf %t%{fs-sep}mytmp
7
- // RUN: mkdir -p %t%{fs-sep}mytmp
8
- // RUN: env TMPDIR="%t%{fs-sep}mytmp" TEMP="%t%{fs-sep}mytmp" TMP="%t%{fs-sep}mytmp" %clang --target=x86_64-linux-gnu \
9
- // RUN: -nogpulib -nogpuinc -nostdinc -nostdlib \
10
- // RUN: --rocm-path=%S/Inputs/rocm -c \
4
+ // Check no temporary files or directores are left after compilation.
5
+ // RUN: rm -rf %t/mytmp
6
+ // RUN: mkdir -p %t/mytmp
7
+ // RUN: env TMP="%t/mytmp" TMPDIR="%t/mytmp" %clang --target=x86_64-linux-gnu -nogpulib -nogpuinc \
8
+ // RUN: --rocm-path=%S/Inputs/rocm -nostdinc -nostdlib -c \
11
9
// RUN: --offload-arch=gfx1030 -emit-llvm -v %s 2>&1 | \
12
- // RUN: FileCheck -DTMPDIR =%t%{fs-sep}mytmp%{fs-sep} %s
13
- // RUN: ls %t%{fs-sep} mytmp >%t%{fs-sep} mytmp.txt 2>&1
14
- // RUN: touch %t%{fs-sep} empty.txt
15
- // RUN: diff %t%{fs-sep} mytmp.txt %t%{fs-sep} empty.txt
10
+ // RUN: FileCheck -check-prefixes=CHECK -DOUTPUT_PATH =%t%{fs-sep}mytmp%{fs-sep} %s
11
+ // RUN: ls %t/ mytmp >%t/ mytmp.txt 2>&1
12
+ // RUN: touch %t/ empty.txt
13
+ // RUN: diff %t/ mytmp.txt %t/ empty.txt
16
14
17
- // CHECK: -o {{.* }}[[TMPDIR ]]hip-temps-linux-gfx1030-{{.*}}.bc
15
+ // CHECK: -o {{"? }}[[OUTPUT_PATH ]]hip-temps-linux-gfx1030-{{.*}}.bc{{"?}}
18
16
19
17
int main () {}
Original file line number Diff line number Diff line change 1
1
// REQUIRES: x86-registered-target
2
2
// REQUIRES: amdgpu-registered-target
3
- // REQUIRES: system-windows
4
3
5
4
// Check no temporary files or directores are left after compilation.
6
5
// RUN: rm -rf %t/mytmp
7
6
// RUN: mkdir -p %t/mytmp
8
- // RUN: env TMP="%t/mytmp" %clang --target=x86_64-pc-windows-msvc -nogpulib -nogpuinc \
7
+ // RUN: env TMP="%t/mytmp" TMPDIR="%t/mytmp" %clang --target=x86_64-pc-windows-msvc -nogpulib -nogpuinc \
9
8
// RUN: --rocm-path=%S/Inputs/rocm -nostdinc -nostdlib -c \
10
9
// RUN: --offload-arch=gfx1030 -emit-llvm -v %s 2>&1 | \
11
- // RUN: FileCheck -check-prefixes=CHECK %s
10
+ // RUN: FileCheck -check-prefixes=CHECK -DOUTPUT_PATH=%t%{fs-sep}mytmp%{fs-sep} %s
12
11
// RUN: ls %t/mytmp >%t/mytmp.txt 2>&1
13
12
// RUN: touch %t/empty.txt
14
13
// RUN: diff %t/mytmp.txt %t/empty.txt
15
14
16
- // CHECK: -o "{{.*}}mytmp{{/|\\\\}} hip-temps-windows-gfx1030-{{.*}}.bc"
15
+ // CHECK: -o [[OUTPUT_PATH]] hip-temps-windows-gfx1030-{{.*}}.bc
17
16
18
17
int main () {}
You can’t perform that action at this time.
0 commit comments