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 | |
Willy Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 6 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
William A. Kennington III | 6fae14e | 2021-04-20 00:08:40 -0700 | [diff] [blame] | 7 | SRC_URI += "file://lib.sh" |
| 8 | SRC_URI += "file://test.sh" |
| 9 | S = "${WORKDIR}" |
| 10 | |
| 11 | DATA = "${datadir}/test" |
Willy Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 12 | FILES:${PN} += "${DATA}" |
William A. Kennington III | 6fae14e | 2021-04-20 00:08:40 -0700 | [diff] [blame] | 13 | |
| 14 | do_compile() { |
| 15 | SYSROOT="$PKG_CONFIG_SYSROOT_DIR" bash test.sh || exit |
| 16 | } |
| 17 | |
Willy Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 18 | do_install:append() { |
William A. Kennington III | 6fae14e | 2021-04-20 00:08:40 -0700 | [diff] [blame] | 19 | install -d -m0755 ${D}${DATA} |
| 20 | install -m0644 lib.sh ${D}${DATA}/ |
| 21 | } |