Debian Codegraph @

test/rist/meson.build

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # librist. Copyright (c) 2020 SipRadius LLC. All right reserved.
2 # SPDX-License-Identifier: BSD-2-Clause
3
4 subdir('unit')
5
6 extra_sources = ['../../contrib/time-shim.c','../../contrib/pthread-shim.c']
7
8 if filter_obj
9 extra_sources += [objcopy_fake_file ]
10 endif
11
12
13 test_send_receive = executable('test_send_receive',
14 'test_send_receive.c',
15 extra_sources,
16 include_directories: inc,
17 link_with: librist,
18 dependencies: [
19 threads,
20 tools_dependencies,
21 stdatomic_dependency
22 ])
23
24 test_sender_restart = executable('test_sender_restart',
25 'test_sender_restart.c',
26 extra_sources,
27 include_directories: inc,
28 link_with: librist,
29 dependencies: [
30 threads,
31 tools_dependencies,
32 stdatomic_dependency
33 ])
34
35 test_reflector = executable('test_reflector',
36 'test_reflector.c',
37 extra_sources,
38 include_directories: inc,
39 link_with: librist,
40 dependencies: [
41 threads,
42 tools_dependencies,
43 stdatomic_dependency
44 ])
45
46 # issue #188 coverage: listener-side cname re-association. Three
47 # modes (plaintext / psk / srp) exercise the SRP-only gate: only an
48 # authenticated per-peer SRP session may migrate an existing peer
49 # record onto a new source tuple.
50 test_nat_port_rebind = executable('test_nat_port_rebind',
51 'test_nat_port_rebind.c',
52 extra_sources,
53 include_directories: inc,
54 link_with: librist,
55 dependencies: [
56 threads,
57 tools_dependencies,
58 stdatomic_dependency
59 ])
60
61 # Security regression guard: a shared-PSK peer that forges the victim's
62 # cname must NOT be absorbed into the victim's peer record (cname is not
63 # a per-peer secret under PSK).
64 test_psk_cname_hijack = executable('test_psk_cname_hijack',
65 'test_psk_cname_hijack.c',
66 extra_sources,
67 include_directories: inc,
68 link_with: librist,
69 dependencies: [
70 threads,
71 tools_dependencies,
72 stdatomic_dependency
73 ])
74
75 # Multipath safety: two same-cname bonded paths must not be merged by
76 # the cname re-association, and a healthy path must not rebind.
77 test_multipath_cname = executable('test_multipath_cname',
78 'test_multipath_cname.c',
79 extra_sources,
80 include_directories: inc,
81 link_with: librist,
82 dependencies: [
83 threads,
84 tools_dependencies,
85 stdatomic_dependency
86 ])
87
88 # Multipath safety: one bonded leg rebinds mid-stream while the other
89 # stays alive; the survivor must be undisturbed and the stream must not
90 # stall.
91 test_multipath_leg_rebind = executable('test_multipath_leg_rebind',
92 'test_multipath_leg_rebind.c',
93 extra_sources,
94 include_directories: inc,
95 link_with: librist,
96 dependencies: [
97 threads,
98 tools_dependencies,
99 stdatomic_dependency
100 ])
101
102 # issue #188 coverage: receiver-caller socket rebind on session
103 # silence (plaintext + shared-PSK; SRP uses listener-side path).
104 test_caller_socket_rebind = executable('test_caller_socket_rebind',
105 'test_caller_socket_rebind.c',
106 extra_sources,
107 include_directories: inc,
108 link_with: librist,
109 dependencies: [
110 threads,
111 tools_dependencies,
112 stdatomic_dependency
113 ])
114
115
116 ###Sender restart test (bug fix verification)
117 test('Sender restart test', test_sender_restart, args: ['5'], suite: ['regression', 'sender'])
118
119 ###issue #188 NAT source-port rebind recovery
120 test('NAT port rebind cname re-association (plaintext gate refuses)', test_nat_port_rebind,
121 suite: ['regression', 'nat'], timeout: 90)
122 test('NAT port rebind cname re-association (psk gate refuses)', test_nat_port_rebind,
123 args: ['psk'], suite: ['regression', 'nat'], timeout: 90)
124 test('Receiver caller socket rebind on silence (plaintext)', test_caller_socket_rebind,
125 suite: ['regression', 'nat'], timeout: 90)
126 test('Receiver caller socket rebind on silence (psk)', test_caller_socket_rebind,
127 args: ['psk'], suite: ['regression', 'nat'], timeout: 90)
128 # PSK cname forgery must not take over an existing peer record.
129 test('NAT rebind PSK cname hijack is refused', test_psk_cname_hijack,
130 suite: ['regression', 'nat', 'security'], timeout: 90)
131 # Two bonded same-cname paths must stay distinct and not rebind.
132 test('Multipath same-cname paths stay distinct (psk)', test_multipath_cname,
133 suite: ['regression', 'nat', 'multipath'], timeout: 90)
134 if have_srp
135 # Positive path: an authenticated SRP caller IS migrated onto the
136 # new source tuple after a NAT source-port rebind.
137 test('NAT port rebind cname re-association (srp migration)', test_nat_port_rebind,
138 args: ['srp'], suite: ['regression', 'nat', 'srp'], timeout: 120)
139 # Two bonded SRP paths with the SAME username/password + cname must
140 # stay distinct even though the SRP gate lets re-association fire.
141 test('Multipath same-cname paths stay distinct (srp)', test_multipath_cname,
142 args: ['srp'], suite: ['regression', 'nat', 'multipath', 'srp'], timeout: 120)
143 # One bonded SRP leg rebinds mid-stream while the other stays alive.
144 test('Multipath one leg rebinds mid-stream (srp)', test_multipath_leg_rebind,
145 suite: ['regression', 'nat', 'multipath', 'srp'], timeout: 120)
146 endif
147
148 ###?profile= URL override tests (rist_*_create profile != URL profile)
149 test('?profile=2 URL overrides Main to Advanced',
150 test_send_receive,
151 args: ['1', 'rist://@127.0.0.1:7080?profile=2', 'rist://127.0.0.1:7080?profile=2', '0'],
152 suite: ['url-profile', 'advanced', 'unicast', 'server'])
153 test('?profile=2 URL overrides Main to Advanced + 10% loss',
154 test_send_receive,
155 args: ['1', 'rist://@127.0.0.1:7082?profile=2&rtt-max=10&rtt-min=1', 'rist://127.0.0.1:7082?profile=2&rtt-max=10&rtt-min=1', '10'],
156 suite: ['url-profile', 'advanced', 'unicast', 'server'])
157 test('?profile=1 URL overrides Advanced to Main',
158 test_send_receive,
159 args: ['2', 'rist://@127.0.0.1:7084?profile=1', 'rist://127.0.0.1:7084?profile=1', '0'],
160 suite: ['url-profile', 'main', 'unicast', 'server'])
161 test('?profile=2 URL overrides Simple to Advanced',
162 test_send_receive,
163 args: ['0', 'rist://@127.0.0.1:7086?profile=2', 'rist://127.0.0.1:7086?profile=2', '0'],
164 suite: ['url-profile', 'advanced', 'unicast', 'server'])
165
166 ###Cross-profile interop (TR-06-3 Section 9): mismatched sender/receiver profiles
167 ### on one flow. Exercises the Advanced sender's Main-Profile fallback (sends
168 ### Main-conformant media until the peer advertises I=1) and the Advanced
169 ### receiver's mid-stream framing-transition reset.
170 test('Interop - Advanced sender to Main receiver',
171 test_send_receive,
172 args: ['1', 'rist://@127.0.0.1:7090?profile=1', 'rist://127.0.0.1:7090?profile=2', '0'],
173 suite: ['interop', 'advanced', 'main', 'unicast'])
174 test('Interop - Advanced sender to Main receiver + 10% loss',
175 test_send_receive,
176 args: ['1', 'rist://@127.0.0.1:7092?profile=1&rtt-max=10&rtt-min=1', 'rist://127.0.0.1:7092?profile=2&rtt-max=10&rtt-min=1', '10'],
177 suite: ['interop', 'advanced', 'main', 'unicast'])
178 test('Interop - Main sender to Advanced receiver',
179 test_send_receive,
180 args: ['2', 'rist://@127.0.0.1:7094?profile=2', 'rist://127.0.0.1:7094?profile=1', '0'],
181 suite: ['interop', 'advanced', 'main', 'unicast'])
182 test('Interop - Main sender to Advanced receiver + 10% loss',
183 test_send_receive,
184 args: ['2', 'rist://@127.0.0.1:7096?profile=2&rtt-max=10&rtt-min=1', 'rist://127.0.0.1:7096?profile=1&rtt-max=10&rtt-min=1', '10'],
185 suite: ['interop', 'advanced', 'main', 'unicast'])
186
187 ###Reflector tests
188 test('Reflector functionality', test_reflector, suite: ['main', 'reflector'])
189
190 ###Simple profile tests
191 #Unicast
192 test('Simple profile unicast', test_send_receive, args: ['0', 'rist://@127.0.0.1:1234', 'rist://127.0.0.1:1234', '0'], suite: ['simple', 'unicast'])
193 test('Simple profile unicast packet loss 10%', test_send_receive, args: ['0', 'rist://@127.0.0.1:2234', 'rist://127.0.0.1:2234', '10'],suite: ['simple', 'unicast'])
194 test('Simple profile unicast packet loss 25%', test_send_receive, args: ['0', 'rist://@127.0.0.1:3234', 'rist://127.0.0.1:3234', '25'],suite: ['simple', 'unicast'])
195 if (host_machine.system() != 'darwin')
196 #Multicast
197 test('Simple profile multicast', test_send_receive, args: ['0', 'rist://@239.0.0.1:1236?rtt-max=10&rtt-min=1', 'rist://239.0.0.1:1236?rtt-max=10&rtt-min=1', '0'],suite: ['simple', 'multicast'])
198 test('Simple profile multicast packet loss 10%', test_send_receive, args: ['0', 'rist://@239.0.0.2:2236?rtt-max=10&rtt-min=1', 'rist://239.0.0.2:2236?rtt-max=10&rtt-min=1', '10'],suite: ['simple', 'multicast'])
199 test('Simple profile multicast packet loss 25%', test_send_receive, args: ['0', 'rist://@239.0.0.3:3236?rtt-max=10&rtt-min=1', 'rist://239.0.0.3:3236?rtt-max=10&rtt-min=1', '25'],suite: ['simple', 'multicast'])
200 endif
201
202 ###Main profile tests:
203 #Null Packet Deletion
204 test('Main profile NPD receive server mode, sender client mode', test_send_receive, args: ['1', 'rist://@127.0.0.1:3501?rtt-max=10&rtt-min=1', 'rist://127.0.0.1:3501?rtt-max=10&rtt-min=1', '0', '1'], suite: ['main', 'unicast', 'server', 'NPD'])
205 test('Main profile NPD receive client mode, sender server mode', test_send_receive, args: ['1', 'rist://127.0.0.1:3502?rtt-max=10&rtt-min=1', 'rist://@127.0.0.1:3502?rtt-max=10&rtt-min=1', '0', '1'], suite: ['main', 'unicast', 'client', 'NPD'])
206 #Sender connecting to receiver
207 test('Main profile receive server mode, sender client mode', test_send_receive, args: ['1', 'rist://@127.0.0.1:4001?rtt-max=10&rtt-min=1', 'rist://127.0.0.1:4001?rtt-max=10&rtt-min=1', '0'],suite: ['main', 'unicast', 'server'])
208 test('Main profile receive server mode, sender client mode packet loss 10%', test_send_receive, args: ['1', 'rist://@127.0.0.1:4002?rtt-max=10&rtt-min=1', 'rist://127.0.0.1:4002?rtt-max=10&rtt-min=1', '10'],suite: ['main', 'unicast', 'server'])
209 test('Main profile receive server mode, sender client mode packet loss 25%', test_send_receive, args: ['1', 'rist://@127.0.0.1:4003?rtt-max=10&rtt-min=1', 'rist://127.0.0.1:4003?rtt-max=10&rtt-min=1', '25'],suite: ['main', 'unicast', 'server'])
210 #Receiver connecting to sender
211 test('Main profile receive client mode, sender server mode', test_send_receive, args: ['1', 'rist://127.0.0.1:5001?rtt-max=10&rtt-min=1', 'rist://@127.0.0.1:5001?rtt-max=10&rtt-min=1', '0'],suite: ['main', 'unicast', 'client'])
212 test('Main profile receive client mode, sender server mode packet loss 10%', test_send_receive, args: ['1', 'rist://127.0.0.1:5002?rtt-max=10&rtt-min=1', 'rist://@127.0.0.1:5002?rtt-max=10&rtt-min=1', '10'],suite: ['main', 'unicast', 'client'])
213 test('Main profile receive client mode, sender server mode packet loss 25%', test_send_receive, args: ['1', 'rist://127.0.0.1:5003?rtt-max=10&rtt-min=1', 'rist://@127.0.0.1:5003?rtt-max=10&rtt-min=1', '25'],suite: ['main', 'unicast', 'client'])
214 #Encryption: TODO
215 test('Main profile encryption receive server mode, sender client mode', test_send_receive, args: ['1', 'rist://@127.0.0.1:6001?secret=12345678&aes-type=128', 'rist://127.0.0.1:6001?secret=12345678&aes-type=128', '0'],suite: ['main', 'unicast', 'server', 'encryption'])
216 test('Main profile encryption receive client mode, sender server mode ', test_send_receive, args: ['1', 'rist://127.0.0.1:6002?secret=12345678&aes-type=128', 'rist://@127.0.0.1:6002?secret=12345678&aes-type=128', '0'],suite: ['main', 'unicast', 'client', 'encryption'])
217 test('Main profile encryption receive client mode, sender server mode AES256 ', test_send_receive, args: ['1', 'rist://127.0.0.1:6007?secret=12345678&aes-type=256', 'rist://@127.0.0.1:6007?secret=12345678&aes-type=256', '0'],suite: ['main', 'unicast', 'client', 'encryption'])
218 #Caller-controlled seq (RIST_DATA_FLAGS_USE_SEQ) passthrough
219 test('Main profile USE_SEQ passthrough', test_send_receive, args: ['1', 'rist://@127.0.0.1:6020?rtt-max=10&rtt-min=1', 'rist://127.0.0.1:6020?rtt-max=10&rtt-min=1', '0', '0', '1'], suite: ['main', 'unicast', 'use_seq'])
220 test('Main profile USE_SEQ passthrough 10% loss', test_send_receive, args: ['1', 'rist://@127.0.0.1:6021?rtt-max=10&rtt-min=1', 'rist://127.0.0.1:6021?rtt-max=10&rtt-min=1', '10', '0', '1'], suite: ['main', 'unicast', 'use_seq'])
221 ###Advanced profile tests (VSF TR-06-3):
222 test('Advanced profile receive server mode, sender client mode', test_send_receive, args: ['2', 'rist://@127.0.0.1:7001?rtt-max=10&rtt-min=1', 'rist://127.0.0.1:7001?rtt-max=10&rtt-min=1', '0'],suite: ['advanced', 'unicast', 'server'])
223 test('Advanced profile receive server mode, sender client mode packet loss 10%', test_send_receive, args: ['2', 'rist://@127.0.0.1:7002?rtt-max=10&rtt-min=1', 'rist://127.0.0.1:7002?rtt-max=10&rtt-min=1', '10'],suite: ['advanced', 'unicast', 'server'])
224 test('Advanced profile receive client mode, sender server mode', test_send_receive, args: ['2', 'rist://127.0.0.1:7003?rtt-max=10&rtt-min=1', 'rist://@127.0.0.1:7003?rtt-max=10&rtt-min=1', '0'],suite: ['advanced', 'unicast', 'client'])
225 test('Advanced profile receive client mode, sender server mode packet loss 10%', test_send_receive, args: ['2', 'rist://127.0.0.1:7004?rtt-max=10&rtt-min=1', 'rist://@127.0.0.1:7004?rtt-max=10&rtt-min=1', '10'],suite: ['advanced', 'unicast', 'client'])
226
227 ###Phase C: Native control plane, 32-bit seq, Type 8 wrapping
228 test('Advanced profile server mode packet loss 25% (native NACK)', test_send_receive, args: ['2', 'rist://@127.0.0.1:7010?rtt-max=10&rtt-min=1', 'rist://127.0.0.1:7010?rtt-max=10&rtt-min=1', '25'],suite: ['advanced', 'unicast', 'server', 'phase-c'])
229 test('Advanced profile client mode packet loss 25% (native NACK)', test_send_receive, args: ['2', 'rist://127.0.0.1:7011?rtt-max=10&rtt-min=1', 'rist://@127.0.0.1:7011?rtt-max=10&rtt-min=1', '25'],suite: ['advanced', 'unicast', 'client', 'phase-c'])
230
231 ###Phase D1: PSK encryption (AES-CTR, mode 1)
232 test('Advanced profile encryption server mode AES128', test_send_receive, args: ['2', 'rist://@127.0.0.1:7020?secret=12345678&aes-type=128', 'rist://127.0.0.1:7020?secret=12345678&aes-type=128', '0'],suite: ['advanced', 'unicast', 'server', 'encryption', 'phase-d1'])
233 test('Advanced profile encryption client mode AES128', test_send_receive, args: ['2', 'rist://127.0.0.1:7021?secret=12345678&aes-type=128', 'rist://@127.0.0.1:7021?secret=12345678&aes-type=128', '0'],suite: ['advanced', 'unicast', 'client', 'encryption', 'phase-d1'])
234 test('Advanced profile encryption server mode AES256', test_send_receive, args: ['2', 'rist://@127.0.0.1:7022?secret=12345678&aes-type=256', 'rist://127.0.0.1:7022?secret=12345678&aes-type=256', '0'],suite: ['advanced', 'unicast', 'server', 'encryption', 'phase-d1'])
235 test('Advanced profile encryption server mode AES128 + 10% loss', test_send_receive, args: ['2', 'rist://@127.0.0.1:7023?secret=12345678&aes-type=128', 'rist://127.0.0.1:7023?secret=12345678&aes-type=128', '10'],suite: ['advanced', 'unicast', 'server', 'encryption', 'phase-d1'])
236 test('Advanced profile encryption mismatch (should fail)', test_send_receive, args: ['2', 'rist://@127.0.0.1:7030?secret=12345678&aes-type=128', 'rist://127.0.0.1:7030', '0'], should_fail: true)
237 test('Advanced profile encryption mismatch reverse (should fail)', test_send_receive, args: ['2', 'rist://@127.0.0.1:7031', 'rist://127.0.0.1:7031?secret=12345678&aes-type=128', '0'], should_fail: true)
238
239 ###Flow ID: stream-id via virt-dst-port on native AP Type 5
240 test('Advanced profile Flow ID server mode virt-dst-port', test_send_receive, args: ['2', 'rist://@127.0.0.1:7040?virt-dst-port=5000', 'rist://127.0.0.1:7040?virt-dst-port=5000', '0'],suite: ['advanced', 'unicast', 'server', 'flow-id'])
241 test('Advanced profile Flow ID client mode virt-dst-port', test_send_receive, args: ['2', 'rist://127.0.0.1:7041?virt-dst-port=5000', 'rist://@127.0.0.1:7041?virt-dst-port=5000', '0'],suite: ['advanced', 'unicast', 'client', 'flow-id'])
242
243 ###Phase D4: Flow Attribute messages (CI=0x8001)
244 test('Advanced profile Flow Attribute server mode', test_send_receive, args: ['2', 'rist://@127.0.0.1:7060?rtt-max=10&rtt-min=1', 'rist://127.0.0.1:7060?rtt-max=10&rtt-min=1', '0', '0', '0', '1'],suite: ['advanced', 'unicast', 'server', 'flow-attr'])
245 test('Advanced profile Flow Attribute client mode', test_send_receive, args: ['2', 'rist://127.0.0.1:7061?rtt-max=10&rtt-min=1', 'rist://@127.0.0.1:7061?rtt-max=10&rtt-min=1', '0', '0', '0', '1'],suite: ['advanced', 'unicast', 'client', 'flow-attr'])
246
247 ###Phase D6: LZ4 payload compression
248 test('Advanced profile LZ4 compression server mode', test_send_receive, args: ['2', 'rist://@127.0.0.1:7050', 'rist://127.0.0.1:7050?compression=1', '0'],suite: ['advanced', 'unicast', 'server', 'lz4'])
249 test('Advanced profile LZ4 compression client mode', test_send_receive, args: ['2', 'rist://127.0.0.1:7051', 'rist://@127.0.0.1:7051?compression=1', '0'],suite: ['advanced', 'unicast', 'client', 'lz4'])
250 test('Advanced profile LZ4 compression + 10% loss', test_send_receive, args: ['2', 'rist://@127.0.0.1:7052', 'rist://127.0.0.1:7052?compression=1', '10'],suite: ['advanced', 'unicast', 'server', 'lz4'])
251 test('Advanced profile LZ4 + AES128 server mode', test_send_receive, args: ['2', 'rist://@127.0.0.1:7053?secret=12345678&aes-type=128', 'rist://127.0.0.1:7053?secret=12345678&aes-type=128&compression=1', '0'],suite: ['advanced', 'unicast', 'server', 'lz4', 'encryption'])
252
253 ###SRP authentication (Advanced Profile)
254 if have_srp
255 test('Advanced profile SRP auth server mode AES128', test_send_receive, args: ['2', 'rist://@127.0.0.1:7070?secret=12345678&aes-type=128&username=testuser&password=testpassword', 'rist://127.0.0.1:7070?secret=12345678&aes-type=128&username=testuser&password=testpassword', '0'],suite: ['advanced', 'unicast', 'server', 'encryption', 'srp'], should_fail: false)
256 test('Advanced profile SRP auth client mode AES128', test_send_receive, args: ['2', 'rist://127.0.0.1:7071?secret=12345678&aes-type=128&username=testuser&password=testpassword', 'rist://@127.0.0.1:7071?secret=12345678&aes-type=128&username=testuser&password=testpassword', '0'],suite: ['advanced', 'unicast', 'client', 'encryption', 'srp'], should_fail: false)
257 test('Advanced profile SRP auth client no SRP (should fail)', test_send_receive, args: ['2', 'rist://127.0.0.1:7072?secret=12345678&aes-type=128', 'rist://@127.0.0.1:7072?secret=12345678&aes-type=128&username=testuser&password=testpassword', '0'], suite: ['advanced', 'unicast', 'server', 'encryption', 'srp'], should_fail: true)
258 test('Advanced profile SRP auth password mismatch (should fail)', test_send_receive, args: ['2', 'rist://127.0.0.1:7073?secret=12345678&aes-type=128&username=testuser&password=wrongpassword', 'rist://@127.0.0.1:7073?secret=12345678&aes-type=128&username=testuser&password=testpassword', '0'],suite: ['advanced', 'unicast', 'server', 'encryption', 'srp'], should_fail: true)
259 endif
260
261 #Encryption tests where 1 side has enabled encryption these should fail
262 test('Main profile encryption receive server mode unencrypted, sender client mode', test_send_receive, args: ['1', 'rist://@127.0.0.1:6003', 'rist://127.0.0.1:6003?secret=12345678&aes-type=128', '0'], should_fail: true)
263 test('Main profile encryption receive server mode, sender client mode unencrypted', test_send_receive, args: ['1', 'rist://@127.0.0.1:6004?secret=12345678&aes-type=128', 'rist://127.0.0.1:6004', '0'], should_fail: true)
264 test('Main profile encryption client mode unencrypted, sender server mode', test_send_receive, args: ['1', 'rist://127.0.0.1:6005', 'rist://@127.0.0.1:6005?secret=12345678&aes-type=128', '0'], should_fail: true)
265 test('Main profile encryption client mode, sender server mode unencrypted', test_send_receive, args: ['1', 'rist://127.0.0.1:6006?secret=12345678&aes-type=128', 'rist://@127.0.0.1:6006', '0'], should_fail: true)
266 #Test SRP Auth
267 if have_srp
268 test('Main profile encryption receive client mode, sender server mode, SRP auth', test_send_receive, args: ['1', 'rist://127.0.0.1:6008?secret=12345678&aes-type=128&username=testuser&password=testpassword', 'rist://@127.0.0.1:6008?secret=12345678&aes-type=128&username=testuser&password=testpassword', '0'],suite: ['main', 'unicast', 'server', 'encryption', 'srp'], should_fail: false)
269 test('Main profile encryption receive client mode, sender server mode, SRP auth, client no SRP', test_send_receive, args: ['1', 'rist://127.0.0.1:6009?secret=12345678&aes-type=128', 'rist://@127.0.0.1:6009?secret=12345678&aes-type=128&username=testuser&password=testpassword', '0'], suite: ['main', 'unicast', 'server', 'encryption', 'srp'], should_fail: true)
270 test('Main profile encryption receive client mode, sender server mode, SRP auth, server no SRP', test_send_receive, args: ['1', 'rist://127.0.0.1:6010?secret=12345678&aes-type=128&username=testuser&password=testpassword', 'rist://@127.0.0.1:6010?secret=12345678&aes-type=128', '0'], suite: ['main', 'unicast', 'server', 'encryption', 'srp'], should_fail: true)
271 test('Main profile encryption receive client mode, sender server mode, SRP auth, password mismatch', test_send_receive, args: ['1', 'rist://127.0.0.1:6011?secret=12345678&aes-type=128&username=testuser&password=wrongpassword', 'rist://@127.0.0.1:6011?secret=12345678&aes-type=128&username=testuser&password=testpassword', '0'],suite: ['main', 'unicast', 'server', 'encryption', 'srp'], should_fail: true)
272 endif