[Openmp-commits] [PATCH] Validation using OpenMP validation suite - adding support for cmake Part 2 of 2
sunita chandrasekaran
sunisg123 at gmail.com
Tue Mar 31 15:11:39 PDT 2015
Added few lines to /llvm/openmp/runtime/Makefile
REPOSITORY
rL LLVM
http://reviews.llvm.org/D8752
Files:
Makefile
Index: Makefile
===================================================================
--- Makefile
+++ Makefile
@@ -47,3 +47,21 @@
@echo mode=$(mode)
@echo jobs=$(jobs)
+include $(omp_root)$(SLASH)..$(SLASH)testsuite/Makefile
+
+libiomp5_path=$(shell $(omp_root)/tools/check-openmp.pl)
+test_path=$(shell $(omp_root)/tools/check-openmp-test.pl)
+
+#check-openmp: info mkdir
+test: info mkdir
+ @$(Verb) if which llvm-lit &> /dev/null; then \
+ if [ -d "$(omp_root)$(SLASH)..$(SLASH)testsuite$(SLASH)LLVM-IR" ] ; then \
+ TESTSUITE_TEMP=$(realpath $(omp_root))$(SLASH)tmp \
+ LIBRARY_PATH=$(libiomp5_path):$(LIBRARY_PATH) \
+ LD_LIBRARY_PATH=$(libiomp5_path):$(LD_LIBRARY_PATH) \
+ DYLD_LIBRARY_PATH=$(libiomp5_path):$(DYLD_LIBRARY_PATH) \
+ 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
+
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8752.23013.patch
Type: text/x-patch
Size: 1070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20150331/39200270/attachment.bin>
More information about the Openmp-commits
mailing list