diff options
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.bb | 33 |
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 @@ | |||
| 1 | SUMMARY = "Bash Automated Testing System" | ||
| 2 | DESCRIPTION = "Bats is a TAP-compliant testing framework for Bash. It \ | ||
| 3 | provides a simple way to verify that the UNIX programs you write behave as expected." | ||
| 4 | AUTHOR = "Sam Stephenson & bats-core organization" | ||
| 5 | HOMEPAGE = "https://github.com/bats-core/bats-core" | ||
| 6 | LICENSE = "MIT" | ||
| 7 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=2970203aedf9e829edb96a137a4fe81b" | ||
| 8 | |||
| 9 | SRC_URI = "\ | ||
| 10 | git://github.com/bats-core/bats-core.git;branch=master;protocol=https \ | ||
| 11 | " | ||
| 12 | |||
| 13 | # v1.7.0 | ||
| 14 | SRCREV = "410dd229a5ed005c68167cc90ed0712ad2a1c909" | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | |||
| 18 | do_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 | |||
| 24 | do_install() { | ||
| 25 | # Just a bunch of bash scripts to install | ||
| 26 | ${S}/install.sh ${D}${prefix} ${baselib} | ||
| 27 | } | ||
| 28 | |||
| 29 | RDEPENDS:${PN} = "bash" | ||
| 30 | FILES:${PN} += "${libdir}/bats-core/*" | ||
| 31 | |||
| 32 | PACKAGECONFIG ??= "pretty" | ||
| 33 | PACKAGECONFIG[pretty] = ",,,ncurses" | ||
