/curl/tests/http/testenv/ |
H A D | client.py | 28 import os 51 self._curl = os.environ['CURL'] if 'CURL' in os.environ else env.curl 67 return os.path.exists(self.path) 70 return os.path.join(self._run_dir, f'download_{i}.data') 73 if os.path.exists(path): 74 return os.remove(path) 77 if os.path.exists(path): 81 if not os.path.exists(path): 82 return os.makedirs(path) 95 if key in os.environ and key not in run_env: [all …]
|
H A D | httpd.py | 29 import os 91 if not os.path.exists(self._mods_dir): 105 return os.path.exists(self._cmd) 120 env = os.environ.copy() 122 env['APACHE_RUN_USER'] = os.environ['USER'] 207 if os.path.exists(path): 208 return os.remove(path) 211 if not os.path.exists(path): 212 return os.makedirs(path) 250 if os.path.exists(os.path.join(self._mods_dir, f'mod_{m}.so')): [all …]
|
H A D | vsftpd.py | 28 import os 54 self._vsftpd_dir = os.path.join(env.gen_dir, name) 55 self._run_dir = os.path.join(self._vsftpd_dir, 'run') 56 self._docs_dir = os.path.join(self._vsftpd_dir, 'docs') 57 self._tmp_dir = os.path.join(self._vsftpd_dir, 'tmp') 58 self._conf_file = os.path.join(self._vsftpd_dir, 'test.conf') 81 return os.path.exists(self._cmd) 156 if os.path.exists(path): 157 return os.remove(path) 160 if not os.path.exists(path): [all …]
|
H A D | caddy.py | 28 import os 45 self._caddy = os.environ['CADDY'] if 'CADDY' in os.environ else env.caddy 46 self._caddy_dir = os.path.join(env.gen_dir, 'caddy') 47 self._docs_dir = os.path.join(self._caddy_dir, 'docs') 48 self._conf_file = os.path.join(self._caddy_dir, 'Caddyfile') 49 self._error_log = os.path.join(self._caddy_dir, 'caddy.log') 50 self._tmp_dir = os.path.join(self._caddy_dir, 'tmp') 134 if os.path.exists(path): 135 return os.remove(path) 138 if not os.path.exists(path): [all …]
|
H A D | env.py | 28 import os 45 if os.path.isfile(conf_path): 52 TESTS_HTTPD_PATH = os.path.dirname(os.path.dirname(__file__)) 53 TOP_PATH = os.path.join(os.getcwd(), os.path.pardir) 55 CURL = os.path.join(TOP_PATH, 'src', 'curl') 63 self.project_dir = os.path.dirname(os.path.dirname(self.tests_dir)) 68 if 'CURL' in os.environ: 69 self.curl = os.environ['CURL'] 258 os.path.isfile(self.apxs) 269 if not os.path.isfile(self.apxs): [all …]
|
H A D | nghttpx.py | 28 import os 50 self._run_dir = os.path.join(env.gen_dir, name) 55 self._tmp_dir = os.path.join(self._run_dir, 'tmp') 67 return self._cmd and os.path.exists(self._cmd) 109 os.kill(running.pid, signal.SIGQUIT) 122 os.kill(running.pid, signal.SIGQUIT) 125 os.kill(running.pid, signal.SIGKILL) 178 if os.path.exists(path): 179 return os.remove(path) 182 if not os.path.exists(path): [all …]
|
H A D | curl.py | 29 import os 117 self._stdoutfile = os.path.join(self._run_dir, 'tcpdump.out') 118 self._stderrfile = os.path.join(self._run_dir, 'tcpdump.err') 469 self._curl = os.environ['CURL'] if 'CURL' in os.environ else env.curl 486 return os.path.join(self.run_dir, f'download_{i}.data') 489 if os.path.exists(path): 490 return os.remove(path) 493 if os.path.exists(path): 497 if not os.path.exists(path): 498 return os.makedirs(path) [all …]
|
H A D | certs.py | 28 import os 221 sub_store = CertStore(fpath=os.path.join(self._store.path, creds.name)) 233 if not os.path.exists(self._store_dir): 234 os.makedirs(self._store_dir) 277 chain_file = os.path.join(self._store_dir, f'{name}-{infix}.pem') 292 return os.path.join(self._store_dir, f'{name}{key_infix}.cert.pem') 296 return os.path.join(self._store_dir, f'{name}{key_infix}.pkey.pem') 299 return os.path.join(self._store_dir, f'{name}.pem') 316 if os.path.isfile(cert_file) and os.path.isfile(pkey_file):
|
/curl/scripts/ |
H A D | cijobs.pl | 57 my $os; 69 $os = "linux"; 144 $job{'os'}=$os; 164 my $os; 171 $os = "linux"; 174 $os = "windows"; 211 $job{'os'}=$os; 289 my $os; 310 $os = "freebsd"; 313 $os = "windows"; [all …]
|
/curl/tests/http/ |
H A D | test_31_vsftpds.py | 30 import os 58 fpath = os.path.join(docs_dir, fname) 69 if os.path.exists(vsftpds.docs_dir): 72 os.makedirs(vsftpds.docs_dir) 143 if os.path.exists(path): 144 return os.remove(path) 182 srcsize = os.path.getsize(srcfile) 235 assert os.path.exists(dstfile) 244 assert os.path.exists(dfile) 256 assert os.path.exists(srcfile) [all …]
|
H A D | test_09_push.py | 28 import os 41 push_dir = os.path.join(httpd.docs_dir, 'push') 42 if not os.path.exists(push_dir): 43 os.makedirs(push_dir) 83 assert os.path.exists(client.download_file(0)) 84 assert os.path.exists(os.path.join(client.run_dir, 'push0')), r.dump_logs()
|
H A D | test_30_vsftpd.py | 30 import os 51 fpath = os.path.join(docs_dir, fname) 62 if os.path.exists(vsftpd.docs_dir): 64 if not os.path.exists(vsftpd.docs_dir): 65 os.makedirs(vsftpd.docs_dir) 126 srcfile = os.path.join(env.gen_dir, docname) 136 if os.path.exists(path): 137 return os.remove(path) 196 assert os.path.exists(dfile) 208 assert os.path.exists(srcfile) [all …]
|
H A D | test_20_websockets.py | 28 import os 57 if not os.path.exists(path): 58 return os.makedirs(path) 61 if os.path.exists(path): 66 run_dir = os.path.join(env.gen_dir, 'ws-echo-server') 67 err_file = os.path.join(run_dir, 'stderr') 72 cmd = os.path.join(env.project_dir,
|
H A D | conftest.py | 26 import os 33 sys.path.append(os.path.join(os.path.dirname(__file__), '.')) 61 buildinfo_fn = os.path.join(env.build_dir, 'buildinfo.txt') 62 if os.path.exists(buildinfo_fn):
|
H A D | test_11_unix.py | 28 import os 57 os.unlink(self._uds_path) 59 if os.path.exists(self._uds_path): 95 uds_path = os.path.join(env.gen_dir, 'uds_11.sock')
|
H A D | test_07_upload.py | 30 import os 78 fdata = os.path.join(env.gen_dir, 'data-100k') 130 fdata = os.path.join(env.gen_dir, 'data-100k') 149 fdata = os.path.join(env.gen_dir, 'data-10m') 270 fdata = os.path.join(env.gen_dir, 'data-10m') 307 fdata = os.path.join(env.gen_dir, 'data-10m') 327 fdata = os.path.join(env.gen_dir, 'data-10m') 338 fdata = os.path.join(env.gen_dir, 'data-10m') 359 fdata = os.path.join(env.gen_dir, 'data-10m') 527 assert os.path.exists(dfile) [all …]
|
H A D | test_12_reuse.py | 28 import os 86 asfile = os.path.join(env.gen_dir, 'alt-svc-12_03.txt') 108 asfile = os.path.join(env.gen_dir, 'alt-svc-12_04.txt') 130 asfile = os.path.join(env.gen_dir, 'alt-svc-12_05.txt')
|
H A D | test_14_auth.py | 28 import os 109 fdata = os.path.join(env.gen_dir, 'data-10m') 128 fdata = os.path.join(env.gen_dir, 'data-10m')
|
H A D | test_17_ssl_use.py | 29 import os 80 run_env = os.environ.copy() 94 assert os.path.exists(dfile) 282 run_env = os.environ.copy() 287 our_config = os.path.join(env.gen_dir, 'gnutls_config') 288 if not os.path.exists(our_config):
|
H A D | test_10_proxy.py | 29 import os 43 push_dir = os.path.join(httpd.docs_dir, 'push') 44 if not os.path.exists(push_dir): 45 os.makedirs(push_dir) 99 srcfile = os.path.join(httpd.docs_dir, fname) 163 srcfile = os.path.join(httpd.docs_dir, 'data.json') 191 srcfile = os.path.join(httpd.docs_dir, fname) 212 srcfile = os.path.join(httpd.docs_dir, fname)
|
H A D | test_08_caddy.py | 30 import os 52 fpath = os.path.join(docs_dir, fname) 203 fdata = os.path.join(env.gen_dir, 'data-10m') 229 srcfile = os.path.join(caddy.docs_dir, docname) 244 assert os.path.exists(dfile)
|
/curl/tests/ |
H A D | smbserver.py | 31 import os 96 os.unlink(f) 112 pid = os.getpid() 114 if os.name == "nt": 259 os.path.dirname(full_path), os.path.basename(full_path), 331 pid = os.getpid() 333 if os.name == "nt": 342 os.write(fid, contents) 343 os.fsync(fid) 346 os.lseek(fid, 0, os.SEEK_SET) [all …]
|
H A D | dictserver.py | 34 import os 55 pid = os.getpid() 57 if os.name == "nt": 90 pid = os.getpid() 92 if os.name == "nt": 182 if options.pidfile and os.path.isfile(options.pidfile): 183 os.unlink(options.pidfile)
|
H A D | util.py | 30 import os 42 self.filename = os.path.abspath(filename) 73 filename = os.path.join(self.data_folder,
|
H A D | negtelnetserver.py | 31 import os 55 pid = os.getpid() 57 if os.name == "nt": 93 pid = os.getpid() 95 if os.name == "nt": 365 if options.pidfile and os.path.isfile(options.pidfile): 366 os.unlink(options.pidfile)
|