Changeset 05984a0 in mod_gnutls for test/test-16_view-status.bash


Ignore:
Timestamp:
Dec 26, 2019, 3:47:10 AM (7 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
0909c92
Parents:
006f91a
git-author:
Fiona Klute <fiona.klute@…> (12/26/19 03:38:34)
git-committer:
Fiona Klute <fiona.klute@…> (12/26/19 03:47:10)
Message:

Replace "runtests" with "runtest.py"

This is the next step from handling HTTP requests and responses in
Python. In particular error handling is a lot easier to do in Python
than using Bash trap functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-16_view-status.bash

    r006f91a r05984a0  
    11#!/bin/bash
    22set -e
    3 ${srcdir}/runtests t-16
    43
    5 # expected output file
     4# expected output files
     5log="outputs/16_view-status.log"
    66output="outputs/16_view-status.output"
     7
     8${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 16 \
     9         --log-connection "${log}" --log-responses "${output}"
     10
    711# get the cipher suite reported by gnutls-cli
    8 cli_suite="$(grep -o -P '(?<=^-\sDescription:\s).*$' "${output}")" || true
     12cli_suite="$(grep -o -P '(?<=^-\sDescription:\s).*$' "${log}")" || true
    913# extract cipher suite from the server status output
    1014status_suite="$(grep -o -P '(?<=^Current TLS session:\s).*$' "${output}")" \
Note: See TracChangeset for help on using the changeset viewer.