Skip to content

Commit c6667b0

Browse files
committed
lit.cfg.py set test_exec_root and test_source_root to SYCL/ESIMD, switch to -t mode
1 parent 9fde352 commit c6667b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm_test_suite_sycl.pl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,12 @@ sub init_test
272272
rmtree($path);
273273
}
274274
log_command("##Removed tests that are not in $current_suite\n");
275+
} else {
276+
# lit.cfg.py set test_exec_root and test_source_root to SYCL/ESIMD, "-t" mode is not supported.
277+
if ($current_optset =~ m/opt_use_esimd_emu/) {
278+
`sed -i "s/config\\.test_source_root += \\\"\\/ESIMD\\\"/config\\.test_source_root += \\\"\\\"/g" "$optset_work_dir/SYCL/lit.cfg.py"`;
279+
`sed -i "s/config\\.test_exec_root += \\\"\\/ESIMD\\\"/config\\.test_exec_root += \\\"\\\"/g" "$optset_work_dir/SYCL/lit.cfg.py"`;
280+
}
275281
}
276282

277283
if ($current_suite =~ /valgrind/) {

0 commit comments

Comments
 (0)