Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Apr 2023 18:31:24 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 4e9fa80dd1da - main - lang/opensycl: Add test target
Message-ID:  <202304031831.333IVOtH041631@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4e9fa80dd1da48084fee5a4ed04531e3732bb266

commit 4e9fa80dd1da48084fee5a4ed04531e3732bb266
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-04-03 15:22:01 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-04-03 18:31:17 +0000

    lang/opensycl: Add test target
---
 lang/opensycl/Makefile | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/lang/opensycl/Makefile b/lang/opensycl/Makefile
index f68a91ffe53a..124d3c35726a 100644
--- a/lang/opensycl/Makefile
+++ b/lang/opensycl/Makefile
@@ -21,4 +21,18 @@ GH_PROJECT=	OpenSYCL
 
 SHEBANG_FILES=	bin/syclcc-clang cmake/syclcc-launcher
 
+do-test: # many tests fail, see https://github.com/OpenSYCL/OpenSYCL/issues/996
+	@cd ${WRKSRC}/tests && \
+		mkdir -p build && \
+		cd build && \
+			${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} \
+				-DCMAKE_PREFIX_PATH=${STAGEDIR}${PREFIX} \
+				-DOpenSYCL_DIR="${STAGEDIR}${PREFIX}/lib/cmake/OpenSYCL" \
+				-DOPENSYCL_TARGETS="omp;hip:gfx801" .. && \
+			${SETENV} ${MAKE_ENV} ${MAKE_CMD} && \
+			for f in device_compilation_tests rt_tests sycl_tests; do \
+				${ECHO} "==> running tests from $$f"; \
+				./$${f}; \
+			done
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304031831.333IVOtH041631>