xref: /aosp_15_r20/external/curl/tests/data/test1007 (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 WRQ
6*6236dae4SAndroid Build Coastguard WorkerFAILURE
7*6236dae4SAndroid Build Coastguard Worker</keywords>
8*6236dae4SAndroid Build Coastguard Worker</info>
9*6236dae4SAndroid Build Coastguard Worker
10*6236dae4SAndroid Build Coastguard Worker#
11*6236dae4SAndroid Build Coastguard Worker# Client-side
12*6236dae4SAndroid Build Coastguard Worker<client>
13*6236dae4SAndroid Build Coastguard Worker<server>
14*6236dae4SAndroid Build Coastguard Workertftp
15*6236dae4SAndroid Build Coastguard Worker</server>
16*6236dae4SAndroid Build Coastguard Worker<name>
17*6236dae4SAndroid Build Coastguard WorkerTFTP send with invalid permission on server
18*6236dae4SAndroid Build Coastguard Worker</name>
19*6236dae4SAndroid Build Coastguard Worker<command>
20*6236dae4SAndroid Build Coastguard Worker-T %LOGDIR/test%TESTNUMBER.txt tftp://%HOSTIP:%TFTPPORT//invalid-file -sS
21*6236dae4SAndroid Build Coastguard Worker</command>
22*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/test%TESTNUMBER.txt">
23*6236dae4SAndroid Build Coastguard WorkerThis data will not be sent
24*6236dae4SAndroid Build Coastguard Worker</file>
25*6236dae4SAndroid Build Coastguard Worker</client>
26*6236dae4SAndroid Build Coastguard Worker
27*6236dae4SAndroid Build Coastguard Worker#
28*6236dae4SAndroid Build Coastguard Worker# Verify pseudo protocol after the test has been "shot"
29*6236dae4SAndroid Build Coastguard Worker<verify>
30*6236dae4SAndroid Build Coastguard Worker<errorcode>
31*6236dae4SAndroid Build Coastguard Worker69
32*6236dae4SAndroid Build Coastguard Worker</errorcode>
33*6236dae4SAndroid Build Coastguard Worker<strip>
34*6236dae4SAndroid Build Coastguard Worker^timeout = [5-6]$
35*6236dae4SAndroid Build Coastguard Worker</strip>
36*6236dae4SAndroid Build Coastguard Worker<protocol>
37*6236dae4SAndroid Build Coastguard Workeropcode = 2
38*6236dae4SAndroid Build Coastguard Workermode = octet
39*6236dae4SAndroid Build Coastguard Workertsize = 27
40*6236dae4SAndroid Build Coastguard Workerblksize = 512
41*6236dae4SAndroid Build Coastguard Workerfilename = /invalid-file
42*6236dae4SAndroid Build Coastguard Worker</protocol>
43*6236dae4SAndroid Build Coastguard Worker<stderr mode="text">
44*6236dae4SAndroid Build Coastguard Workercurl: (69) TFTP: Access Violation
45*6236dae4SAndroid Build Coastguard Worker</stderr>
46*6236dae4SAndroid Build Coastguard Worker</verify>
47*6236dae4SAndroid Build Coastguard Worker</testcase>
48