[Openmp-commits] [openmp] [OpenMP] Add unit tests for nextgen plugins (PR #74398)
Joseph Huber via Openmp-commits
openmp-commits at lists.llvm.org
Tue Dec 19 16:32:33 PST 2023
================
@@ -123,3 +123,9 @@ add_subdirectory(tools)
# Add tests.
add_subdirectory(test)
+
+# Add unit tests if GMock/GTest is present
+if (EXISTS ${LLVM_THIRD_PARTY_DIR}/unittest)
+ add_subdirectory(${LLVM_THIRD_PARTY_DIR}/unittest ${CMAKE_CURRENT_BINARY_DIR}/third-party/unittest)
+ add_subdirectory(unittests)
+endif()
----------------
jhuber6 wrote:
Pretty sure that's a name defined in the same way, we could use the same name if needed.
We also need these to run w/ `check-openmp` or similar. Long term I'd like language tests to be all all in a different directory so we can test things like CUDA, HIP, SYCL, OpenACC, C, C++, Fortran, etc.
https://github.com/llvm/llvm-project/pull/74398
More information about the Openmp-commits
mailing list