blob: 7edbb9189050579d5ef42d94806ad91a098e30ae [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
6FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
7SRC_URI += "file://lib.sh"
8SRC_URI += "file://test.sh"
9S = "${WORKDIR}"
10
11DATA = "${datadir}/test"
12FILES_${PN} += "${DATA}"
13
14do_compile() {
15 SYSROOT="$PKG_CONFIG_SYSROOT_DIR" bash test.sh || exit
16}
17
18do_install_append() {
19 install -d -m0755 ${D}${DATA}
20 install -m0644 lib.sh ${D}${DATA}/
21}