Ignore:
Timestamp:
Oct 11, 2017, 2:25:39 AM (2 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, upstream
Children:
1872744
Parents:
c9e4709
Message:

Test suite: Start proxy backend server from runtests if config exists

Proxy tests started the backend server from the test script until now,
so this removes a lot of duplicate code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-21_TLS_reverse_proxy_wrong_cert.bash

    rc9e4709 rb28158c  
    11#!/bin/bash
    2 
    3 set -e
    4 : ${srcdir:="."}
    5 . ${srcdir}/common.bash
    6 netns_reexec ${@}
    7 
    8 testdir="${srcdir}/tests/21_TLS_reverse_proxy_wrong_cert"
    9 . $(dirname ${0})/proxy_backend.bash
    10 
    11 function stop_backend
    12 {
    13     backend_apache "${testdir}" "backend.conf" stop
    14 }
    15 backend_apache "${testdir}" "backend.conf" start "${BACKEND_LOCK}"
    16 trap stop_backend EXIT
    17 
    182${srcdir}/runtests t-21
    19 
    20 backend_apache "${testdir}" "backend.conf" stop
    21 trap - EXIT
Note: See TracChangeset for help on using the changeset viewer.