summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/test/lit.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/runtime/test/lit.cfg')
-rw-r--r--openmp/runtime/test/lit.cfg16
1 files changed, 16 insertions, 0 deletions
diff --git a/openmp/runtime/test/lit.cfg b/openmp/runtime/test/lit.cfg
index 9e08584c790..cf63e660920 100644
--- a/openmp/runtime/test/lit.cfg
+++ b/openmp/runtime/test/lit.cfg
@@ -68,7 +68,23 @@ if config.operating_system == 'Darwin':
if res == 0 and out:
config.test_cflags += " -isysroot " + out
+# Disable OMPT tests if FileCheck was not found
+if config.has_ompt and config.test_filecheck == "":
+ lit_config.note("Not testing OMPT because FileCheck was not found")
+ config.has_ompt = False
+
+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"
+
# substitutions
+if config.has_ompt:
+ config.substitutions.append(("FileCheck", config.test_filecheck))
+ config.substitutions.append(("%sort-threads", "sort --numeric-sort --stable"))
+
config.substitutions.append(("%libomp-compile-and-run", \
"%libomp-compile && %libomp-run"))
config.substitutions.append(("%libomp-compile", \
OpenPOWER on IntegriCloud