Testsuite: move testcase (requires plaintext authenticator)
[exim.git] / test / scripts / 0000-Basic / 0373
1 # ${readsocket (Unix domain and IPv4)
2 need_ipv4
3 #
4 exim -be
5 1 >>${readsocket{DIR/test-socket}{QUERY-1\n}}<<
6 2 ${if exists{DIR/test-socket}\
7   {>>${readsocket{DIR/test-socket}{QUERY-1\n}}<<}\
8   {++ no socket ++}} 
9 ****
10 #
11 # Note the difference between:
12 #   >*eof      => close the connection
13 #   *eof       => expect to read EOF from client
14 #
15 server DIR/test-socket 9
16 QUERY-1
17 >LF>ANSWER-1
18 >*eof
19 QUERY-2
20 >>ANSWER-2
21 >*eof
22 QUERY-3
23 >LF>ANSWER-3
24 >*eof
25 QUERY-4
26 >LF>ANSWER-4
27 >*eof
28 >>ANSWER-5
29 >*eof
30 *sleep 1
31 >*eof
32 >*eof
33 QUERY-8
34 *sleep 2
35 *eof
36 QUERY-9
37 *sleep 2
38 ****
39 millisleep 500
40 exim -be
41 1 >>${readsocket{DIR/test-socket}{QUERY-1\n}}<<
42 2 >>${readsocket{DIR/test-socket}{QUERY-2\n}}<<
43 3 >>${readsocket{DIR/test-socket}{QUERY-3\n}{2s}{*EOL*}}<<
44 4 >>${readsocket{DIR/test-socket}{QUERY-4\n}{2s}{*EOL*}{sock error}}<<
45 5 >>${readsocket{DIR/test-socket}{}}<<
46 6 >>${readsocket{DIR/test-socket}{QUERY-6\n}}<<
47 7 >>${readsocket{DIR/test-socket}{QUERY-7\n}{1s}{}{sock error}}<<
48 8 >>${readsocket{DIR/test-socket}{QUERY-8\n}{1s}}<<
49 9 >>${readsocket{DIR/test-socket}{QUERY-9\n}{1s}{}{sock error}}<<
50 ****
51 server DIR/test-socket
52 QUERY-ACL
53 *sleep 3
54 ****
55 exim -odq -bs -oMa V4NET.0.0.0
56 quit
57 ****
58 #
59 # Tests of IPv4 sockets
60 #
61 server PORT_S 10
62 QUERY-1
63 >LF>ANSWER-1
64 >*eof
65 QUERY-2
66 >>ANSWER-2
67 >*eof
68 QUERY-3
69 >LF>ANSWER-3
70 >*eof
71 QUERY-4
72 >LF>ANSWER-4
73 >*eof
74 >>ANSWER-5
75 >*eof
76 *sleep 1
77 >*eof
78 >*eof
79 QUERY-8
80 *sleep 2
81 *eof
82 QUERY-9
83 *sleep 2
84 *eof
85 QUERY-10
86 >LF>ANSWER-10
87 >*eof
88 ****
89 millisleep 500
90 exim -be
91 1 >>${readsocket{inet:thisloop:PORT_S}{QUERY-1\n}}<<
92 2 >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-2\n}}<<
93 3 >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-3\n}{2s}{*EOL*}}<<
94 4 >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-4\n}{2s}{*EOL*}{sock error}}<<
95 5 >>${readsocket{inet:127.0.0.1:PORT_S}{}}<<
96 6 >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-6\n}}<<
97 7 >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-7\n}{1s}{}{sock error}}<<
98 8 >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-8\n}{1s}}<<
99 9 >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-9\n}{1s}{}{sock error}}<<
100 10 >>${readsocket{inet:badloop:PORT_S}{QUERY-10\n}}<<
101 ****