summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/Makefile
diff options
context:
space:
mode:
authorAndrey Churbanov <Andrey.Churbanov@intel.com>2015-04-29 14:36:38 +0000
committerAndrey Churbanov <Andrey.Churbanov@intel.com>2015-04-29 14:36:38 +0000
commita951e210872adb18dbca7eb8b0832bd3a6fde416 (patch)
tree5971fd073129498a25703fc149a08c4c00164529 /openmp/runtime/Makefile
parentdfddebcfb9fa9d756518015fd31cddcc9eb1459e (diff)
downloadbcm5719-llvm-a951e210872adb18dbca7eb8b0832bd3a6fde416.tar.gz
bcm5719-llvm-a951e210872adb18dbca7eb8b0832bd3a6fde416.zip
UH OpenMP testsuite update
llvm-svn: 236105
Diffstat (limited to 'openmp/runtime/Makefile')
-rw-r--r--openmp/runtime/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/openmp/runtime/Makefile b/openmp/runtime/Makefile
index 16d71ab6668..64de70fac59 100644
--- a/openmp/runtime/Makefile
+++ b/openmp/runtime/Makefile
@@ -47,3 +47,31 @@ endif
@echo mode=$(mode)
@echo jobs=$(jobs)
+
+
+libiomp5_path=$(shell $(omp_root)/tools/check-openmp.pl)
+test_path=$(shell $(omp_root)/tools/check-openmp-test.pl)
+
+# Please do not change this rule.
+# -------------------------------
+# Intentionally changing directory into "testsuite" in order to generate output results and errors
+# over there and keep this directory clean.
+test: omp
+ @$(Verb) if which llvm-lit &> /dev/null; then \
+ if [ -d "$(omp_root)$(SLASH)..$(SLASH)testsuite$(SLASH)LLVM-IR" ] ; then \
+ export TESTSUITE_TEMP=$(realpath $(omp_root))$(SLASH)tmp ; \
+ export LIBRARY_PATH=$(libiomp5_path):$(LIBRARY_PATH) ; \
+ export LD_LIBRARY_PATH=$(libiomp5_path):$(LD_LIBRARY_PATH) ; \
+ export DYLD_LIBRARY_PATH=$(libiomp5_path):$(DYLD_LIBRARY_PATH) ; \
+ cd $(omp_root)$(SLASH)..$(SLASH)testsuite ; \
+ make ctest ; \
+ python adding_xfails.py ; \
+ llvm-lit -j 1 $(realpath $(omp_root))$(SLASH)..$(SLASH)testsuite$(SLASH)LLVM-IR$(SLASH)$(test_path) -v ; \
+ else \
+ echo "No test directory" ; exit 1; \
+ fi; else echo "No llvm-lit in $(PATH)"; exit 1; fi
+
+test-clean:
+ make -C ..$(SLASH)testsuite cleanall
+
+
OpenPOWER on IntegriCloud