[Openmp-commits] [openmp] [OpenMP] Add libomp unit test infrastructure (PR #168063)
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Tue Nov 18 10:37:43 PST 2025
================
@@ -0,0 +1,42 @@
+add_custom_target(OpenMPUnitTests)
+set_target_properties(OpenMPUnitTests PROPERTIES FOLDER "OpenMP/Tests")
+
+if(NOT TARGET llvm_gtest)
+ message(WARNING "OpenMP unittests disabled due to GTest being unavailable; "
+ "Try LLVM_INSTALL_GTEST=ON for the LLVM build")
+ return()
+endif()
+if(NOT TARGET omp_testing)
+ message(WARNING "OpenMP unittests disabled due to omp_testing library being unavailable")
+ return()
+endif()
+
+function(add_openmp_unittest test_dirname)
----------------
shiltian wrote:
why is it called `test_dirname`? It doesn't seem like a directory.
https://github.com/llvm/llvm-project/pull/168063
More information about the Openmp-commits
mailing list