Home
last modified time | relevance | path

Searched refs:env (Results 1 – 25 of 62) sorted by relevance

123

/curl/tests/http/
H A Dconftest.py38 env = Env()
44 if env.have_h3():
48 if env.has_caddy():
52 if env.has_vsftpd():
75 env.setup()
76 return env
85 httpd = Httpd(env=env)
97 nghttpx = NghttpxQuic(env=env)
98 if env.have_h3():
106 nghttpx = NghttpxFwd(env=env)
[all …]
H A Dtest_07_upload.py62 curl = CurlClient(env=env)
77 curl = CurlClient(env=env)
94 curl = CurlClient(env=env)
112 curl = CurlClient(env=env)
130 curl = CurlClient(env=env)
149 curl = CurlClient(env=env)
169 curl = CurlClient(env=env)
235 curl = CurlClient(env=env)
254 curl = CurlClient(env=env)
270 curl = CurlClient(env=env)
[all …]
H A Dtest_02_download.py64 curl = CurlClient(env=env)
74 curl = CurlClient(env=env)
86 curl = CurlClient(env=env)
99 curl = CurlClient(env=env)
121 curl = CurlClient(env=env)
140 curl = CurlClient(env=env)
154 curl = CurlClient(env=env)
173 curl = CurlClient(env=env)
190 curl = CurlClient(env=env)
201 curl = CurlClient(env=env)
[all …]
H A Dtest_01_basic.py40 def _class_scope(self, env, nghttpx): argument
41 if env.have_h3():
46 curl = CurlClient(env=env)
55 curl = CurlClient(env=env)
64 curl = CurlClient(env=env)
73 curl = CurlClient(env=env)
82 curl = CurlClient(env=env)
94 curl = CurlClient(env=env)
109 curl = CurlClient(env=env)
122 curl = CurlClient(env=env)
[all …]
H A Dtest_14_auth.py42 def _class_scope(self, env, httpd, nghttpx): argument
43 if env.have_h3():
45 env.make_data_file(indir=env.gen_dir, fname="data-10m", fsize=10*1024*1024)
52 if proto == 'h3' and not env.have_h3():
54 curl = CurlClient(env=env)
62 if proto == 'h3' and not env.have_h3():
64 curl = CurlClient(env=env)
77 curl = CurlClient(env=env)
91 curl = CurlClient(env=env)
112 curl = CurlClient(env=env)
[all …]
H A Dtest_17_ssl_use.py45 if env.have_h3():
56 curl = CurlClient(env=env)
70 if env.curl_uses_lib('gnutls'):
86 curl = CurlClient(env=env)
112 curl = CurlClient(env=env)
129 curl = CurlClient(env=env)
155 curl = CurlClient(env=env)
170 curl = CurlClient(env=env)
217 curl = CurlClient(env=env)
261 curl = CurlClient(env=env)
[all …]
H A Dtest_08_caddy.py42 def caddy(self, env): argument
43 caddy = Caddy(env=env)
64 env.make_data_file(indir=env.gen_dir, fname="data-10m", fsize=10*1024*1024)
73 curl = CurlClient(env=env)
87 curl = CurlClient(env=env)
101 curl = CurlClient(env=env)
124 curl = CurlClient(env=env)
140 curl = CurlClient(env=env)
159 curl = CurlClient(env=env)
181 curl = CurlClient(env=env)
[all …]
H A Dtest_20_websockets.py45 def check_alive(self, env, timeout=5): argument
46 curl = CurlClient(env=env)
65 def ws_echo(self, env): argument
77 assert self.check_alive(env)
82 curl = CurlClient(env=env)
89 client = LocalClient(env=env, name='ws-pingpong')
99 client = LocalClient(env=env, name='ws-pingpong')
108 client = LocalClient(env=env, name='ws-data')
117 client = LocalClient(env=env, name='ws-data')
126 client = LocalClient(env=env, name='ws-data')
[all …]
H A Dtest_06_eyeballs.py41 def _class_scope(self, env, httpd, nghttpx): argument
42 if env.have_h3():
49 def test_06_01_h3_only(self, env: Env, httpd, nghttpx, repeat):
50 curl = CurlClient(env=env)
58 def test_06_02_h3_only(self, env: Env, httpd, nghttpx, repeat):
60 curl = CurlClient(env=env)
69 curl = CurlClient(env=env)
79 curl = CurlClient(env=env)
87 curl = CurlClient(env=env)
96 curl = CurlClient(env=env)
[all …]
H A Dtest_19_shutdown.py45 if env.have_h3():
61 if env.ci_run:
63 curl = CurlClient(env=env)
76 if not env.curl_is_debug():
78 curl = CurlClient(env=env, run_env={
93 if not env.curl_is_debug():
96 curl = CurlClient(env=env, run_env={
111 if not env.curl_is_debug():
116 client = LocalClient(name='hx-download', env=env, run_env={
136 curl = CurlClient(env=env, run_env={
[all …]
H A Dtest_31_vsftpds.py49 vsftpds = VsFTPD(env=env, with_ssl=True)
82 curl = CurlClient(env=env)
94 curl = CurlClient(env=env)
106 curl = CurlClient(env=env)
118 curl = CurlClient(env=env)
132 curl = CurlClient(env=env)
150 curl = CurlClient(env=env)
163 curl = CurlClient(env=env)
185 curl = CurlClient(env=env)
199 curl = CurlClient(env=env)
[all …]
H A Dtest_05_errors.py43 def _class_scope(self, env, httpd, nghttpx): argument
44 if env.have_h3():
53 if proto == 'h3' and not env.have_h3():
55 if proto == 'h3' and env.curl_uses_lib('msh3'):
58 curl = CurlClient(env=env)
76 if proto == 'h3' and not env.have_h3():
81 curl = CurlClient(env=env)
98 curl = CurlClient(env=env)
123 if proto == 'h3' and not env.have_h3():
126 curl = CurlClient(env=env)
[all …]
H A Dtest_18_methods.py43 def _class_scope(self, env, httpd, nghttpx): argument
44 if env.have_h3():
49 env.make_data_file(indir=indir, fname="data-10k", fsize=10*1024)
50 env.make_data_file(indir=indir, fname="data-100k", fsize=100*1024)
51 env.make_data_file(indir=indir, fname="data-1m", fsize=1024*1024)
55 def test_18_01_delete(self, env: Env, httpd, nghttpx, repeat, proto):
56 if proto == 'h3' and not env.have_h3():
59 curl = CurlClient(env=env)
68 def test_18_02_delete_h2_special(self, env: Env, httpd, nghttpx, repeat):
71 curl = CurlClient(env=env)
H A Dtest_30_vsftpd.py45 vsftpd = VsFTPD(env=env)
70 env.make_data_file(indir=env.gen_dir, fname="upload-1k", fsize=1024)
75 curl = CurlClient(env=env)
87 curl = CurlClient(env=env)
99 curl = CurlClient(env=env)
111 curl = CurlClient(env=env)
125 curl = CurlClient(env=env)
143 curl = CurlClient(env=env)
155 curl = CurlClient(env=env)
168 curl = CurlClient(env=env)
[all …]
H A Dtest_10_proxy.py63 curl = CurlClient(env=env)
76 curl = CurlClient(env=env)
100 curl = CurlClient(env=env)
114 curl = CurlClient(env=env)
126 curl = CurlClient(env=env)
137 curl = CurlClient(env=env)
154 curl = CurlClient(env=env)
182 curl = CurlClient(env=env)
213 curl = CurlClient(env=env)
233 curl = CurlClient(env=env)
[all …]
H A Dtest_13_proxy_auth.py45 def _class_scope(self, env, httpd, nghttpx_fwd): argument
46 if env.have_nghttpx():
65 curl = CurlClient(env=env)
72 def test_13_02_proxy_auth(self, env: Env, httpd, repeat):
73 curl = CurlClient(env=env)
85 curl = CurlClient(env=env)
96 curl = CurlClient(env=env)
105 curl = CurlClient(env=env)
114 curl = CurlClient(env=env)
130 curl = CurlClient(env=env)
[all …]
H A Dtest_16_info.py43 def _class_scope(self, env, httpd, nghttpx): argument
44 if env.have_h3():
50 def _class_scope(self, env, httpd): argument
59 if proto == 'h3' and not env.have_h3():
62 curl = CurlClient(env=env)
74 if proto == 'h3' and not env.have_h3():
77 curl = CurlClient(env=env)
90 if proto == 'h3' and not env.have_h3():
93 fdata = os.path.join(env.gen_dir, 'data-100k')
95 curl = CurlClient(env=env)
[all …]
H A Dtest_15_tracing.py40 def test_15_01_trace_defaults(self, env: Env, httpd):
41 curl = CurlClient(env=env)
51 def test_15_02_trace_ids(self, env: Env, httpd):
52 curl = CurlClient(env=env)
64 def test_15_03_trace_ids_time(self, env: Env, httpd):
65 curl = CurlClient(env=env)
77 def test_15_04_trace_all(self, env: Env, httpd):
78 curl = CurlClient(env=env)
96 def test_15_05_trace_all(self, env: Env, httpd):
97 curl = CurlClient(env=env)
H A Dtest_04_stuttered.py43 def _class_scope(self, env, httpd, nghttpx): argument
44 if env.have_h3():
53 if proto == 'h3' and not env.have_h3():
56 curl = CurlClient(env=env)
67 def test_04_02_100_100_10(self, env: Env,
69 if proto == 'h3' and not env.have_h3():
73 curl = CurlClient(env=env)
91 if proto == 'h3' and not env.have_h3():
95 curl = CurlClient(env=env)
113 if proto == 'h3' and not env.have_h3():
[all …]
H A Dtest_12_reuse.py46 def test_12_01_h1_conn_close(self, env: Env,
54 curl = CurlClient(env=env)
66 def test_12_02_h1_conn_timeout(self, env: Env,
74 curl = CurlClient(env=env)
84 def test_12_03_alt_svc_h2h3(self, env: Env, httpd, nghttpx):
89 asfile = os.path.join(env.gen_dir, 'alt-svc-12_03.txt')
95 curl = CurlClient(env=env)
111 asfile = os.path.join(env.gen_dir, 'alt-svc-12_04.txt')
117 curl = CurlClient(env=env)
133 asfile = os.path.join(env.gen_dir, 'alt-svc-12_05.txt')
[all …]
H A Dtest_09_push.py40 def _class_scope(self, env, httpd): argument
44 env.make_data_file(indir=push_dir, fname="data1", fsize=1*1024)
45 env.make_data_file(indir=push_dir, fname="data2", fsize=1*1024)
46 env.make_data_file(indir=push_dir, fname="data3", fsize=1*1024)
47 httpd.set_extra_config(env.domain1, [
64 def test_09_01_h2_early_hints(self, env: Env, httpd, repeat):
65 curl = CurlClient(env=env)
75 def test_09_02_h2_push(self, env: Env, httpd, repeat):
78 client = LocalClient(name='h2-serverpush', env=env)
H A Dtest_03_goaway.py42 def _class_scope(self, env, httpd, nghttpx): argument
43 if env.have_h3():
49 def test_03_01_h2_goaway(self, env: Env, httpd, nghttpx, repeat):
54 curl = CurlClient(env=env)
81 def test_03_02_h3_goaway(self, env: Env, httpd, nghttpx, repeat):
83 if proto == 'h3' and env.curl_uses_lib('msh3'):
85 if proto == 'h3' and env.curl_uses_ossl_quic():
90 curl = CurlClient(env=env)
115 def test_03_03_h1_goaway(self, env: Env, httpd, nghttpx, repeat):
120 curl = CurlClient(env=env)
/curl/tests/libtest/
H A Dfirst.c94 char *env; in memory_tracking_init() local
96 env = curl_getenv("CURL_MEMDEBUG"); in memory_tracking_init()
97 if(env) { in memory_tracking_init()
101 env[CURL_MT_LOGFNAME_BUFSIZE-1] = '\0'; in memory_tracking_init()
102 strcpy(fname, env); in memory_tracking_init()
103 curl_free(env); in memory_tracking_init()
110 env = curl_getenv("CURL_MEMLIMIT"); in memory_tracking_init()
111 if(env) { in memory_tracking_init()
113 long num = strtol(env, &endptr, 10); in memory_tracking_init()
114 if((endptr != env) && (endptr == env + strlen(env)) && (num > 0)) in memory_tracking_init()
[all …]
/curl/tests/http/testenv/
H A Dnghttpx.py35 from .env import Env
45 self.env = env
128 curl = CurlClient(env=self.env, run_dir=self._tmp_dir)
143 curl = CurlClient(env=self.env, run_dir=self._tmp_dir)
177 super().__init__(env=env, name='nghttpx-quic', port=env.h3_port)
193 self.env.get_credentials(self.env.domain1).pkey_file,
194 self.env.get_credentials(self.env.domain1).cert_file,
211 super().__init__(env=env, name='nghttpx-fwd', port=env.h2proxys_port)
227 self.env.get_credentials(self.env.proxy_domain).pkey_file,
237 curl = CurlClient(env=self.env, run_dir=self._tmp_dir)
[all …]
/curl/src/
H A Dtool_main.c107 char *env; in memory_tracking_init() local
109 env = curl_getenv("CURL_MEMDEBUG"); in memory_tracking_init()
110 if(env) { in memory_tracking_init()
114 env[CURL_MT_LOGFNAME_BUFSIZE-1] = '\0'; in memory_tracking_init()
115 strcpy(fname, env); in memory_tracking_init()
116 curl_free(env); in memory_tracking_init()
123 env = curl_getenv("CURL_MEMLIMIT"); in memory_tracking_init()
124 if(env) { in memory_tracking_init()
126 long num = strtol(env, &endptr, 10); in memory_tracking_init()
127 if((endptr != env) && (endptr == env + strlen(env)) && (num > 0)) in memory_tracking_init()
[all …]

Completed in 67 milliseconds

123