pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/zig



Module Name:    pkgsrc
Committed By:   nikita
Date:           Thu Feb 23 19:26:36 UTC 2023

Modified Files:
        pkgsrc/lang/zig: Makefile

Log Message:
zig: add tests (needs to be run after 'make package' unless we manage to locate
the binary)


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/lang/zig/Makefile

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

Modified files:

Index: pkgsrc/lang/zig/Makefile
diff -u pkgsrc/lang/zig/Makefile:1.24 pkgsrc/lang/zig/Makefile:1.25
--- pkgsrc/lang/zig/Makefile:1.24       Mon Jan 30 21:01:42 2023
+++ pkgsrc/lang/zig/Makefile    Thu Feb 23 19:26:36 2023
@@ -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
@@ -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"



Home | Main Index | Thread Index | Old Index