blob: 4581d4c64e711add18e76df9417abb0a44736e23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Add ptest support
# backport of yocto
#
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI += " \
file://run-ptest \
"
inherit ptest
do_compile_ptest(){
oe_runmake -C ${B}/tests/ check TESTS=
}
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests/
install --mode=755 ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests/
install -d ${D}${PTEST_PATH}/tests/files/
install --mode=755 ${S}/tests/files/* ${D}${PTEST_PATH}/tests/files/
}
RDEPENDS:${PN}-ptest += "bash"
|