source: mod_gnutls/test/test-24_pkcs11_cert.bash @ 600cf16

debian/masterdebian/stretch-backportsjessie-backportsupstream
Last change on this file since 600cf16 was 34e5dc7, checked in by Thomas Klute <thomas2.klute@…>, 4 years ago

Test suite: Call "runtests" directly from test scripts

The test scripts used to call runtests through TestMakefile?, which set
up the environment. Moving the environment configuration to
AM_TESTS_ENVIRONMENT in Makefile.am avoids this additional call to
make.

TEST_GAP has been renamed to TEST_MSVA_WAIT because the sleep time in
the MSVA startup loop is its only remaining use.

  • Property mode set to 100755
File size: 751 bytes
RevLine 
[3f00958]1#!/bin/bash
2
[33af2b7]3testdir="$(dirname ${0})/tests/24_pkcs11_cert"
4
5# The Apache/SoftHSM configuration mixes up directories, so generate a
6# config file with an absolute path to the token database from a
7# template. Generating it on every run avoids problems if the source
8# tree was moved.
9tmp_softhsm_conf="$(mktemp mod_gnutls_test-XXXXXX.conf)"
10function cleanup_tmpconf
11{
12    rm "${tmp_softhsm_conf}"
13}
14trap cleanup_tmpconf EXIT
15
16sed "s,__DIR__,$(realpath $(pwd))," \
17    "${testdir}/softhsm.conf.in" \
18    >"${tmp_softhsm_conf}"
19export SOFTHSM_CONF="${tmp_softhsm_conf}"
20echo "Generated temporary SoftHSM config ${tmp_softhsm_conf}:"
21cat "${tmp_softhsm_conf}"
22
23. $(dirname ${0})/softhsm.bash
[3f00958]24
25set -e
26
[34e5dc7]27${srcdir}/runtests t-24
[33af2b7]28
29cleanup_tmpconf
30trap - EXIT
Note: See TracBrowser for help on using the repository browser.