Changeset 99c61f9 in mod_gnutls for test/mgstest


Ignore:
Timestamp:
Jan 28, 2020, 3:37:37 AM (13 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master, proxy-ticket
Children:
e46d203
Parents:
c5f8e85
Message:

Add configure option --enable-valgrind-test to run tests with Valgrind

Also includes suppressions for known issues not caused by mod_gnutls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mgstest/services.py

    rc5f8e85 r99c61f9  
    158158
    159159    def __init__(self, config, env=None, pidfile=None, check=None,
    160                  valgrind_log=None):
     160                 valgrind_log=None, valgrind_suppress=[]):
    161161        self.config = Path(config).resolve()
    162162        base_cmd = [self.apache2, '-f', str(self.config), '-k']
    163163        start_cmd = base_cmd + ['start', '-DFOREGROUND']
    164164        if valgrind_log:
    165             start_cmd = ['valgrind', '-s', '--leak-check=full',
     165            valgrind = os.environ.get('VALGRIND', 'valgrind')
     166            suppress = [f'--suppressions={s}' for s in valgrind_suppress]
     167            start_cmd = [valgrind, '-s', '--leak-check=full',
    166168                         '--track-origins=yes', '--vgdb=no',
    167169                         f'--log-file={valgrind_log}'] \
    168                          + start_cmd
     170                         + suppress + start_cmd
    169171        if not check:
    170172            check = self.pidfile_check
Note: See TracChangeset for help on using the changeset viewer.