Changeset 005b185 in mod_gnutls


Ignore:
Timestamp:
Jan 28, 2020, 4:14:05 AM (8 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
f73eeb7
Parents:
e46d203
git-author:
Fiona Klute <fiona.klute@…> (01/28/20 04:11:41)
git-committer:
Fiona Klute <fiona.klute@…> (01/28/20 04:14:05)
Message:

Fail tests running with Valgrind if Valgrind reports errors

Location:
test
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile.am

    re46d203 r005b185  
    7878noinst_PYTHON = https-test-client.py mgstest/http.py mgstest/__init__.py \
    7979        mgstest/hooks.py mgstest/services.py mgstest/softhsm.py \
    80         mgstest/tests.py runtest.py softhsm-init.py doctest-mgstest.py \
    81         required-modules.py
     80        mgstest/tests.py mgstest/valgrind.py runtest.py softhsm-init.py \
     81        doctest-mgstest.py required-modules.py
    8282
    8383# Identities in the miniature CA, server, and client environment for
  • test/runtest.py

    re46d203 r005b185  
    22# PYTHON_ARGCOMPLETE_OK
    33
    4 # Copyright 2019 Fiona Klute
     4# Copyright 2019-2020 Fiona Klute
    55#
    66# Licensed under the Apache License, Version 2.0 (the "License");
     
    2525
    2626import mgstest.hooks
     27import mgstest.valgrind
    2728from mgstest import lockfile, TestExpectationFailed
    2829from mgstest.services import ApacheService, TestService
     
    206207                          response_log=args.log_responses)
    207208
     209    if valgrind_log:
     210        with open(valgrind_log) as log:
     211            errors = mgstest.valgrind.error_summary(log)
     212            print(f'Valgrind summary: {errors[0]} errors, '
     213                  f'{errors[1]} suppressed')
     214            if errors[0] > 0:
     215                sys.exit(ord('V'))
     216
    208217
    209218
Note: See TracChangeset for help on using the changeset viewer.