summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2018-11-27 03:09:37 -0500
committerArmin Kuster <akuster808@gmail.com>2019-02-04 21:14:11 -0800
commit0fffb955a7df9e1cfb5b9818551ea1e05e3fc5e6 (patch)
treedd6d53e094c53f361f2f296c5ba2a3e1dfa3341a
parent8c56922ea5a1aad0ddbdfdc2fa839337d9f83511 (diff)
downloadmeta-openembedded-0fffb955a7df9e1cfb5b9818551ea1e05e3fc5e6.tar.gz
net-snmp: inherit ptest
Inherit ptest for net-snmp to create ${PN}-ptest. Update run-ptest as well to avoid only could be run in the same directory. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rwxr-xr-xmeta-networking/recipes-protocols/net-snmp/net-snmp/run-ptest3
-rw-r--r--meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb2
2 files changed, 3 insertions, 2 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/run-ptest b/meta-networking/recipes-protocols/net-snmp/net-snmp/run-ptest
index 2334217bc..76514c202 100755
--- a/meta-networking/recipes-protocols/net-snmp/net-snmp/run-ptest
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/run-ptest
@@ -1,4 +1,5 @@
1#!/bin/sh 1#!/bin/sh
2 2
3cd testing 3workdir=$(dirname `realpath $0`)
4cd ${workdir}/testing
4./RUNTESTS 5./RUNTESTS
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
index d47f9e4a3..757c1dbf6 100644
--- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
@@ -32,7 +32,7 @@ SRC_URI[sha256sum] = "c6291385b8ed84f05890fe4197005daf7e7ee7b082c2e390fa114a9477
32UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/net-snmp/files/net-snmp/" 32UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/net-snmp/files/net-snmp/"
33UPSTREAM_CHECK_REGEX = "/net-snmp/(?P<pver>\d+(\.\d+)+)/" 33UPSTREAM_CHECK_REGEX = "/net-snmp/(?P<pver>\d+(\.\d+)+)/"
34 34
35inherit autotools-brokensep update-rc.d siteinfo systemd pkgconfig perlnative 35inherit autotools-brokensep update-rc.d siteinfo systemd pkgconfig perlnative ptest
36 36
37EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' HOST_CPPFLAGS='${BUILD_CPPFLAGS}'" 37EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' HOST_CPPFLAGS='${BUILD_CPPFLAGS}'"
38 38