Changeset ff039b1 in mod_gnutls for test/test-24_pkcs11_cert.bash


Ignore:
Timestamp:
Jan 9, 2020, 3:03:14 PM (17 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master, proxy-ticket
Children:
478767a
Parents:
60ed7d1
Message:

Test suite: Replace softhsm.bash with Python code

With this all test scripts only call runtest.py.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-24_pkcs11_cert.bash

    r60ed7d1 rff039b1  
    11#!/bin/bash
    2 
    3 testdir="$(dirname ${0})/tests/24_pkcs11_cert"
    4 
    5 # The Apache/SoftHSM configuration mixes up directories, so generate
    6 # config files with absolute paths to the token database from a
    7 # template. Generating them on every run avoids problems if the source
    8 # tree was moved.
    9 tmp_softhsm_conf="$(mktemp mod_gnutls_test-XXXXXX.conf)"
    10 function cleanup_tmpconf
    11 {
    12     rm "${tmp_softhsm_conf}"
    13 }
    14 trap cleanup_tmpconf EXIT
    15 
    16 cat - >"${tmp_softhsm_conf}" <<EOF
    17 objectstore.backend = file
    18 directories.tokendir = $(realpath $(pwd))/authority/server/softhsm2.db
    19 EOF
    20 export SOFTHSM2_CONF="${tmp_softhsm_conf}"
    21 
    22 echo "Generated temporary SoftHSM config ${tmp_softhsm_conf}:"
    23 cat "${tmp_softhsm_conf}"
    24 
    25 . $(dirname ${0})/softhsm.bash
    26 
    27 set -e
    28 
    29 ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 24
    30 
    31 cleanup_tmpconf
    32 trap - EXIT
     2. ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 24
Note: See TracChangeset for help on using the changeset viewer.