aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tcpreplay/skip-tests-require-root.patch
blob: a8fc70c084513bcfe7adbb61ae413e527d062dcb (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
These tests require root to run. Disable them so that we can still run the other tests
diff --git a/test/Makefile.in b/test/Makefile.in.new
index d325ee2dd6..68ee3c3628 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in.new
@@ -790,16 +790,10 @@ include_dest:
 	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
 
 replay_basic:
-	$(PRINTF) "%s" "[tcpreplay] Basic test: "
-	$(PRINTF) "%s\n" "*** [tcpreplay] Basic test: " >> test.log
-	$(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -t $(TEST_PCAP) >> test.log 2>&1
-	if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
+	$(PRINTF) "%s\t\t\t\t%s\n" "[tcpreplay] Basic test:" "[SKIP]"
 
 replay_cache:
-	$(PRINTF) "%s" "[tcpreplay] Cache test: "
-	$(PRINTF) "%s\n" "*** [tcpreplay] Cache test: " >> test.log
-	$(TCPREPLAY) $(ENABLE_DEBUG) -c $(srcdir)/test.cidr -i $(nic1) -I $(nic2) -t $(TEST_PCAP) >> test.log 2>&1
-	if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
+	$(PRINTF) "%s\t\t\t\t%s\n" "[tcpreplay] Cache test:" "[SKIP]"
 
 replay_accurate:
 	$(PRINTF) "%s" "[tcpreplay] Accurate test: "
@@ -808,10 +802,7 @@ replay_accurate:
 	if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
 
 replay_stats:
-	$(PRINTF) "%s" "[tcpreplay] Statistics test: "
-	$(PRINTF) "%s\n" "*** [tcpreplay] Statistics test: " >> test.log
-	$(TCPREPLAY) $(ENABLE_DEBUG) --stats=1 -i $(nic1) $(TEST_PCAP) >> test.log 2>&1
-	if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
+	$(PRINTF) "%s\t\t\t%s\n" "[tcpreplay] Statistics test:" "[SKIP]"
 
 rewrite_portmap:
 	$(PRINTF) "%s" "[tcprewrite] Portmap test: "
@@ -1028,40 +1019,22 @@ rewrite_l7fuzzing:
 	if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
 
 replay_pps:
-	$(PRINTF) "%s" "[tcpreplay] Packets/sec test: "
-	$(PRINTF) "%s\n" "*** [tcpreplay] Packets/sec test: " >> test.log
-	$(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -p 25 $(TEST_PCAP) >> test.log 2>&1
-	if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
+	$(PRINTF) "%s\t\t\t%s\n" "[tcpreplay] Packets/sec test:" "[SKIP]"
 
 replay_rate:
-	$(PRINTF) "%s" "[tcpreplay] Mbps test: "
-	$(PRINTF) "%s\n" "*** [tcpreplay] Mbps test: " >> test.log
-	$(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -M 25.0 $(TEST_PCAP) >> test.log 2>&1
-	if [ $? ] ; then $(PRINTF) "\t\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t\t%s\n" "OK"; fi
+	$(PRINTF) "%s\t\t\t\t%s\n" "[tcpreplay] Mbps test:" "[SKIP]"
 
 replay_multi:
-	$(PRINTF) "%s" "[tcpreplay] Multiplier test: "
-	$(PRINTF) "%s\n" "*** [tcpreplay] Multiplier test: " >> test.log
-	$(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -x 25.0 $(TEST_PCAP) >> test.log 2>&1
-	if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
+	$(PRINTF) "%s\t\t\t%s\n" "[tcpreplay] Multiplier test:" "[SKIP]"
 
 replay_pps_multi:
-	$(PRINTF) "%s" "[tcpreplay] Packets/sec Multiplier test: "
-	$(PRINTF) "%s\n" "*** [tcpreplay] Packets/sec Multiplier test: " >> test.log
-	$(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -p 100 --pps-multi=5 $(TEST_PCAP) >> test.log 2>&1
-	if [ $? ] ; then $(PRINTF) "\t%s\n" "FAILED"; else $(PRINTF) "\t%s\n" "OK"; fi
+	$(PRINTF) "%s\t%s\n" "[tcpreplay] Packets/sec Multiplier test:" "[SKIP]"
 
 replay_top:
-	$(PRINTF) "%s" "[tcpreplay] Topspeed test: "
-	$(PRINTF) "%s\n" "*** [tcpreplay] Topspeed test: " >> test.log
-	$(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -t $(TEST_PCAP) >> test.log 2>&1
-	if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
+	$(PRINTF) "%s\t\t\t%s\n" "[tcpreplay] Topspeed test:" "[SKIP]"
 
 replay_precache:
-	$(PRINTF) "%s" "[tcpreplay] Precache test: "
-	$(PRINTF) "%s\n" "*** [tcpreplay] Precache test: " >> test.log
-	$(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) --preload-pcap $(TEST_PCAP) >> test.log 2>&1
-	if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
+	$(PRINTF) "%s\t\t\t%s\n" "[tcpreplay] Precache test:" "[SKIP]"
 
 datadump_mode:
 	$(PRINTF) "%s" "[tcpreplay] Data dump test: "
@@ -1070,22 +1046,13 @@ datadump_mode:
 	if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
 
 replay_config:
-	$(PRINTF) "%s" "[tcpreplay] Config file/VLAN add test: "
-	$(PRINTF) "%s\n" "*** [tcpreplay] Config file/VLAN add test: " >> test.log
-	$(TCPREPLAY) $(ENABLE_DEBUG) --load-opts=config $(TEST_PCAP) >> test.log 2>&1
-	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
+	$(PRINTF) "%s\t\t%s\n" "[tcpreplay] Config file/VLAN add test:" "[SKIP]"
 
 replay_dualfile:
-	$(PRINTF) "%s" "[tcpreplay] Dual file test: "
-	$(PRINTF) "%s\n" "*** [tcpreplay] Dual file test: " >> test.log
-	$(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -I $(nic2) --dualfile $(TEST_PCAP) $(TEST_PCAP) >> test.log 2>&1
-	if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
+	$(PRINTF) "%s\t\t\t%s\n" "[tcpreplay] Dual file test:" "[SKIP]"
 
 replay_maxsleep:
-	$(PRINTF) "%s" "[tcpreplay] Maximum sleep test: "
-	$(PRINTF) "%s\n" "*** [tcpreplay] Maximum sleep test: " >> test.log
-	$(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) --maxsleep=20 $(TEST_PCAP) $(TEST_PCAP) >> test.log 2>&1
-	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
+	$(PRINTF) "%s\t\t\t%s\n" "[tcpreplay] Maximum sleep test:" "[SKIP]"
 
 clean:
 	rm -f *1 test.log core* *~ primary.data secondary.data