Adds a `check-offload-unit` target for running the liboffload unit test suite. This unit test binary runs the tests for every available device. This can optionally filtered to devices from a single platform, but the check target runs on everything. The target is not part of `check-offload` and does not get propagated to the top level build. I'm not sure if either of these things are desirable, but I'm happy to look into it if we want. Also remove the `offload/unittests/Plugins` test as it's dead code and doesn't build.
9 lines
258 B
CMake
9 lines
258 B
CMake
add_custom_target(OffloadUnitTests)
|
|
set_target_properties(OffloadUnitTests PROPERTIES FOLDER "Tests/UnitTests")
|
|
|
|
function(add_offload_unittest test_dirname)
|
|
add_unittest(OffloadUnitTests ${test_dirname} ${ARGN})
|
|
endfunction()
|
|
|
|
add_subdirectory(OffloadAPI)
|