diff options
author | seb <seb@pkgsrc.org> | 2016-05-02 02:29:14 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2016-05-02 02:29:14 +0000 |
commit | db76384f0f8e00c2d48a05d8fc308c37bac3cbe1 (patch) | |
tree | a4d1a082e4154b5c84920d378441b4e73ac23dc3 | |
parent | 6252a4747f385fca3a5002d859867fc3d3607c9b (diff) | |
download | pkgsrc-db76384f0f8e00c2d48a05d8fc308c37bac3cbe1.tar.gz |
Add bats version 0.4.0 in the NetBSD Packages Collection.
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.
A Bats test file is a Bash script with special syntax for defining
test cases. Under the hood, each test case is just a function with
a description.
-rw-r--r-- | devel/bats/DESCR | 7 | ||||
-rw-r--r-- | devel/bats/Makefile | 27 | ||||
-rw-r--r-- | devel/bats/PLIST | 9 | ||||
-rw-r--r-- | devel/bats/distinfo | 7 | ||||
-rw-r--r-- | devel/bats/patches/patch-install.sh | 20 |
5 files changed, 70 insertions, 0 deletions
diff --git a/devel/bats/DESCR b/devel/bats/DESCR new file mode 100644 index 00000000000..e60b497ded2 --- /dev/null +++ b/devel/bats/DESCR @@ -0,0 +1,7 @@ +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. + +A Bats test file is a Bash script with special syntax for defining +test cases. Under the hood, each test case is just a function with +a description. diff --git a/devel/bats/Makefile b/devel/bats/Makefile new file mode 100644 index 00000000000..7672e302665 --- /dev/null +++ b/devel/bats/Makefile @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.1 2016/05/02 02:29:14 seb Exp $ + +DISTNAME= bats-0.4.0 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_GITHUB:=sstephenson/} + +MAINTAINER= pkgsrc@NetBSD.org +HOMEPAGE= https://github.com/sstephenson/bats +COMMENT= Testing framework for Bash +LICENSE= mit + +GITHUB_TAG= v${PKGVERSION_NOREV} + +USE_LANGUAGES= # none + +NO_BUILD= yes +USE_TOOLS+= bash:run + +CHECK_INTERPRETER_SKIP= bin/bats libexec/bats* + +do-install: + cd ${WRKSRC} && ./install.sh ${DESTDIR}${PREFIX} + +do-test: + cd ${WRKSRC} && ./bin/bats ./test + +.include "../../mk/bsd.pkg.mk" diff --git a/devel/bats/PLIST b/devel/bats/PLIST new file mode 100644 index 00000000000..f6d1d046431 --- /dev/null +++ b/devel/bats/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1 2016/05/02 02:29:14 seb Exp $ +bin/bats +libexec/bats +libexec/bats-exec-suite +libexec/bats-exec-test +libexec/bats-format-tap-stream +libexec/bats-preprocess +man/man1/bats.1 +man/man7/bats.7 diff --git a/devel/bats/distinfo b/devel/bats/distinfo new file mode 100644 index 00000000000..41e5a8005a4 --- /dev/null +++ b/devel/bats/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2016/05/02 02:29:14 seb Exp $ + +SHA1 (bats-0.4.0.tar.gz) = cb8a5f4c844a5f052f915036130def31140fce94 +RMD160 (bats-0.4.0.tar.gz) = 5c64f76448df4a2ed8874b8c7830eda49f732e97 +SHA512 (bats-0.4.0.tar.gz) = 83c6c0e3ceec149708a8db5d33e95cc84852d8189498c22131c00f4288a6c870f9d522bae9230157f442338dc101e1468451d78dfa274afb83a6f0dd614c8bdb +Size (bats-0.4.0.tar.gz) = 17258 bytes +SHA1 (patch-install.sh) = 271e6b4711095e62d5f142fc31b906bf0501da0b diff --git a/devel/bats/patches/patch-install.sh b/devel/bats/patches/patch-install.sh new file mode 100644 index 00000000000..d58d2b21708 --- /dev/null +++ b/devel/bats/patches/patch-install.sh @@ -0,0 +1,20 @@ +$NetBSD: patch-install.sh,v 1.1 2016/05/02 02:29:14 seb Exp $ + +Change manpages installation directory. + +--- install.sh.orig 2014-08-13 14:59:22.000000000 +0000 ++++ install.sh +@@ -28,10 +28,10 @@ if [ -z "$1" ]; then + fi + + BATS_ROOT="$(abs_dirname "$0")" +-mkdir -p "$PREFIX"/{bin,libexec,share/man/man{1,7}} ++mkdir -p "$PREFIX"/{bin,libexec,man/man{1,7}} + cp -R "$BATS_ROOT"/bin/* "$PREFIX"/bin + cp -R "$BATS_ROOT"/libexec/* "$PREFIX"/libexec +-cp "$BATS_ROOT"/man/bats.1 "$PREFIX"/share/man/man1 +-cp "$BATS_ROOT"/man/bats.7 "$PREFIX"/share/man/man7 ++cp "$BATS_ROOT"/man/bats.1 "$PREFIX"/man/man1 ++cp "$BATS_ROOT"/man/bats.7 "$PREFIX"/man/man7 + + echo "Installed Bats to $PREFIX/bin/bats" |