git: 4e9fa80dd1da - main - lang/opensycl: Add test target
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 03 Apr 2023 18:31:24 UTC
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>