summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-test/bats/bats_1.7.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-test/bats/bats_1.7.0.bb')
-rw-r--r--meta-oe/recipes-test/bats/bats_1.7.0.bb33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-oe/recipes-test/bats/bats_1.7.0.bb b/meta-oe/recipes-test/bats/bats_1.7.0.bb
new file mode 100644
index 0000000000..81235e29b0
--- /dev/null
+++ b/meta-oe/recipes-test/bats/bats_1.7.0.bb
@@ -0,0 +1,33 @@
1SUMMARY = "Bash Automated Testing System"
2DESCRIPTION = "Bats is a TAP-compliant testing framework for Bash. It \
3provides a simple way to verify that the UNIX programs you write behave as expected."
4AUTHOR = "Sam Stephenson & bats-core organization"
5HOMEPAGE = "https://github.com/bats-core/bats-core"
6LICENSE = "MIT"
7LIC_FILES_CHKSUM = "file://LICENSE.md;md5=2970203aedf9e829edb96a137a4fe81b"
8
9SRC_URI = "\
10 git://github.com/bats-core/bats-core.git;branch=master;protocol=https \
11 "
12
13# v1.7.0
14SRCREV = "410dd229a5ed005c68167cc90ed0712ad2a1c909"
15
16S = "${WORKDIR}/git"
17
18do_configure:prepend() {
19 sed -i 's:\$BATS_ROOT/lib:\$BATS_ROOT/${baselib}:g' ${S}/libexec/bats-core/bats
20 sed -i 's:\$BATS_ROOT/lib:\$BATS_ROOT/${baselib}:g' ${S}/libexec/bats-core/bats-exec-file
21 sed -i 's:\$BATS_ROOT/lib:\$BATS_ROOT/${baselib}:g' ${S}/libexec/bats-core/bats-exec-test
22}
23
24do_install() {
25 # Just a bunch of bash scripts to install
26 ${S}/install.sh ${D}${prefix} ${baselib}
27}
28
29RDEPENDS:${PN} = "bash"
30FILES:${PN} += "${libdir}/bats-core/*"
31
32PACKAGECONFIG ??= "pretty"
33PACKAGECONFIG[pretty] = ",,,ncurses"