[OMPT] Make tests require OMPT_BLAME

ompt_event_barrier_{begin,end} are optional blame events.
In total it doesn't make any sense to test partially built OMPT support.

llvm-svn: 264031
GitOrigin-RevId: b1cad2954b2575f02f35130a4d2220d279cf478e
diff --git a/runtime/test/CMakeLists.txt b/runtime/test/CMakeLists.txt
index 3cbb3b7..8b7ecfa 100644
--- a/runtime/test/CMakeLists.txt
+++ b/runtime/test/CMakeLists.txt
@@ -18,6 +18,7 @@
 
 pythonize_bool(LIBOMP_USE_HWLOC)
 pythonize_bool(LIBOMP_OMPT_SUPPORT)
+pythonize_bool(LIBOMP_OMPT_BLAME)
 pythonize_bool(LIBOMP_OMPT_TRACE)
 
 set(LIBOMP_TEST_CFLAGS "" CACHE STRING
diff --git a/runtime/test/lit.cfg b/runtime/test/lit.cfg
index cf63e66..98a13b0 100644
--- a/runtime/test/lit.cfg
+++ b/runtime/test/lit.cfg
@@ -75,8 +75,6 @@
 
 if config.has_ompt:
     config.available_features.add("ompt")
-    if config.has_ompt_trace:
-        config.available_features.add("ompt-trace")
     # for callback.h
     config.test_cflags += " -I " + config.test_source_root + "/ompt"
 
diff --git a/runtime/test/lit.site.cfg.in b/runtime/test/lit.site.cfg.in
index af30884..1b547f5 100644
--- a/runtime/test/lit.site.cfg.in
+++ b/runtime/test/lit.site.cfg.in
@@ -10,8 +10,7 @@
 config.operating_system = "@CMAKE_SYSTEM_NAME@"
 config.hwloc_library_dir = "@LIBOMP_HWLOC_LIBRARY_DIR@"
 config.using_hwloc = @LIBOMP_USE_HWLOC@
-config.has_ompt = @LIBOMP_OMPT_SUPPORT@
-config.has_ompt_trace = @LIBOMP_OMPT_TRACE@
+config.has_ompt = @LIBOMP_OMPT_SUPPORT@ and @LIBOMP_OMPT_BLAME@ and @LIBOMP_OMPT_TRACE@
 
 # Let the main config do the real work.
 lit_config.load_config(config, "@LIBOMP_BASE_DIR@/test/lit.cfg")
diff --git a/runtime/test/ompt/parallel/nested.c b/runtime/test/ompt/parallel/nested.c
index 3e25a06..11ebbd1 100644
--- a/runtime/test/ompt/parallel/nested.c
+++ b/runtime/test/ompt/parallel/nested.c
@@ -1,6 +1,6 @@
 // RUN: %libomp-compile-and-run | FileCheck %s
 // RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
-// REQUIRES: ompt, ompt-trace
+// REQUIRES: ompt
 #include "callback.h"
 #include <omp.h>
 
diff --git a/runtime/test/ompt/parallel/nested_serialized.c b/runtime/test/ompt/parallel/nested_serialized.c
index 4caa9fb..e678b48 100644
--- a/runtime/test/ompt/parallel/nested_serialized.c
+++ b/runtime/test/ompt/parallel/nested_serialized.c
@@ -1,6 +1,6 @@
 // RUN: %libomp-compile-and-run | FileCheck %s
 // RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
-// REQUIRES: ompt, ompt-trace
+// REQUIRES: ompt
 #include "callback.h"
 #include <omp.h>
 
diff --git a/runtime/test/ompt/parallel/normal.c b/runtime/test/ompt/parallel/normal.c
index ca4af7e..887826f 100644
--- a/runtime/test/ompt/parallel/normal.c
+++ b/runtime/test/ompt/parallel/normal.c
@@ -1,6 +1,6 @@
 // RUN: %libomp-compile-and-run | FileCheck %s
 // RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
-// REQUIRES: ompt, ompt-trace
+// REQUIRES: ompt
 #include "callback.h"
 
 int main()
diff --git a/runtime/test/ompt/parallel/serialized.c b/runtime/test/ompt/parallel/serialized.c
index 6338e00..31d1b42 100644
--- a/runtime/test/ompt/parallel/serialized.c
+++ b/runtime/test/ompt/parallel/serialized.c
@@ -1,5 +1,5 @@
 // RUN: %libomp-compile-and-run | FileCheck %s
-// REQUIRES: ompt, ompt-trace
+// REQUIRES: ompt
 #include "callback.h"
 
 int main()