xref: /aosp_15_r20/external/curl/tests/data/test1238 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<testcase>
2*6236dae4SAndroid Build Coastguard Worker<info>
3*6236dae4SAndroid Build Coastguard Worker<keywords>
4*6236dae4SAndroid Build Coastguard WorkerTFTP
5*6236dae4SAndroid Build Coastguard WorkerTFTP RRQ
6*6236dae4SAndroid Build Coastguard Workertimeout
7*6236dae4SAndroid Build Coastguard WorkerFAILURE
8*6236dae4SAndroid Build Coastguard WorkerDELAY
9*6236dae4SAndroid Build Coastguard Worker</keywords>
10*6236dae4SAndroid Build Coastguard Worker</info>
11*6236dae4SAndroid Build Coastguard Worker
12*6236dae4SAndroid Build Coastguard Worker#
13*6236dae4SAndroid Build Coastguard Worker# Server-side
14*6236dae4SAndroid Build Coastguard Worker<reply>
15*6236dae4SAndroid Build Coastguard Worker<servercmd>
16*6236dae4SAndroid Build Coastguard Workerwritedelay: 2000
17*6236dae4SAndroid Build Coastguard Worker</servercmd>
18*6236dae4SAndroid Build Coastguard Worker# ~1200 bytes (so that they don't fit in two 512 byte chunks)
19*6236dae4SAndroid Build Coastguard Worker<data nocheck="yes">
20*6236dae4SAndroid Build Coastguard Worker012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
21*6236dae4SAndroid Build Coastguard Worker</data>
22*6236dae4SAndroid Build Coastguard Worker</reply>
23*6236dae4SAndroid Build Coastguard Worker
24*6236dae4SAndroid Build Coastguard Worker#
25*6236dae4SAndroid Build Coastguard Worker# Client-side
26*6236dae4SAndroid Build Coastguard Worker<client>
27*6236dae4SAndroid Build Coastguard Worker<server>
28*6236dae4SAndroid Build Coastguard Workertftp
29*6236dae4SAndroid Build Coastguard Worker</server>
30*6236dae4SAndroid Build Coastguard Worker# Always kill the TFTP server to not affect following tests, due
31*6236dae4SAndroid Build Coastguard Worker# to this test potentially keeping the TFTP server busy waiting
32*6236dae4SAndroid Build Coastguard Worker# for another 5 seconds after this test has already terminated.
33*6236dae4SAndroid Build Coastguard Worker# On some platforms and CI not enough time passes between this
34*6236dae4SAndroid Build Coastguard Worker# test and the next tests 1242 and 1243, causing them to fail.
35*6236dae4SAndroid Build Coastguard Worker<killserver>
36*6236dae4SAndroid Build Coastguard Workertftp
37*6236dae4SAndroid Build Coastguard Worker</killserver>
38*6236dae4SAndroid Build Coastguard Worker<name>
39*6236dae4SAndroid Build Coastguard Workerslow TFTP retrieve cancel due to -Y and -y
40*6236dae4SAndroid Build Coastguard Worker</name>
41*6236dae4SAndroid Build Coastguard Worker# if less than 1000 bytes/sec within 2 seconds, abort!
42*6236dae4SAndroid Build Coastguard Worker<command>
43*6236dae4SAndroid Build Coastguard Workertftp://%HOSTIP:%TFTPPORT//%TESTNUMBER -Y1000 -y2
44*6236dae4SAndroid Build Coastguard Worker</command>
45*6236dae4SAndroid Build Coastguard Worker</client>
46*6236dae4SAndroid Build Coastguard Worker
47*6236dae4SAndroid Build Coastguard Worker#
48*6236dae4SAndroid Build Coastguard Worker# Verify pseudo protocol after the test has been "shot"
49*6236dae4SAndroid Build Coastguard Worker<verify>
50*6236dae4SAndroid Build Coastguard Worker<strip>
51*6236dae4SAndroid Build Coastguard Worker^timeout = [5-6]$
52*6236dae4SAndroid Build Coastguard Worker</strip>
53*6236dae4SAndroid Build Coastguard Worker<protocol>
54*6236dae4SAndroid Build Coastguard Workeropcode = 1
55*6236dae4SAndroid Build Coastguard Workermode = octet
56*6236dae4SAndroid Build Coastguard Workertsize = 0
57*6236dae4SAndroid Build Coastguard Workerblksize = 512
58*6236dae4SAndroid Build Coastguard Workerfilename = /%TESTNUMBER
59*6236dae4SAndroid Build Coastguard Worker</protocol>
60*6236dae4SAndroid Build Coastguard Worker# 28 = CURLE_OPERATION_TIMEDOUT
61*6236dae4SAndroid Build Coastguard Worker<errorcode>
62*6236dae4SAndroid Build Coastguard Worker28
63*6236dae4SAndroid Build Coastguard Worker</errorcode>
64*6236dae4SAndroid Build Coastguard Worker</verify>
65*6236dae4SAndroid Build Coastguard Worker</testcase>
66