pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

llvm-all-in-one: Add test targets



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Thu Jul 6 23:44:08 2017 +0200
Changeset:	4d7e665af100d131c31f571b3a13ecbda8dca1b5

Modified Files:
	llvm-all-in-one/Makefile

Log Message:
llvm-all-in-one: Add test targets

This is work in progress.

Sponsored by <The NetBSD Foundation>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4d7e665af100d131c31f571b3a13ecbda8dca1b5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 llvm-all-in-one/Makefile | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diffs:
diff --git a/llvm-all-in-one/Makefile b/llvm-all-in-one/Makefile
index 7f14156b3d..810104bf97 100644
--- a/llvm-all-in-one/Makefile
+++ b/llvm-all-in-one/Makefile
@@ -105,11 +105,25 @@ CMAKE_ARGS+=	-DLLVM_BUILD_LLVM_DYLIB=ON
 CMAKE_ARGS+=	-DLLVM_INSTALL_UTILS=ON
 #CMAKE_ARGS+=	-DLLVM_LINK_LLVM_DYLIB=ON
 
+# Enable tests
+CMAKE_ARGS+=	-DLLVM_INCLUDE_TESTS=ON
+CMAKE_ARGS+=	-DCLANG_INCLUDE_TESTS=ON
+CMAKE_ARGS+=	-DCOMPILER_RT_INCLUDE_TESTS=ON
+CMAKE_ARGS+=	-DLIBCXX_INCLUDE_TESTS=ON
+
 CMAKE_ARGS.Darwin+=	-DCMAKE_LIBTOOL=/usr/bin/libtool
 
-TEST_TARGET=		check
 TEST_ENV+=		LD_LIBRARY_PATH=${WRKDIR}/build/lib
 
+# Not complete, not everything works
+.for _test_ in check-llvm check-clang check-lldb check-compiler-rt check-lld check-libcxx check-unwind check-polly check-libomptarget
+${_test_}:
+	${RUN}${_ULIMIT_CMD} cd ${TEST_DIRS} && ${TEST_MAKE_CMD} ${_test_}
+.endfor
+
+do-test: check-llvm check-clang check-lldb check-compiler-rt check-lld check-libcxx check-unwind check-polly check-libomptarget
+	${RUN} echo "Running tests"
+
 # It may be that the Solaris linker is more strict here and they can be removed on
 # all platforms.  Change this to a patch if verified.
 SUBST_CLASSES.SunOS+=	lto


Home | Main Index | Thread Index | Old Index