blob: eaca13739d5d2dcd297192106cb6494fcc490f49 [file] [log] [blame]
William A. Kennington III6fae14e2021-04-20 00:08:40 -07001SUMMARY = "Shell functions for testing shell scripts"
2PR = "r1"
3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
5
Willy Tu4dd03ca2021-08-06 09:37:35 -07006FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
William A. Kennington III6fae14e2021-04-20 00:08:40 -07007SRC_URI += "file://lib.sh"
8SRC_URI += "file://test.sh"
9S = "${WORKDIR}"
10
11DATA = "${datadir}/test"
Willy Tu4dd03ca2021-08-06 09:37:35 -070012FILES:${PN} += "${DATA}"
William A. Kennington III6fae14e2021-04-20 00:08:40 -070013
14do_compile() {
15 SYSROOT="$PKG_CONFIG_SYSROOT_DIR" bash test.sh || exit
16}
17
Willy Tu4dd03ca2021-08-06 09:37:35 -070018do_install:append() {
William A. Kennington III6fae14e2021-04-20 00:08:40 -070019 install -d -m0755 ${D}${DATA}
20 install -m0644 lib.sh ${D}${DATA}/
21}