* [meta-networking][PATCH] tcpdump: Add ptest
@ 2014-10-22 6:56 Hongjun Yang
2014-10-22 7:16 ` Yang Hongjun
0 siblings, 1 reply; 2+ messages in thread
From: Hongjun Yang @ 2014-10-22 6:56 UTC (permalink / raw)
To: openembedded-devel
From: "Hongjun.Yang" <hongjun.yang@windriver.com>
Add ptest supports for tcpdump
Signed-off-by: Hongjun.Yang <hongjun.yang@windriver.com>
---
.../tcpdump/tcpdump-4.6.1/add-ptest.patch | 38 ++++++++++++++++++++++
.../tcpdump/tcpdump-4.6.1/run-ptest | 5 +++
.../recipes-support/tcpdump/tcpdump_4.6.1.bb | 4 ++-
3 files changed, 46 insertions(+), 1 deletion(-)
create mode 100644 meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/add-ptest.patch
create mode 100755 meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/run-ptest
diff --git a/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/add-ptest.patch b/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/add-ptest.patch
new file mode 100644
index 0000000..ab0312e
--- /dev/null
+++ b/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/add-ptest.patch
@@ -0,0 +1,38 @@
+From 7b259580800e259d232229dc89f97058b56e2fe8 Mon Sep 17 00:00:00 2001
+From: "Hongjun.Yang" <hongjun.yang@windriver.com>
+Date: Wed, 22 Oct 2014 10:02:48 +0800
+Subject: [PATCH] Add ptest for tcpdump
+
+Upstream-Status: pending
+
+Signed-off-by: Hongjun.Yang <hongjun.yang@windriver.com>
+---
+ Makefile.in | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 8c35a45..4fb8ae6 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -428,9 +428,17 @@ distclean:
+ tests/failure-outputs.txt
+ rm -rf autom4te.cache tests/DIFF tests/NEW
+
+-check: tcpdump
++buildtest-TESTS: tcpdump
++
++runtest-PTEST:
+ (cd tests && ./TESTrun.sh)
+
++install-ptest:
++ cp -r tests $(DESTDIR)
++ cp -r config.h $(DESTDIR)
++ install -m 0755 Makefile $(DESTDIR)
++ ln -sf /usr/sbin/tcpdump $(DESTDIR)/tcpdump
++
+ tags: $(TAGFILES)
+ ctags -wtd $(TAGFILES)
+
+--
+1.9.1
+
diff --git a/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/run-ptest b/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/run-ptest
new file mode 100755
index 0000000..c03a8b8
--- /dev/null
+++ b/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/run-ptest
@@ -0,0 +1,5 @@
+#!/bin/sh
+make -k runtest-PTEST | sed -e '/: passed/ s/^/PASS: /g' \
+ -e '/: failed/ s/^/FAIL: /g' \
+ -e 's/: passed//g' \
+ -e 's/: failed//g'
diff --git a/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb b/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb
index 58bcb98..ddf0052 100644
--- a/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb
+++ b/meta-networking/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"
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [meta-networking][PATCH] tcpdump: Add ptest
2014-10-22 6:56 [meta-networking][PATCH] tcpdump: Add ptest Hongjun Yang
@ 2014-10-22 7:16 ` Yang Hongjun
0 siblings, 0 replies; 2+ messages in thread
From: Yang Hongjun @ 2014-10-22 7:16 UTC (permalink / raw)
To: openembedded-devel
some path of this patch is wrong, I will send the new patch later.
On 2014年10月22日 14:56, Hongjun Yang wrote:
> From: "Hongjun.Yang" <hongjun.yang@windriver.com>
>
> Add ptest supports for tcpdump
>
> Signed-off-by: Hongjun.Yang <hongjun.yang@windriver.com>
>
> ---
> .../tcpdump/tcpdump-4.6.1/add-ptest.patch | 38 ++++++++++++++++++++++
> .../tcpdump/tcpdump-4.6.1/run-ptest | 5 +++
> .../recipes-support/tcpdump/tcpdump_4.6.1.bb | 4 ++-
> 3 files changed, 46 insertions(+), 1 deletion(-)
> create mode 100644 meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/add-ptest.patch
> create mode 100755 meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/run-ptest
>
> diff --git a/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/add-ptest.patch b/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/add-ptest.patch
> new file mode 100644
> index 0000000..ab0312e
> --- /dev/null
> +++ b/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/add-ptest.patch
> @@ -0,0 +1,38 @@
> +From 7b259580800e259d232229dc89f97058b56e2fe8 Mon Sep 17 00:00:00 2001
> +From: "Hongjun.Yang" <hongjun.yang@windriver.com>
> +Date: Wed, 22 Oct 2014 10:02:48 +0800
> +Subject: [PATCH] Add ptest for tcpdump
> +
> +Upstream-Status: pending
> +
> +Signed-off-by: Hongjun.Yang <hongjun.yang@windriver.com>
> +---
> + Makefile.in | 10 +++++++++-
> + 1 file changed, 9 insertions(+), 1 deletion(-)
> +
> +diff --git a/Makefile.in b/Makefile.in
> +index 8c35a45..4fb8ae6 100644
> +--- a/Makefile.in
> ++++ b/Makefile.in
> +@@ -428,9 +428,17 @@ distclean:
> + tests/failure-outputs.txt
> + rm -rf autom4te.cache tests/DIFF tests/NEW
> +
> +-check: tcpdump
> ++buildtest-TESTS: tcpdump
> ++
> ++runtest-PTEST:
> + (cd tests && ./TESTrun.sh)
> +
> ++install-ptest:
> ++ cp -r tests $(DESTDIR)
> ++ cp -r config.h $(DESTDIR)
> ++ install -m 0755 Makefile $(DESTDIR)
> ++ ln -sf /usr/sbin/tcpdump $(DESTDIR)/tcpdump
> ++
> + tags: $(TAGFILES)
> + ctags -wtd $(TAGFILES)
> +
> +--
> +1.9.1
> +
> diff --git a/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/run-ptest b/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/run-ptest
> new file mode 100755
> index 0000000..c03a8b8
> --- /dev/null
> +++ b/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump-4.6.1/run-ptest
> @@ -0,0 +1,5 @@
> +#!/bin/sh
> +make -k runtest-PTEST | sed -e '/: passed/ s/^/PASS: /g' \
> + -e '/: failed/ s/^/FAIL: /g' \
> + -e 's/: passed//g' \
> + -e 's/: failed//g'
> diff --git a/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb b/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb
> index 58bcb98..ddf0052 100644
> --- a/meta-networking/meta-networking/recipes-support/tcpdump/tcpdump_4.6.1.bb
> +++ b/meta-networking/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"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-22 7:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-22 6:56 [meta-networking][PATCH] tcpdump: Add ptest Hongjun Yang
2014-10-22 7:16 ` Yang Hongjun
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.