Bats is a TAP-compliant testing framework for Bash. It provides a simple way to verify that the UNIX programs you write behave as expected. OK sthen@
33 lines
594 B
Makefile
33 lines
594 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2021/03/03 19:59:11 bket Exp $
|
|
|
|
COMMENT = bash automated testing system
|
|
|
|
GH_ACCOUNT = bats-core
|
|
GH_PROJECT = bats-core
|
|
GH_TAGNAME = v1.2.1
|
|
PKGNAME = ${DISTNAME:S/-core//}
|
|
|
|
CATEGORIES = devel
|
|
|
|
MAINTAINER = Bjorn Ketelaars <bket@openbsd.org>
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
RUN_DEPENDS = shells/bash
|
|
BUILD_DEPENDS = ${RUN_DEPENDS}
|
|
|
|
NO_BUILD = Yes
|
|
PKG_ARCH = *
|
|
|
|
post-extract:
|
|
cd ${WRKSRC} && sed -i 's,share\/,,g' install.sh test/install.bats
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ./install.sh ${PREFIX}
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ./bin/bats --tap test
|
|
|
|
.include <bsd.port.mk>
|