Skip to content

Commit 95ee1e3

Browse files
authored
[SYCL][E2E] Use run expansions in kernel compiler tests (#17174)
1 parent 346b64e commit 95ee1e3

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

sycl/test-e2e/KernelCompiler/kernel_compiler_opencl.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717

1818
// -- Test again, with caching.
1919
// DEFINE: %{cache_vars} = env SYCL_CACHE_PERSISTENT=1 SYCL_CACHE_TRACE=5 SYCL_CACHE_DIR=%t/cache_dir
20-
// RUN: rm -rf %t/cache_dir
21-
// RUN: %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-WRITTEN-TO-CACHE
22-
// RUN: %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-READ-FROM-CACHE
20+
// RUN: %{run-aux} rm -rf %t/cache_dir
21+
// RUN: %{cache_vars} %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-WRITTEN-TO-CACHE
22+
// RUN: %{cache_vars} %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-READ-FROM-CACHE
2323

2424
// -- Add leak check.
25-
// RUN: rm -rf %t/cache_dir
26-
// RUN: %{l0_leak_check} %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-WRITTEN-TO-CACHE
27-
// RUN: %{l0_leak_check} %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-READ-FROM-CACHE
25+
// RUN: %{run-aux} rm -rf %t/cache_dir
26+
// RUN: %{l0_leak_check} %{cache_vars} %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-WRITTEN-TO-CACHE
27+
// RUN: %{l0_leak_check} %{cache_vars} %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-READ-FROM-CACHE
2828

2929
// CHECK-WRITTEN-TO-CACHE: [Persistent Cache]: enabled
3030
// CHECK-WRITTEN-TO-CACHE-NOT: [kernel_compiler Persistent Cache]: using cached binary

sycl/test-e2e/KernelCompiler/sycl_and_cache.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
// -- Run with caching.
1919

2020
// DEFINE: %{cache_vars} = %{l0_leak_check} env SYCL_CACHE_PERSISTENT=1 SYCL_CACHE_TRACE=5 SYCL_CACHE_DIR=%t/cache_dir
21-
// RUN: rm -rf %t/cache_dir
22-
// RUN: %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-WRITTEN-TO-CACHE
23-
// RUN: %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-READ-FROM-CACHE
21+
// RUN: %{run-aux} rm -rf %t/cache_dir
22+
// RUN: %{cache_vars} %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-WRITTEN-TO-CACHE
23+
// RUN: %{cache_vars} %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-READ-FROM-CACHE
2424

2525
// CHECK-WRITTEN-TO-CACHE: [Persistent Cache]: enabled
2626
// CHECK-WRITTEN-TO-CACHE-NOT: [kernel_compiler Persistent Cache]: using cached binary

0 commit comments

Comments
 (0)