aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlater, Joseph <joe.slater@windriver.com>2019-09-10 11:00:08 -0700
committerKhem Raj <raj.khem@gmail.com>2019-09-10 11:08:47 -0700
commitb518e0069250eb7ea3aa56f5026b489a93e7dd69 (patch)
tree119730b789156e9130c2c1d41e5fdba428231f69
parent0749b8fccc97f2ccd3516b9e06016b6deea130e0 (diff)
downloadmeta-openembedded-contrib-b518e0069250eb7ea3aa56f5026b489a93e7dd69.tar.gz
meta-openembedded-contrib-b518e0069250eb7ea3aa56f5026b489a93e7dd69.tar.bz2
meta-openembedded-contrib-b518e0069250eb7ea3aa56f5026b489a93e7dd69.zip
openhpi: control snmp-bc ptest generation
Do not try to compile ptests for snmp-bc if it is not in PACKGECONFIG. Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb b/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb
index e3a0c2eb60..b47d59e2d7 100644
--- a/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb
+++ b/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb
@@ -85,6 +85,21 @@ do_install_append () {
do_compile_ptest () {
for x in `find ${B} -name Makefile -exec grep -l buildtest-TESTS {} \;`; do
dir=`dirname ${x}`
+ case $dir in
+ *cpp/t) ;;
+ *snmp_bc/t) if ${@bb.utils.contains('PACKAGECONFIG','snmp-bc','true','false',d)}
+ then
+ oe_runmake -C ${dir} buildtest-TESTS
+ fi
+ ;;
+ *) oe_runmake -C ${dir} buildtest-TESTS ;;
+ esac
+ done
+}
+
+ack_do_compile_ptest () {
+ for x in `find ${B} -name Makefile -exec grep -l buildtest-TESTS {} \;`; do
+ dir=`dirname ${x}`
upper=`dirname ${dir}`
if [ `basename ${upper}` != "cpp" ]; then
oe_runmake -C ${dir} buildtest-TESTS