Skip to contentSkip to conversation

net-snmp: inherit ptest

PATCH New [email protected] 1 participant 1 message Nov 27, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net-snmp: inherit ptest

From: Kai Kang <[email protected]>

Inherit ptest for net-snmp to create ${PN}-ptest. Update run-ptest as well to avoid only could be run in the same directory.

---
 meta-networking/recipes-protocols/net-snmp/net-snmp/run-ptest | 3 ++-
 meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb    | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
meta-networking/recipes-protocols/net-snmp/net-snmp/run-ptest +2 -1
index 2334217bc..76514c202 100755
@@ -1,4 +1,5 @@
 #!/bin/sh
 
-cd testing
+workdir=$(dirname `realpath $0`)
+cd ${workdir}/testing
 ./RUNTESTS
meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb +1 -1
index 7794f3880..0250743e7 100644
@@ -33,7 +33,7 @@ SRC_URI[sha256sum] = "c6291385b8ed84f05890fe4197005daf7e7ee7b082c2e390fa114a9477
 UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/net-snmp/files/net-snmp/"
 UPSTREAM_CHECK_REGEX = "/net-snmp/(?P<pver>\d+(\.\d+)+)/"
 
-inherit autotools-brokensep update-rc.d siteinfo systemd pkgconfig perlnative
+inherit autotools-brokensep update-rc.d siteinfo systemd pkgconfig perlnative ptest
 
 EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' HOST_CPPFLAGS='${BUILD_CPPFLAGS}'"
 
Signature · 1 line
2.19.0.rc2