test1452: add telnet negotiation

Add a basic telnet server for negotiating some telnet options before
echoing back any data that's sent to it.

Closes #1645
This commit is contained in:
Max Dymond 2017-07-05 10:12:10 +01:00 committed by Daniel Stenberg
parent efedafe48a
commit 06a6feba9d
6 changed files with 552 additions and 4 deletions

View file

@ -155,7 +155,7 @@ test1424 test1425 test1426 \
test1428 test1429 test1430 test1431 test1432 test1433 test1434 test1435 \
test1436 test1437 test1438 test1439 test1440 test1441 test1442 test1443 \
test1444 test1445 test1446 test1450 test1451 \
\
test1452 \
test1500 test1501 test1502 test1503 test1504 test1505 test1506 test1507 \
test1508 test1509 test1510 test1511 test1512 test1513 test1514 test1515 \
test1516 test1517 \

41
tests/data/test1452 Executable file
View file

@ -0,0 +1,41 @@
<testcase>
<info>
<keywords>
TELNET
UPLOAD
</keywords>
</info>
#
# Server-side
<reply>
<data>
</data>
</reply>
#
# Client-side
<client>
<server>
telnet
</server>
<features>
telnet
</features>
<name>
Basic TELNET negotiation
</name>
<stdin>
test1452
</stdin>
<command>
telnet://%HOSTIP:%NEGTELNETPORT --upload-file -
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<stdout>test1452</stdout>
</verify>
</testcase>