1 |
commit: 50d8d91f5889bdd4b664835067dbc56212b11333 |
2 |
Author: Sam Jorna <wraeth <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 30 11:57:33 2016 +0000 |
4 |
Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 30 14:33:58 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50d8d91f |
7 |
|
8 |
dev-util/bats: new package |
9 |
|
10 |
Bats is a TAP-compliant testing framework for Bash. It provides a simple |
11 |
way to verify that the UNIX programs you write behave as expected. |
12 |
|
13 |
This has been added in order to support app-admin/yadm in bug 581118. |
14 |
Maintainer assigned to Espen H per request under Proxy Maintainers. |
15 |
|
16 |
Gentoo-bug: 581392 |
17 |
Package-Manager: portage-2.2.28 |
18 |
|
19 |
dev-util/bats/Manifest | 1 + |
20 |
dev-util/bats/bats-0.4.0.ebuild | 24 ++++++++++++++++++++++++ |
21 |
dev-util/bats/metadata.xml | 26 ++++++++++++++++++++++++++ |
22 |
3 files changed, 51 insertions(+) |
23 |
|
24 |
diff --git a/dev-util/bats/Manifest b/dev-util/bats/Manifest |
25 |
new file mode 100644 |
26 |
index 0000000..f74b43f |
27 |
--- /dev/null |
28 |
+++ b/dev-util/bats/Manifest |
29 |
@@ -0,0 +1 @@ |
30 |
+DIST bats-0.4.0.tar.gz 17258 SHA256 480d8d64f1681eee78d1002527f3f06e1ac01e173b761bc73d0cf33f4dc1d8d7 SHA512 83c6c0e3ceec149708a8db5d33e95cc84852d8189498c22131c00f4288a6c870f9d522bae9230157f442338dc101e1468451d78dfa274afb83a6f0dd614c8bdb WHIRLPOOL 9617418d6a288d6e57aa1d715498c9adcfbe80cd97a814382431203dab778f26139dc31a14aecfd6f2e71a51f11fe189fce6e3bb7174ce9d4ad25782a9a6fce0 |
31 |
|
32 |
diff --git a/dev-util/bats/bats-0.4.0.ebuild b/dev-util/bats/bats-0.4.0.ebuild |
33 |
new file mode 100644 |
34 |
index 0000000..3fa4d97 |
35 |
--- /dev/null |
36 |
+++ b/dev-util/bats/bats-0.4.0.ebuild |
37 |
@@ -0,0 +1,24 @@ |
38 |
+# Copyright 1999-2016 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+# $Id$ |
41 |
+ |
42 |
+EAPI=6 |
43 |
+ |
44 |
+DESCRIPTION="An automated testing system for bash" |
45 |
+HOMEPAGE="https://github.com/sstephenson/bats/" |
46 |
+SRC_URI="https://github.com/sstephenson/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="MIT" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+ |
52 |
+src_test() { |
53 |
+ bin/bats --tap test |
54 |
+} |
55 |
+ |
56 |
+src_install() { |
57 |
+ einstalldocs |
58 |
+ |
59 |
+ dobin libexec/* |
60 |
+ doman man/bats.1 man/bats.7 |
61 |
+} |
62 |
|
63 |
diff --git a/dev-util/bats/metadata.xml b/dev-util/bats/metadata.xml |
64 |
new file mode 100644 |
65 |
index 0000000..63003cd |
66 |
--- /dev/null |
67 |
+++ b/dev-util/bats/metadata.xml |
68 |
@@ -0,0 +1,26 @@ |
69 |
+<?xml version="1.0" encoding="UTF-8"?> |
70 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
71 |
+<pkgmetadata> |
72 |
+ <maintainer type="person"> |
73 |
+ <email>dev+gentoobugzilla@×××××××××.is</email> |
74 |
+ <name>Espen H</name> |
75 |
+ <description>Proxy maintainer - set to assignee on bugs</description> |
76 |
+ </maintainer> |
77 |
+ <maintainer type="project"> |
78 |
+ <email>proxy-maint@g.o</email> |
79 |
+ <name>Proxy Maintainers</name> |
80 |
+ </maintainer> |
81 |
+ <upstream> |
82 |
+ <remote-id type="github">sstephenson/bats</remote-id> |
83 |
+ </upstream> |
84 |
+ <longdescription lang="en"> |
85 |
+ Bats is a TAP-compliant testing framework for Bash. It provides a simple |
86 |
+ way to verify that the UNIX programs you write behave as expected. |
87 |
+ |
88 |
+ A Bats test file is a Bash script with special syntax for defining test |
89 |
+ cases. Under the hood, each test case is just a function with a description. |
90 |
+ |
91 |
+ Bats is most useful when testing software written in Bash, but you can use |
92 |
+ it to test any UNIX program. |
93 |
+ </longdescription> |
94 |
+</pkgmetadata> |