blob: f8ff354fe1a0c65f8acaa1fb7b4dba21acd33e92 [file] [log] [blame]
Brad Bishop63ae8782019-10-09 09:56:13 -04001From 8c9c728757f89ebe6c4019114b83a63c63596f69 Mon Sep 17 00:00:00 2001
Patrick Williamsb48b7b42016-08-17 15:04:38 -05002From: "Hongjun.Yang" <hongjun.yang@windriver.com>
Brad Bishop63ae8782019-10-09 09:56:13 -04003Date: Wed, 2 Oct 2019 16:57:06 -0400
Patrick Williamsb48b7b42016-08-17 15:04:38 -05004Subject: [PATCH] Add ptest for tcpdump
5
6Upstream-Status: Pending
7
8Signed-off-by: Hongjun.Yang <hongjun.yang@windriver.com>
Brad Bishop63ae8782019-10-09 09:56:13 -04009Signed-off-by: Peiran Hong <peiran.hong@windriver.com>
Brad Bishop316dfdd2018-06-25 12:45:53 -040010
Patrick Williamsb48b7b42016-08-17 15:04:38 -050011---
12 Makefile.in | 10 +++++++++-
13 1 file changed, 9 insertions(+), 1 deletion(-)
14
Brad Bishop316dfdd2018-06-25 12:45:53 -040015diff --git a/Makefile.in b/Makefile.in
Brad Bishop63ae8782019-10-09 09:56:13 -040016index 3b589184..7b10e38c 100644
Brad Bishop316dfdd2018-06-25 12:45:53 -040017--- a/Makefile.in
18+++ b/Makefile.in
19@@ -437,9 +437,17 @@ distclean:
Patrick Williamsb48b7b42016-08-17 15:04:38 -050020 tests/failure-outputs.txt
21 rm -rf autom4te.cache tests/DIFF tests/NEW
22
23-check: tcpdump
24+buildtest-TESTS: tcpdump
25+
26+runtest-PTEST:
Brad Bishop63ae8782019-10-09 09:56:13 -040027 (mkdir -p tests && SRCDIR=`cd ${srcdir}; pwd` && export SRCDIR && $$SRCDIR/tests/TESTrun.sh )
Patrick Williamsb48b7b42016-08-17 15:04:38 -050028
29+install-ptest:
Brad Bishop7f28bc52017-12-03 23:42:40 -050030+ cp -r tests $(DESTDIR)
31+ cp -r config.h $(DESTDIR)
32+ install -m 0755 Makefile $(DESTDIR)
33+ ln -sf /usr/sbin/tcpdump $(DESTDIR)/tcpdump
Patrick Williamsb48b7b42016-08-17 15:04:38 -050034+
Brad Bishop7f28bc52017-12-03 23:42:40 -050035 extags: $(TAGFILES)
36 ctags $(TAGFILES)
Patrick Williamsb48b7b42016-08-17 15:04:38 -050037