Lines Matching refs:env
45 def _class_scope(self, env, httpd, nghttpx): argument
46 if env.have_h3():
52 def _class_scope(self, env, httpd): argument
54 env.make_data_file(indir=indir, fname="data-10k", fsize=10*1024)
55 env.make_data_file(indir=indir, fname="data-100k", fsize=100*1024)
56 env.make_data_file(indir=indir, fname="data-1m", fsize=1024*1024)
57 env.make_data_file(indir=indir, fname="data-10m", fsize=10*1024*1024)
58 env.make_data_file(indir=indir, fname="data-50m", fsize=50*1024*1024)
62 def test_02_01_download_1(self, env: Env, httpd, nghttpx, repeat, proto):
63 if proto == 'h3' and not env.have_h3():
65 curl = CurlClient(env=env)
72 def test_02_02_download_2(self, env: Env, httpd, nghttpx, repeat, proto):
73 if proto == 'h3' and not env.have_h3():
75 curl = CurlClient(env=env)
82 def test_02_03_download_sequential(self, env: Env,
84 if proto == 'h3' and not env.have_h3():
87 curl = CurlClient(env=env)
94 def test_02_04_download_parallel(self, env: Env,
96 if proto == 'h3' and not env.have_h3():
100 curl = CurlClient(env=env)
115 def test_02_05_download_many_sequential(self, env: Env,
117 if proto == 'h3' and not env.have_h3():
119 if proto == 'h3' and env.curl_uses_lib('msh3'):
122 curl = CurlClient(env=env)
135 def test_02_06_download_many_parallel(self, env: Env,
137 if proto == 'h3' and not env.have_h3():
141 curl = CurlClient(env=env)
150 def test_02_07_download_reuse(self, env: Env,
152 if proto == 'h3' and not env.have_h3():
155 curl = CurlClient(env=env)
169 def test_02_07b_download_reuse(self, env: Env,
172 curl = CurlClient(env=env)
183 def test_02_08_1MB_serial(self, env: Env,
185 if proto == 'h3' and not env.have_h3():
189 curl = CurlClient(env=env)
194 def test_02_09_1MB_parallel(self, env: Env,
196 if proto == 'h3' and not env.have_h3():
200 curl = CurlClient(env=env)
209 def test_02_10_10MB_serial(self, env: Env,
211 if proto == 'h3' and not env.have_h3():
215 curl = CurlClient(env=env)
222 def test_02_11_10MB_parallel(self, env: Env,
224 if proto == 'h3' and not env.have_h3():
226 if proto == 'h3' and env.curl_uses_lib('msh3'):
230 curl = CurlClient(env=env)
237 def test_02_12_head_serial_https(self, env: Env,
239 if proto == 'h3' and not env.have_h3():
243 curl = CurlClient(env=env)
250 def test_02_13_head_serial_h2c(self, env: Env,
252 if proto == 'h3' and not env.have_h3():
256 curl = CurlClient(env=env)
263 def test_02_14_not_found(self, env: Env, httpd, nghttpx, repeat, proto):
264 if proto == 'h3' and not env.have_h3():
266 if proto == 'h3' and env.curl_uses_lib('msh3'):
270 curl = CurlClient(env=env)
275 remote_port=env.port_for(alpn_proto=proto),
279 def test_02_15_fail_not_found(self, env: Env, httpd, nghttpx, repeat, proto):
280 if proto == 'h3' and not env.have_h3():
282 if proto == 'h3' and env.curl_uses_lib('msh3'):
286 curl = CurlClient(env=env)
291 remote_port=env.port_for(alpn_proto=proto),
295 def test_02_20_h2_small_frames(self, env: Env, httpd, repeat):
301 httpd.set_extra_config(env.domain1, lines=[
307 httpd.set_extra_config(env.domain1, lines=None)
315 curl = CurlClient(env=env)
323 httpd.set_extra_config(env.domain1, lines=None)
330 def test_02_21_lib_serial(self, env: Env, httpd, nghttpx, proto, pause_offset, repeat):
331 if proto == 'h3' and not env.have_h3():
336 client = LocalClient(name='hx-download', env=env)
349 def test_02_22_lib_parallel_resume(self, env: Env, httpd, nghttpx, proto, pause_offset, repeat):
350 if proto == 'h3' and not env.have_h3():
356 client = LocalClient(name='hx-download', env=env)
369 def test_02_23a_lib_abort_paused(self, env: Env, httpd, nghttpx, proto, repeat):
370 if proto == 'h3' and not env.have_h3():
372 if proto == 'h3' and env.curl_uses_ossl_quic():
374 if proto == 'h3' and env.ci_run and env.curl_uses_lib('quiche'):
384 client = LocalClient(name='hx-download', env=env)
398 def test_02_23b_lib_abort_offset(self, env: Env, httpd, nghttpx, proto, repeat):
399 if proto == 'h3' and not env.have_h3():
401 if proto == 'h3' and env.curl_uses_ossl_quic():
403 if proto == 'h3' and env.ci_run and env.curl_uses_lib('quiche'):
413 client = LocalClient(name='hx-download', env=env)
427 def test_02_23c_lib_fail_offset(self, env: Env, httpd, nghttpx, proto, repeat):
428 if proto == 'h3' and not env.have_h3():
430 if proto == 'h3' and env.curl_uses_ossl_quic():
432 if proto == 'h3' and env.ci_run and env.curl_uses_lib('quiche'):
442 client = LocalClient(name='hx-download', env=env)
456 def test_02_24_speed_limit(self, env: Env, httpd, nghttpx, proto, repeat):
457 if proto == 'h3' and not env.have_h3():
461 curl = CurlClient(env=env)
474 def test_02_25_h2_upgrade_x(self, env: Env, httpd, repeat):
476 client = LocalClient(name='h2-upgrade-extreme', env=env, timeout=15)
485 def test_02_26_session_shared_reuse(self, env: Env, proto, httpd, nghttpx, repeat):
487 client = LocalClient(name='tls-session-reuse', env=env)
495 def test_02_27a_paused_no_cl(self, env: Env, httpd, nghttpx, proto, repeat):
498 client = LocalClient(env=env, name='h2-pausing')
504 def test_02_27b_paused_no_cl(self, env: Env, httpd, nghttpx, proto, repeat):
507 client = LocalClient(env=env, name='h2-pausing')
513 def test_02_27c_paused_no_cl(self, env: Env, httpd, nghttpx, proto, repeat):
516 client = LocalClient(env=env, name='h2-pausing')
521 def test_02_28_get_compressed(self, env: Env, httpd, nghttpx, repeat, proto):
522 if proto == 'h3' and not env.have_h3():
526 curl = CurlClient(env=env)
549 def test_02_29_h2_lib_serial(self, env: Env, httpd, nghttpx, proto, pause_offset, repeat):
553 client = LocalClient(name='hx-download', env=env)
564 def test_02_30_parallel_prior_knowledge(self, env: Env, httpd):
566 curl = CurlClient(env=env)
575 def test_02_31_parallel_upgrade(self, env: Env, httpd, nghttpx):
577 curl = CurlClient(env=env)
590 def test_02_32_earlydata(self, env: Env, httpd, nghttpx, proto):
591 if not env.curl_uses_lib('gnutls'):
593 if proto == 'h3' and not env.have_h3():
599 port = env.port_for(proto)
601 port = env.nghttpx_https_port
603 client = LocalClient(name='hx-download', env=env)