aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb
diff options
context:
space:
mode:
authorHongjun.Yang <hongjun.yang@windriver.com>2014-10-22 15:42:42 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2014-10-30 08:59:31 +0100
commit90880880066981071f14a983c2da9f450f244192 (patch)
tree0fa23ac30f08c04c68d43bc32f466f77b7d6ca80 /meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb
parent839a8bb4a708b81bab2b4b41f88769b1726ef59e (diff)
downloadmeta-openembedded-contrib-90880880066981071f14a983c2da9f450f244192.tar.gz
meta-openembedded-contrib-90880880066981071f14a983c2da9f450f244192.tar.bz2
meta-openembedded-contrib-90880880066981071f14a983c2da9f450f244192.zip
tcpdump: Add ptest
Add ptest supports for tcpdump Signed-off-by: Hongjun.Yang <hongjun.yang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb')
-rw-r--r--meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb b/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb
index 58bcb980f5..1fdaf308d8 100644
--- a/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb
+++ b/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb
@@ -11,12 +11,14 @@ SRC_URI = " \
file://unnecessary-to-check-libpcap.patch \
file://tcpdump-configure-dlpi.patch \
file://tcpdump-cross-getaddrinfo.patch \
+ file://add-ptest.patch \
+ file://run-ptest \
"
SRC_URI[md5sum] = "dab267ec30216a069747d10314079ec7"
SRC_URI[sha256sum] = "4c88c2a9aeb4047074f344fc9b2b6577b219972d359e192f6d12ccf983a13fd7"
export LIBS=" -lpcap"
-inherit autotools-brokensep
+inherit autotools-brokensep ptest
CACHED_CONFIGUREVARS = "ac_cv_linux_vers=${ac_cv_linux_vers=2}"
PACKAGECONFIG ??= "openssl ipv6"
@@ -43,3 +45,7 @@ do_install_append() {
# tcpdump 4.0.0 installs a copy to /usr/sbin/tcpdump.4.0.0
rm -f ${D}${sbindir}/tcpdump.${PV}
}
+
+do_compile_ptest() {
+ oe_runmake buildtest-TESTS
+}