Skip to contentSkip to conversation

openhpi: control snmp-bc ptest generation

PATCH New Joe Slater 1 participant 1 message Sep 10, 2019

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH 1/1 openhpi: control snmp-bc ptest generation

Do not try to compile ptests for snmp-bc if it is not in PACKGECONFIG.

---
 meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb +15 -0
index e3a0c2e..8a92f10 100644
@@ -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
Signature · 1 line
2.7.4