Skip to content
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion sycl/test/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import os
import re

SUFFIXES = {'.hpp'}


class SYCLHeadersTest(lit.formats.TestFormat):
def getTestsForPath(
Expand All @@ -21,7 +23,8 @@ def getTestsInDirectory(self, testSuite, path_in_suite, litConfig, localConfig):
for dirpath, _, filenames in os.walk(source_path):
relative_dirpath = dirpath[len(localConfig.sycl_include) + 1 :]
for filename in filenames:
if not filename.endswith(".hpp"):
suffix = os.path.splitext(filename)[1]
if suffix not in SUFFIXES or suffix not in litConfig.suffixes:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ldrumm, I've just realized that this patch had completely disable the testing suite :)

We don't have .hpp registered as a suffix and therefore we always skip all those tests. This is more of a FYI, I'm working on a revamp/expansion of the suite in scope of #16012, so I will fix it as part of that effort

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed this in #16117

continue
filepath = os.path.join(dirpath, filename)

Expand Down