Skip to content

Commit

Permalink
zig: add tests (needs to be run after 'make package' unless we manage…
Browse files Browse the repository at this point in the history
… to locate

the binary)
  • Loading branch information
nikkicoon committed Feb 23, 2023
1 parent 9e2f721 commit 7eb54b7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lang/zig/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.24 2023/01/30 21:01:42 nikita Exp $
# $NetBSD: Makefile,v 1.25 2023/02/23 19:26:36 nikita Exp $

DISTNAME= zig-0.10.1
PKGREVISION= 1
Expand Down Expand Up @@ -31,6 +31,16 @@ MKPIE_SUPPORTED= no
# RELRO checks fail for this package at the moment
RELRO_SUPPORTED= no

# after install, because the zig binary ends up in paths like
# ./zig-0.10.1/zig-cache/o/e6445b80597d6bc8fe865e7254800ac9/zig
# unless we want to run find for the executable here?
do-test:
mkdir ${WRKDIR}/cache
cd ${WRKSRC} && \
${DESTDIR}${PREFIX}/bin/zig build test-behavior \
--cache-dir ${WRKDIR}/cache --global-cache-dir ${WRKDIR}/cache \
--zig-lib-dir ${WRKSRC}/lib

.include "../../devel/lld/buildlink3.mk"
.include "../../lang/clang/buildlink3.mk"
.include "../../lang/llvm/buildlink3.mk"
Expand Down

0 comments on commit 7eb54b7

Please sign in to comment.