aboutsummaryrefslogtreecommitdiffstats
path: root/meta-mentor-staging/openembedded-layer/recipes-extended/libmodbus/libmodbus_%.bbappend
blob: abcc86bb0133a44c7b5c6f3db3bc52f4fae9f39b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# ---------------------------------------------------------------------------------------------------------------------
# SPDX-License-Identifier: MIT
# ---------------------------------------------------------------------------------------------------------------------

FILESEXTRAPATHS:prepend := "${THISDIR}/libmodbus:"
SRC_URI:append:feature-mentor-staging = " \
    file://run-ptest \
    file://local-tcp-test \
"

inherit ptest

do_install_ptest() {
        install -d ${D}${PTEST_PATH}/tests/
        install -m 0755 ${WORKDIR}/*-test ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests/
        sed -i -e 's#@PTEST_PATH@#${PTEST_PATH}#g' ${D}${PTEST_PATH}/run-ptest
}