Skip to content

Commit 8869654

Browse files
authored
TAEF Tests only work on Windows (#4799)
Disable the TAEF lit suite on non-Windows platforms.
1 parent 97bafd2 commit 8869654

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

tools/clang/test/CMakeLists.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,13 @@ add_lit_target("check-clang-unit" "Running lit suite clang-unit"
9999
# HLSL Change End - Add a separate target for clang unit tests
100100

101101
# HLSL Change Begin - Add taef tests
102-
add_lit_target("check-hlsl" "Running lit suite hlsl"
103-
${CMAKE_CURRENT_SOURCE_DIR}/clang-hlsl
104-
PARAMS ${CLANG_TEST_PARAMS}
105-
clang_hlsl_site_config=${CMAKE_CURRENT_BINARY_DIR}/clang-hlsl/lit.site.cfg
106-
DEPENDS clang-hlsl-tests
107-
ARGS ${CLANG_TEST_EXTRA_ARGS}
108-
)
102+
if (WIN32)
103+
add_lit_target("check-hlsl" "Running lit suite hlsl"
104+
${CMAKE_CURRENT_SOURCE_DIR}/clang-hlsl
105+
PARAMS ${CLANG_TEST_PARAMS}
106+
clang_hlsl_site_config=${CMAKE_CURRENT_BINARY_DIR}/clang-hlsl/lit.site.cfg
107+
DEPENDS clang-hlsl-tests
108+
ARGS ${CLANG_TEST_EXTRA_ARGS}
109+
)
110+
endif()
109111
# HLSL Change End

tools/clang/test/clang-hlsl/lit.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ test_dir = os.path.join(config.llvm_obj_root, config.build_mode, 'test')
3535
#projects\dxilconv\test
3636
config.test_format = lit.formats.TaefTest(te, test_dll, hlsl_data_dir, test_dir)
3737

38+
# TAEF only runs on Windows
39+
if platform.system() != 'Windows':
40+
config.unsupported = True

0 commit comments

Comments
 (0)