Skip to content

PI unittests fail when no OpenCL RT is available #739

Closed
@smaslov-intel

Description

@smaslov-intel

Great thanks for doing this! The PI tests will be build always, but when/how are they run?

@smaslov-intel This now works as in Clang and the other LLVM projects:

  • When SYCL testing is enabled with the CMake flag SYCL_INCLUDE_TESTS then the unittests are added as a dependency to the LIT tests (see CMake variable SYCL_TEST_DEPS).
  • This in itself ensures that the unittests are build when the other LIT tests are build, e.g., by running the build for the check-sycl target.
  • The LIT tests folder now has a Unit sub-folder which contains LIT config files that are gtest aware and are pointed to the unittests build directory to discover all included test executables to run.

Originally posted by @bjoernknafla in #585 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions