hc
2023-12-06 d38611ca164021d018c1b23eee65bbebc09c63e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From 5f0f70192b0e20336e642b02ca9662ba2fef66cf Mon Sep 17 00:00:00 2001
From: Yi Fan Yu <yifan.yu@windriver.com>
Date: Fri, 19 Feb 2021 15:21:18 -0500
Subject: [PATCH] Add ptest for tcpdump
 
Upstream-Status: Pending
 
Signed-off-by: Hongjun.Yang <hongjun.yang@windriver.com>
Signed-off-by: Peiran Hong <peiran.hong@windriver.com>
 
remove perl script not required by ptest causing QA problems
 
reference upstream issue/commit:
https://github.com/the-tcpdump-group/tcpdump/issues/26
 
Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
---
 Makefile.in | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
 
diff --git a/Makefile.in b/Makefile.in
index ea1ef1d0..e7987bd8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -445,9 +445,18 @@ distclean:
         tests/failure-outputs.txt
     rm -rf autom4te.cache tests/DIFF tests/NEW
 
-check: tcpdump
+buildtest-TESTS: tcpdump
+
+runtest-PTEST:
     $(srcdir)/tests/TESTrun
 
+install-ptest:
+    cp -r tests                     $(DESTDIR)
+    rm $(DESTDIR)/tests/setkey2esp-secrets.pl
+    cp -r config.h                  $(DESTDIR)
+    install -m 0755 Makefile        $(DESTDIR)
+    ln -s /usr/bin/tcpdump          $(DESTDIR)/tcpdump
+
 extags: $(TAGFILES)
     ctags $(TAGFILES)
 
-- 
2.29.2