CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
67 lines
1.9 KiB
CMake
67 lines
1.9 KiB
CMake
add_custom_target(OrcRTUnitTests)
|
|
set_target_properties(OrcRTUnitTests PROPERTIES FOLDER "orc-rt/Tests")
|
|
|
|
if (NOT TARGET llvm_gtest)
|
|
message(WARNING "orc-rt unittests disabled due to GTest being unavailable; "
|
|
"Try LLVM_INSTALL_GTEST=ON for the LLVM build")
|
|
return ()
|
|
endif ()
|
|
|
|
function(add_orc_rt_unittest test_dirname)
|
|
add_unittest(OrcRTUnitTests ${test_dirname} ${ARGN})
|
|
endfunction()
|
|
|
|
add_orc_rt_unittest(CoreTests
|
|
AllocActionTest.cpp
|
|
BitmaskEnumTest.cpp
|
|
BootstrapInfoTest.cpp
|
|
CallableTraitsHelperTest.cpp
|
|
SimpleSymbolTableTest.cpp
|
|
EndianTest.cpp
|
|
ErrorCAPITest.cpp
|
|
ErrorTest.cpp
|
|
ErrorExceptionInteropTest.cpp
|
|
ExecutorAddressTest.cpp
|
|
ExecutorProcessInfoTest.cpp
|
|
IntervalMapTest.cpp
|
|
IntervalSetTest.cpp
|
|
LockedAccessTest.cpp
|
|
MathTest.cpp
|
|
MemoryAccessSPSCITest.cpp
|
|
MemoryFlagsTest.cpp
|
|
NativeDylibManagerTest.cpp
|
|
NativeDylibManagerSPSCITest.cpp
|
|
QueueingTaskDispatcherTest.cpp
|
|
RTTITest.cpp
|
|
ScopeExitTest.cpp
|
|
SessionTest.cpp
|
|
SimpleNativeMemoryMapTest.cpp
|
|
SimpleNativeMemoryMapSPSCITest.cpp
|
|
SimplePackedSerializationTest.cpp
|
|
SPSAllocActionTest.cpp
|
|
SPSMemoryFlagsTest.cpp
|
|
SPSWrapperFunctionTest.cpp
|
|
SPSWrapperFunctionBufferTest.cpp
|
|
TaskGroupTest.cpp
|
|
ThreadPoolTaskDispatcherTest.cpp
|
|
WrapperFunctionBufferTest.cpp
|
|
bind-test.cpp
|
|
bit-test.cpp
|
|
iterator_range-test.cpp
|
|
move_only_function-test.cpp
|
|
span-test.cpp
|
|
|
|
DISABLE_LLVM_LINK_LLVM_DYLIB
|
|
)
|
|
target_compile_options(CoreTests PRIVATE ${ORC_RT_COMPILE_FLAGS})
|
|
target_link_libraries(CoreTests PRIVATE orc-rt-executor)
|
|
|
|
# Build a shared library for NativeDylibManager tests.
|
|
add_library(NativeDylibManagerTestLib SHARED
|
|
Inputs/NativeDylibManagerTestLib.cpp)
|
|
set_target_properties(NativeDylibManagerTestLib PROPERTIES
|
|
PREFIX "")
|
|
target_compile_definitions(CoreTests PRIVATE
|
|
"NDM_TEST_LIB_PATH=\"$<TARGET_FILE:NativeDylibManagerTestLib>\"")
|
|
add_dependencies(CoreTests NativeDylibManagerTestLib)
|