MCPcopy Create free account
hub / github.com/apache/httpd / _add_h2test

Method _add_h2test

test/modules/http2/env.py:27–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25 self._setup_data_1k_1m()
26
27 def _add_h2test(self):
28 local_dir = os.path.dirname(inspect.getfile(H2TestSetup))
29 p = subprocess.run([self.env.apxs, '-c', 'mod_h2test.c'],
30 capture_output=True,
31 cwd=os.path.join(local_dir, 'mod_h2test'))
32 rv = p.returncode
33 if rv != 0:
34 log.error(f"compiling md_h2test failed: {p.stderr}")
35 raise Exception(f"compiling md_h2test failed: {p.stderr}")
36
37 modules_conf = os.path.join(self.env.server_dir, 'conf/modules.conf')
38 with open(modules_conf, 'a') as fd:
39 # load our test module which is not installed
40 fd.write(f"LoadModule h2test_module \"{local_dir}/mod_h2test/.libs/mod_h2test.so\"\n")
41
42 def _setup_data_1k_1m(self):
43 s90 = "01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678\n"

Callers 1

makeMethod · 0.95

Calls 2

joinMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected