commit e2a09ece438d8f0b9a52d0ae06de66d140256abc
parent 8365867b77143c5ec34c367422083daa5f5d5e8c
Author: Kyle Milz <kyle@getaddrinfo.net>
Date: Sat, 4 Jun 2016 14:38:44 -0600
pkg/openbsd: add testing to package creation
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/pkg/openbsd/devel/citrun/Makefile b/pkg/openbsd/devel/citrun/Makefile
@@ -27,7 +27,10 @@ BUILD_DEPENDS = devel/jam \
devel/llvm
do-build:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} jam -q -j2
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} jam -q -j4
+
+do-test:
+ cd ${WRKSRC} && prove
do-install:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${ALL_FAKE_FLAGS} jam install
diff --git a/pkg/openbsd/pkg.sh b/pkg/openbsd/pkg.sh
@@ -12,6 +12,7 @@ export NO_CHECKSUM=1
# Always re-fetch the latest sources
rm -f /usr/ports/distfiles/citrun-0.tar.gz
make -C devel/$portname clean=all
+make -C devel/$portname test
make -C devel/$portname package
doas pkg_delete citrun || true