1 |
786 |
skrzyp |
2009-11-13 John Dallaway
|
2 |
|
|
|
3 |
|
|
* cdl/net_autotest.cdl: Specify test executable names for
|
4 |
|
|
compatibility with the eCos Configuration Tool.
|
5 |
|
|
|
6 |
|
|
2002-02-01 Gary Thomas
|
7 |
|
|
|
8 |
|
|
* tests/slowpingmux.c (ping_test):
|
9 |
|
|
* tests/routeping.inl: (ping_test):
|
10 |
|
|
* tests/floodpingmux.c: (net_test):
|
11 |
|
|
* tests/autohost.inl (autohost_tell):
|
12 |
|
|
* host/awaitorder.c (main): Need valid value for sin_len.
|
13 |
|
|
|
14 |
|
|
2001-10-10 Hugo Tyson
|
15 |
|
|
|
16 |
|
|
* tests/floodping.c:
|
17 |
|
|
* tests/floodpingmux.c:
|
18 |
|
|
* tests/snmpmulti.c:
|
19 |
|
|
* tests/snmppings.c:
|
20 |
|
|
* tests/snmpwalk.c:
|
21 |
|
|
More conditional compilation needed for use of eth0_up, eth1_up
|
22 |
|
|
and the like, since the config opt is now a boolean and so these
|
23 |
|
|
might not exist.
|
24 |
|
|
|
25 |
|
|
2001-06-26 Hugo Tyson
|
26 |
|
|
|
27 |
|
|
* tests/routeping.inl (route_add_s): Add a close to the socket.
|
28 |
|
|
Don't be upset if you can't ping www.cygnus.com by number!
|
29 |
|
|
|
30 |
|
|
2000-12-08 Hugo Tyson
|
31 |
|
|
|
32 |
|
|
* host/tftpget.sh (TARGET): Try a little harder to put a correct
|
33 |
|
|
test dataset into the target; we are testing GET not PUT here. We
|
34 |
|
|
are seeing get fails of 1Mb data on the zeroth try; it could be a
|
35 |
|
|
real get bug, or problems putting the original image. This change
|
36 |
|
|
should help diagnose which.
|
37 |
|
|
|
38 |
|
|
* tests/slowpingmux.c (ping_host): Make this much less verbose in
|
39 |
|
|
[good] output; the farm rejects too much chatter.
|
40 |
|
|
|
41 |
|
|
2000-11-17 Hugo Tyson
|
42 |
|
|
|
43 |
|
|
* tests/memcheck.inl (memcheck_final): Ignore clusters if
|
44 |
|
|
simulating network failures; I guess memory is used up with
|
45 |
|
|
partial packets awaiting reassembly, and they'll time out.
|
46 |
|
|
|
47 |
|
|
* tests/routeping.inl (net_test): Call TNR_ON/OFF() correctly.
|
48 |
|
|
|
49 |
|
|
* tests/slowpingmux.c (net_test): Call TNR_ON/OFF() correctly.
|
50 |
|
|
|
51 |
|
|
* tests/floodpingmux.c (net_test): Only call TNR_INIT() once.
|
52 |
|
|
Call TNR_OFF(); again after dumpstats() turned it on again.
|
53 |
|
|
Call TNR_ON/OFF() correctly.
|
54 |
|
|
|
55 |
|
|
* tests/autohost.inl (autohost_getresults): Add a missing
|
56 |
|
|
semicolon. Doh! Only a problem with realtime test harness
|
57 |
|
|
enabled.
|
58 |
|
|
|
59 |
|
|
2000-11-15 Hugo Tyson
|
60 |
|
|
|
61 |
|
|
* doc/host.txt: Updated.
|
62 |
|
|
|
63 |
|
|
2000-11-15 Hugo Tyson
|
64 |
|
|
|
65 |
|
|
* cdl/net_autotest.cdl: Build the new tests.
|
66 |
|
|
|
67 |
|
|
* tests/routeping.inl: New file: the meat of a testcase to check
|
68 |
|
|
that external networks are only accessible if we have added a
|
69 |
|
|
suitable route. This requires a further network called 10.0.3.x
|
70 |
|
|
attached to the machine that serves DHCP to eth0, and one called
|
71 |
|
|
10.0.4.x on the server for eth1. These can both be aliases for
|
72 |
|
|
loopback on the linux host if needs be.
|
73 |
|
|
|
74 |
|
|
* tests/route_none.c:
|
75 |
|
|
* tests/route_3.c:
|
76 |
|
|
* tests/route_4.c:
|
77 |
|
|
* tests/route_3_4.c:
|
78 |
|
|
New files: Various invocations of the above. These just make a
|
79 |
|
|
few #defines then #include "routeping.inl"
|
80 |
|
|
|
81 |
|
|
2000-11-10 Hugo Tyson
|
82 |
|
|
|
83 |
|
|
* tests/autohost.inl (autohost_init): Call the memory checking
|
84 |
|
|
init and finalization functions in the appropriate places.
|
85 |
|
|
|
86 |
|
|
* tests/memcheck.inl (RATIO): New file; check for mbuf &c leaks
|
87 |
|
|
(if the API is defined in network.h, so it it'll work with the 144
|
88 |
|
|
tarball). We allow either as much again or 15% of memory to be
|
89 |
|
|
used at the end of the test, for each of the 3 memory regions the
|
90 |
|
|
stack uses.
|
91 |
|
|
|
92 |
|
|
* tests/floodpingmux.c (net_test): Don't print out mbuf &c usage,
|
93 |
|
|
leave it up to the memory checking subsystem.
|
94 |
|
|
|
95 |
|
|
2000-11-10 Hugo Tyson
|
96 |
|
|
|
97 |
|
|
* host/obey.sh: Handle the new case of doing snmpwalk and
|
98 |
|
|
snmpstatus to the target. (SNMP_WALK)
|
99 |
|
|
|
100 |
|
|
* cdl/net_autotest.cdl: Build the new tests.
|
101 |
|
|
|
102 |
|
|
* host/snmpwalk.sh: New file: snmpwalk the target's public MIB and
|
103 |
|
|
check target status for the timeout. Much like the other cases.
|
104 |
|
|
|
105 |
|
|
* tests/snmpwalk.c: New file: do one snmpwalk session on each
|
106 |
|
|
interface.
|
107 |
|
|
|
108 |
|
|
* tests/snmpmulti.c: New file: ditto, 3 sessions per i/f.
|
109 |
|
|
|
110 |
|
|
* tests/snmppings.c: New file: ditto, 2 x snmp, plus some pinging
|
111 |
|
|
and flood pinging simulataneously.
|
112 |
|
|
|
113 |
|
|
2000-11-09 Hugo Tyson
|
114 |
|
|
|
115 |
|
|
* host/obey.sh: Handle the new case of flood pinging the
|
116 |
|
|
target. (FLOOD_PING)
|
117 |
|
|
|
118 |
|
|
* host/floodping.sh: New file: flood ping the target, with a
|
119 |
|
|
variable active/sleep ratio so that we can use this to perturb
|
120 |
|
|
other tests also. An suid executable "./_suping" is needed to be
|
121 |
|
|
able to flood ping automatically.
|
122 |
|
|
|
123 |
|
|
* cdl/net_autotest.cdl: Build the two new tests.
|
124 |
|
|
|
125 |
|
|
* tests/floodping.c: New file: ask the host to flood ping me, for
|
126 |
|
|
5 minutes in the usual manner.
|
127 |
|
|
|
128 |
|
|
* tests/floodpingmux.c: New file: as floodping.c and the target
|
129 |
|
|
floods the host in turn also.
|
130 |
|
|
|
131 |
|
|
* host/makefile: Build _suping: it must be set uid &c manually.
|
132 |
|
|
|
133 |
|
|
* host/_suping.c: New file: a tiny su root program to run ping
|
134 |
|
|
with real uid root (ping is suid root anyway) to allow us to flood
|
135 |
|
|
the target.
|
136 |
|
|
|
137 |
|
|
2000-11-08 Hugo Tyson
|
138 |
|
|
|
139 |
|
|
* tests/autohost.inl (XFAIL): Detect the configuration that means
|
140 |
|
|
simulated unreliable network is enabled. Send the XFAIL parameter
|
141 |
|
|
to the network testing server if so. Also do not check for the
|
142 |
|
|
count of pass messages required in the autohost_end() routine; we
|
143 |
|
|
expect them to go missing and/or there to be failures per se.
|
144 |
|
|
|
145 |
|
|
* host/obey.sh (XFAIL): Detect and pass through the XFAIL
|
146 |
|
|
parameter to indicate simulated unreliable network is enabled.
|
147 |
|
|
|
148 |
|
|
* host/tftpget.sh (XFAIL):
|
149 |
|
|
* host/tftpput.sh (XFAIL):
|
150 |
|
|
* host/slowping.sh (XFAIL): If XFAIL, do not report failures as
|
151 |
|
|
such; also echo the process ID ($$) in messages to help untangle
|
152 |
|
|
the interleaved status messages.
|
153 |
|
|
|
154 |
|
|
* host/sendack.sh (XFAIL): Try less zealously and moan less loudly
|
155 |
|
|
if failure is expected.
|
156 |
|
|
|
157 |
|
|
* doc/host.txt: Document XFAIL stuff.
|
158 |
|
|
|
159 |
|
|
2000-10-26 Hugo Tyson
|
160 |
|
|
|
161 |
|
|
* tests/slowping.c (net_test): New file:
|
162 |
|
|
* tests/slowpingmux.c (net_test): New file: simple test, the host
|
163 |
|
|
pings the target (a lot, 10x simultaneously), while the target
|
164 |
|
|
also pings the host in slowpingmux.
|
165 |
|
|
|
166 |
|
|
* host/slowping.sh (TARGET): New file: handle target side of ping
|
167 |
|
|
testing.
|
168 |
|
|
|
169 |
|
|
* cdl/net_autotest.cdl: Build the new tests.
|
170 |
|
|
|
171 |
|
|
2000-10-26 Hugo Tyson
|
172 |
|
|
|
173 |
|
|
* tests/tftp_serv.inl (do_tftp_tests): Fix typo in info printf;
|
174 |
|
|
nothing of substance.
|
175 |
|
|
|
176 |
|
|
2000-10-25 Hugo Tyson
|
177 |
|
|
|
178 |
|
|
* permtests/netauto_bootp.ptest: net with bootp only init.
|
179 |
|
|
* permtests/netauto_corrupt.ptest: net + 10% rx corruption.
|
180 |
|
|
* permtests/netauto_failrx.ptest: net + 10% rx discards.
|
181 |
|
|
* permtests/netauto_failtx.ptest: net + 10% tx discards.
|
182 |
|
|
* permtests/netauto_rt.ptest: net + snmp + realtime test.
|
183 |
|
|
* permtests/netauto_snmp.ptest: net + snmp.
|
184 |
|
|
* permtests/netauto_std.ptest: standard net config
|
185 |
|
|
New files; permtest configurations for farm testing.
|
186 |
|
|
|
187 |
|
|
2000-10-24 Hugo Tyson
|
188 |
|
|
|
189 |
|
|
* doc/host.txt: More info added; kept up to date.
|
190 |
|
|
|
191 |
|
|
2000-10-24 Hugo Tyson
|
192 |
|
|
|
193 |
|
|
* tests/tftp_serv.inl: New file, the guts of both tftp_serv_get.c
|
194 |
|
|
and tftp_serv_put.c removed to here, so that a number of tests can
|
195 |
|
|
be created to hit the server with different sizes of datafile.
|
196 |
|
|
This is the easiest way to test lots of different filesizes and
|
197 |
|
|
edge conditions; just replicate the testcase.
|
198 |
|
|
|
199 |
|
|
* tests/tftp_serv_put.c (FILESIZE):
|
200 |
|
|
* tests/tftp_serv_get.c (FILESIZE): Use "tftp_serv.inl" with a
|
201 |
|
|
coupla #defines for the op and the filesize to implement the test.
|
202 |
|
|
|
203 |
|
|
* tests/tftp_serv_g0.c: New: get zero and 1-byte datafiles.
|
204 |
|
|
* tests/tftp_serv_g1M.c: New: get 1Mb and 1Mb-1 datafiles.
|
205 |
|
|
* tests/tftp_serv_g512.c: New: get 512 and 513-byte datafiles.
|
206 |
|
|
* tests/tftp_serv_p0.c: New: put zero and 1-byte datafiles.
|
207 |
|
|
* tests/tftp_serv_p1M.c: New: put 1Mb and 1Mb-1 datafiles.
|
208 |
|
|
* tests/tftp_serv_p512.c: New: put 512 and 513-byte datafiles.
|
209 |
|
|
|
210 |
|
|
* cdl/net_autotest.cdl: Build all the new testcases to diddle
|
211 |
|
|
different file sizes.
|
212 |
|
|
|
213 |
|
|
* host/tftpput.sh (TARGET): Do not read back the file every time;
|
214 |
|
|
check the gotton file once at the end correctly; count up the
|
215 |
|
|
transfers for info.
|
216 |
|
|
|
217 |
|
|
* host/tftpget.sh (TARGET): Check the gotton file correctly; count
|
218 |
|
|
up the transfers for info.
|
219 |
|
|
|
220 |
|
|
2000-10-23 Hugo Tyson
|
221 |
|
|
|
222 |
|
|
* host/tftpdata.src: DELETED: we now make our own data files on
|
223 |
|
|
the fly.
|
224 |
|
|
|
225 |
|
|
* host/makefile (tmpfile): Build this. Also add a make clean.
|
226 |
|
|
|
227 |
|
|
* host/tmpfile.c (main): New file: builds to a simple executable
|
228 |
|
|
that makes a scratch file full of random data of the length
|
229 |
|
|
requested. A simple but order-sensitive checksum is appended,
|
230 |
|
|
though the testcase doesn't use this yet.
|
231 |
|
|
|
232 |
|
|
* tests/tftp_serv_put.c (do_tftp_tests):
|
233 |
|
|
* tests/tftp_serv_get.c (do_tftp_tests): Pass a filesize to the
|
234 |
|
|
test script; it will make a temp file accordingly.
|
235 |
|
|
|
236 |
|
|
* host/tftpput.sh:
|
237 |
|
|
* host/tftpget.sh: Parameterize these more so that they accept a
|
238 |
|
|
filesize; the data file is created with random data.
|
239 |
|
|
|
240 |
|
|
2000-10-20 Hugo Tyson
|
241 |
|
|
|
242 |
|
|
* doc/host.txt: New file. Details the host side code, scripts,
|
243 |
|
|
environment, tempfiles, conventions, output...
|
244 |
|
|
|
245 |
|
|
* doc/strategy.txt: New file. The original design notes.
|
246 |
|
|
|
247 |
|
|
* host/obey.sh: Correct typo and add . to the path; stupid
|
248 |
|
|
pedantic environment.
|
249 |
|
|
|
250 |
|
|
2000-10-20 Hugo Tyson
|
251 |
|
|
|
252 |
|
|
* tests/tftp_serv_get.c (net_test):
|
253 |
|
|
* tests/tftp_serv_put.c (net_test): Use the new API, and remember
|
254 |
|
|
how many host sessions we expected to invoke.
|
255 |
|
|
|
256 |
|
|
* tests/autohost.inl (autohost_end): New API to check counts of
|
257 |
|
|
PASS and FAIL statii from the hosts.
|
258 |
|
|
|
259 |
|
|
2000-10-19 Hugo Tyson
|
260 |
|
|
|
261 |
|
|
* Changelog: New file.
|
262 |
|
|
* cdl/net_autotest.cdl: New file.
|
263 |
|
|
* host/awaitorder.c: New file.
|
264 |
|
|
* host/makefile: New file.
|
265 |
|
|
* host/obey.sh: New file.
|
266 |
|
|
* host/sendack.sh: New file.
|
267 |
|
|
* host/tftpdata.src: New file.
|
268 |
|
|
* host/tftpget.sh: New file.
|
269 |
|
|
* host/tftpput.sh: New file.
|
270 |
|
|
* tests/autohost.inl: New file.
|
271 |
|
|
* tests/tftp_serv_get.c: New file.
|
272 |
|
|
* tests/tftp_serv_put.c: New file.
|
273 |
|
|
Indeed a new package, even. Documentation will be forthcoming.
|
274 |
|
|
|
275 |
|
|
//===========================================================================
|
276 |
|
|
// ####GPLCOPYRIGHTBEGIN####
|
277 |
|
|
// -------------------------------------------
|
278 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
279 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2009 Free Software Foundation, Inc.
|
280 |
|
|
//
|
281 |
|
|
// This program is free software; you can redistribute it and/or modify
|
282 |
|
|
// it under the terms of the GNU General Public License as published by
|
283 |
|
|
// the Free Software Foundation; either version 2 or (at your option) any
|
284 |
|
|
// later version.
|
285 |
|
|
//
|
286 |
|
|
// This program is distributed in the hope that it will be useful, but
|
287 |
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
288 |
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
289 |
|
|
// General Public License for more details.
|
290 |
|
|
//
|
291 |
|
|
// You should have received a copy of the GNU General Public License
|
292 |
|
|
// along with this program; if not, write to the
|
293 |
|
|
// Free Software Foundation, Inc., 51 Franklin Street,
|
294 |
|
|
// Fifth Floor, Boston, MA 02110-1301, USA.
|
295 |
|
|
// -------------------------------------------
|
296 |
|
|
// ####GPLCOPYRIGHTEND####
|
297 |
|
|
//===========================================================================
|