Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions sycl/test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
config.test_format = lit.formats.ShTest()

# suffixes: A list of file extensions to treat as test files.
dump_only_tests = bool(lit_config.params.get("SYCL_LIB_DUMPS_ONLY", False))
if dump_only_tests:
config.dump_only_tests = bool(lit_config.params.get("SYCL_LIB_DUMPS_ONLY", False))
if config.dump_only_tests:
config.suffixes = [".dump"] # Only run dump testing
else:
config.suffixes = [
Expand Down Expand Up @@ -186,7 +186,7 @@
)

# Dump-only tests do not have clang available
if not dump_only_tests:
if not config.dump_only_tests:
llvm_config.use_clang(additional_flags=additional_flags)

# Set timeout for test = 10 mins
Expand Down
30 changes: 15 additions & 15 deletions sycl/test/self-contained-headers/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import os
from format import SYCLHeadersTest
if not config.dump_only_tests:
import os
from format import SYCLHeadersTest
config.test_format = SYCLHeadersTest()

config.test_format = SYCLHeadersTest()

# List of files that are not expected to compile cleanly when used
# standalone. `os.path.join` is required here so the filtering works
# cross-platform
config.sycl_headers_xfail = [
os.path.join(
"sycl", "ext", "oneapi", "experimental", "backend", "cuda.hpp"
),
os.path.join(
"sycl", "ext", "intel", "esimd", "detail", "types_elementary.hpp"
),
]
# List of files that are not expected to compile cleanly when used
# standalone. `os.path.join` is required here so the filtering works
# cross-platform
config.sycl_headers_xfail = [
os.path.join(
"sycl", "ext", "oneapi", "experimental", "backend", "cuda.hpp"
),
os.path.join(
"sycl", "ext", "intel", "esimd", "detail", "types_elementary.hpp"
),
]