Changeset 8666b50 in mod_gnutls


Ignore:
Timestamp:
Jan 8, 2020, 1:10:52 PM (11 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master, proxy-ticket
Children:
3871dbd
Parents:
d14d7d1
git-author:
Fiona Klute <fiona.klute@…> (01/08/20 13:01:38)
git-committer:
Fiona Klute <fiona.klute@…> (01/08/20 13:10:52)
Message:

Implement "prepare_env" hook for tests

Test 15_basic_msva uses it to enable MSVA.

Location:
test
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • test/mgstest/hooks.py

    rd14d7d1 r8666b50  
    1616
    1717Test cases can implement hooks that (depending on the hook) override
    18 or supplement the default test run behavior. Two hooks are currently
     18or supplement the default test run behavior. Three hooks are currently
    1919supported:
     20
     21    prepare_env:
     22
     23        This hook runs before the test services are started. It can
     24        set any additional environment variables the test might need.
    2025
    2126    run_connection:
  • test/runtest.py

    rd14d7d1 r8666b50  
    130130    # TODO: check extra requirements (e.g. specific modules)
    131131
    132     # TODO: add hook to modify environment (unless made obsolete by
    133     # parameters)
     132    # This hook may modify the environment as needed for the test.
     133    if plugin.prepare_env:
     134        plugin.prepare_env()
    134135
    135136    # If VERBOSE is enabled, log the HTTPD build configuration
  • test/test-15_basic_msva.bash

    rd14d7d1 r8666b50  
    11#!/bin/bash
    2 export USE_MSVA="yes"
    32. ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 15
  • test/tests/Makefile.am

    rd14d7d1 r8666b50  
    1515        13_cgi_variables_no_client_cert/apache.conf 13_cgi_variables_no_client_cert/test.yml \
    1616        14_resume_session/apache.conf 14_resume_session/hooks.py 14_resume_session/test.yml \
    17         15_basic_msva/apache.conf 15_basic_msva/test.yml \
     17        15_basic_msva/apache.conf 15_basic_msva/hooks.py 15_basic_msva/test.yml \
    1818        16_view-status/apache.conf 16_view-status/test.yml \
    1919        17_cgi_vars_large_cert/apache.conf 17_cgi_vars_large_cert/test.yml \
Note: See TracChangeset for help on using the changeset viewer.