diff options
Diffstat (limited to 'tests/key-tests/dsa')
-rwxr-xr-x | tests/key-tests/dsa | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/key-tests/dsa b/tests/key-tests/dsa index 17a4472edf..9319b41a5f 100755 --- a/tests/key-tests/dsa +++ b/tests/key-tests/dsa @@ -21,12 +21,17 @@ # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. srcdir="${srcdir:-.}" -SERV="${SERV:-../../src/gnutls-serv} -q" +SERV="${SERV:-../../src/gnutls-serv}" CLI="${CLI:-../../src/gnutls-cli}" DEBUG="" unset RETCODE CERTTOOL="${CERTTOOL:-../../src/certtool${EXEEXT}}" + +if ! test -x "${CERTTOOL}"; then + exit 77 +fi + if ! test -z "${VALGRIND}"; then VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND}" fi @@ -35,6 +40,8 @@ if test "${WINDIR}" != ""; then exit 77 fi +SERV="${SERV} -q" + . "${srcdir}/../scripts/common.sh" size=`${VALGRIND} "${CERTTOOL}" -i --infile "${srcdir}/data/dsa-pubkey-1018.pem"|grep "Algorithm Secur"|cut -d '(' -f 2|cut -d ' ' -f 1` |