William A. Kennington III | 6fae14e | 2021-04-20 00:08:40 -0700 | [diff] [blame] | 1 | SUMMARY = "Shell functions for testing shell scripts" |
| 2 | PR = "r1" |
| 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 5 | |
| 6 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 7 | SRC_URI += "file://lib.sh" |
| 8 | SRC_URI += "file://test.sh" |
| 9 | S = "${WORKDIR}" |
| 10 | |
| 11 | DATA = "${datadir}/test" |
| 12 | FILES_${PN} += "${DATA}" |
| 13 | |
| 14 | do_compile() { |
| 15 | SYSROOT="$PKG_CONFIG_SYSROOT_DIR" bash test.sh || exit |
| 16 | } |
| 17 | |
| 18 | do_install_append() { |
| 19 | install -d -m0755 ${D}${DATA} |
| 20 | install -m0644 lib.sh ${D}${DATA}/ |
| 21 | } |