Changeset 72ebe64 in mod_gnutls for test/runtest.py


Ignore:
Timestamp:
Jan 26, 2020, 12:56:53 PM (16 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master, proxy-ticket
Children:
e2200db
Parents:
f042405
Message:

runtest.py: Support for running Apache with Valgrind

Not used by "make check" yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/runtest.py

    rf042405 r72ebe64  
    111111        pidaffix = f'-{testname}'
    112112
     113    valgrind_log = None
     114    if args.valgrind:
     115        valgrind_log = os.path.join('logs', f'valgrind-{testname}.log')
     116
    113117    # Define the available services
    114118    apache = ApacheService(config=os.path.join(testdir, 'apache.conf'),
    115                            pidfile=f'apache2{pidaffix}.pid')
     119                           pidfile=f'apache2{pidaffix}.pid',
     120                           valgrind_log=valgrind_log)
    116121    backend = ApacheService(config=os.path.join(testdir, 'backend.conf'),
    117122                            pidfile=f'backend{pidaffix}.pid')
     
    217222                        default=temp_logfile(),
    218223                        help='write HTTP responses to this file')
     224    parser.add_argument('--valgrind', action='store_true',
     225                        help='run primary Apache instance with Valgrind')
    219226
    220227    # enable bash completion if argcomplete is available
Note: See TracChangeset for help on using the changeset viewer.