Skip to content

Commit 3bafa35

Browse files
committed
skip unsupported tests on opt_use_esimd_emu
1 parent c6667b0 commit 3bafa35

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm_test_suite_sycl.pl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,10 @@ sub get_info
652652
$short_test_name = $test_file;
653653
$short_test_name =~ s/^$subdir\///;
654654

655+
if ($current_optset =~ m/opt_use_esimd_emu/) {
656+
$short_test_name =~ s/^ESIMD\///;
657+
}
658+
655659
my $short_name = basename($test_file);
656660
my $path = dirname($test_file);
657661
my $r = { dir => $path, short_name => $short_name, fullpath => $test_file};
@@ -663,6 +667,9 @@ sub generate_run_result
663667
{
664668
my $output = shift;
665669
my $result = "";
670+
671+
return $SKIP if ($current_optset =~ m/opt_use_esimd_emu/ and $current_test !~ m/^esimd_/);
672+
666673
for my $line (split /^/, $output){
667674
if ($line =~ m/^(.*): SYCL :: \Q$short_test_name\E \(.*\)/) {
668675
$result = $1;

0 commit comments

Comments
 (0)