@@ -5,12 +5,20 @@ set(CLANG_IN_BUILD "${LLVM_BINARY_DIR}/bin/clang")
55set (CLANGXX_IN_BUILD "${LLVM_BINARY_DIR} /bin/clang++" )
66set (CLANGCL_IN_BUILD "${LLVM_BINARY_DIR} /bin/clang-cl" )
77
8+ set (LLVM_DEPLOY_LIBRARY_DIRS "${CMAKE_INSTALL_PREFIX} /lib/" )
9+ set (LLVM_DEPLOY_BINARY_DIRS "${CMAKE_INSTALL_PREFIX} /bin/" )
10+ set (CLANG_IN_DEPLOY "${CMAKE_INSTALL_PREFIX} /bin/clang" )
11+ set (CLANGXX_IN_DEPLOY "${CMAKE_INSTALL_PREFIX} /bin/clang++" )
12+ set (CLANGCL_IN_DEPLOY "${CMAKE_INSTALL_PREFIX} /bin/clang-cl" )
13+
814get_target_property (SYCL_BINARY_DIR sycl-toolchain BINARY_DIR)
915get_target_property (SYCL_SOURCE_DIR sycl-toolchain SOURCE_DIR)
1016
1117set (SYCL_INCLUDE "${dst_dir} " )
18+ set (SYCL_DEPLOY_INCLUDE "${dst_deploy_dir} " )
1219
1320set (RT_TEST_ARGS ${RT_TEST_ARGS} "-v" )
21+ set (DEPLOY_RT_TEST_ARGS ${DEPLOY_RT_TEST_ARGS} "-v --config-prefix=deploy-lit" )
1422
1523configure_lit_site_cfg(
1624 ${CMAKE_CURRENT_SOURCE_DIR} /lit.site.cfg.py.in
@@ -26,6 +34,13 @@ configure_lit_site_cfg(
2634 ${CMAKE_CURRENT_SOURCE_DIR} /Unit/lit.cfg.py
2735 )
2836
37+ configure_lit_site_cfg(
38+ ${CMAKE_CURRENT_SOURCE_DIR} /deploy-lit.site.cfg.py.in
39+ ${CMAKE_CURRENT_BINARY_DIR} /deploy-lit.site.cfg.py
40+ MAIN_CONFIG
41+ ${CMAKE_CURRENT_SOURCE_DIR} /lit.cfg.py
42+ )
43+
2944list (APPEND SYCL_TEST_DEPS
3045 sycl-toolchain
3146 FileCheck
@@ -34,11 +49,24 @@ list(APPEND SYCL_TEST_DEPS
3449 llvm-config
3550 )
3651
52+ list (APPEND SYCL_DEPLOY_TEST_DEPS
53+ deploy-sycl-toolchain
54+ FileCheck
55+ not
56+ get_device_count_by_type
57+ llvm-config
58+ )
59+
3760add_lit_testsuite(check-sycl "Running the SYCL regression tests"
3861 ${CMAKE_CURRENT_BINARY_DIR}
3962 ARGS ${RT_TEST_ARGS}
4063 DEPENDS ${SYCL_TEST_DEPS}
4164 )
65+ add_lit_testsuite(check-sycl-deploy "Running the SYCL regression tests"
66+ ${CMAKE_CURRENT_BINARY_DIR}
67+ ARGS ${DEPLOY_RT_TEST_ARGS}
68+ DEPENDS ${SYCL_DEPLOY_TEST_DEPS}
69+ )
4270set_target_properties (check-sycl PROPERTIES FOLDER "SYCL tests" )
4371
4472add_lit_testsuites(SYCL ${CMAKE_CURRENT_SOURCE_DIR}
0 commit comments