Changeset ee6351d in mod_gnutls
- Timestamp:
- Jan 30, 2020, 7:46:37 AM (3 years ago)
- Branches:
- asyncio, main, master, proxy-ticket
- Children:
- 8b14b13
- Parents:
- 57dec86
- Location:
- test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
test/Makefile.am
r57dec86 ree6351d 270 270 MOSTLYCLEANFILES += apache-conf/required-modules.conf 271 271 apache-conf/required-modules.conf: required-modules.py 272 APACHE2= $(APACHE2)$(PYTHON) $< >$@272 APACHE2=@APACHE2@ AP_LIBEXECDIR=@AP_LIBEXECDIR@ $(PYTHON) $< >$@ 273 273 274 274 # Documentation for the test system -
test/base_apache.conf
r57dec86 ree6351d 14 14 LogLevel debug 15 15 16 LoadModule mpm_worker_module ${AP_LIBEXECDIR}/mod_mpm_worker.so 16 # The mpm module to use (event or worker) is selected in 17 # apache-conf/required-modules.conf, see required-modules.py 17 18 StartServers 2 18 19 MinSpareThreads 10 -
test/required-modules.py
r57dec86 ree6351d 4 4 import shutil 5 5 import subprocess 6 from pathlib import Path 6 7 7 8 required_modules = {'logio', 'unixd', 'log_config'} 8 9 9 apache2 = os.environ.get('APACHE2') 10 if not apache2: 11 apache2 = shutil.which('apache2') 12 if not apache2: 13 apache2 = shutil.which('httpd') 10 apache2 = os.environ['APACHE2'] 14 11 15 12 result = subprocess.run([apache2, '-l'], check=True, … … 25 22 for mod in (required_modules - built_in_modules): 26 23 print(f'LoadModule\t{mod}_module\t${{AP_LIBEXECDIR}}/mod_{mod}.so') 24 25 # select mpm module, list is ordered by preference 26 mpm_choices = ['event', 'worker'] 27 mod_dir = Path(os.environ['AP_LIBEXECDIR']) 28 for mpm in mpm_choices: 29 mod = mod_dir.joinpath(f'mod_mpm_{mpm}.so') 30 if mod.exists(): 31 print(f'LoadModule\tmpm_{mpm}_module\t{mod!s}') 32 break
Note: See TracChangeset
for help on using the changeset viewer.