|
Packit Service |
4684c1 |
#!/bin/sh
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
# Copyright (C) 2014 Red Hat, Inc.
|
|
Packit Service |
4684c1 |
#
|
|
Packit Service |
4684c1 |
# Author: Nikos Mavrogiannopoulos
|
|
Packit Service |
4684c1 |
#
|
|
Packit Service |
4684c1 |
# This file is part of GnuTLS.
|
|
Packit Service |
4684c1 |
#
|
|
Packit Service |
4684c1 |
# GnuTLS is free software; you can redistribute it and/or modify it
|
|
Packit Service |
4684c1 |
# under the terms of the GNU General Public License as published by the
|
|
Packit Service |
4684c1 |
# Free Software Foundation; either version 3 of the License, or (at
|
|
Packit Service |
4684c1 |
# your option) any later version.
|
|
Packit Service |
4684c1 |
#
|
|
Packit Service |
4684c1 |
# GnuTLS is distributed in the hope that it will be useful, but
|
|
Packit Service |
4684c1 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
4684c1 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
4684c1 |
# General Public License for more details.
|
|
Packit Service |
4684c1 |
#
|
|
Packit Service |
4684c1 |
# You should have received a copy of the GNU General Public License
|
|
Packit Service |
4684c1 |
# along with GnuTLS; if not, write to the Free Software Foundation,
|
|
Packit Service |
4684c1 |
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
unset RETCODE
|
|
Packit Service |
4684c1 |
if ! test -z "${VALGRIND}"; then
|
|
Packit Service |
4684c1 |
VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND}"
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
PROG=./cipher-override${EXEEXT}
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
# we are explicitly unsetting this variable, because we want
|
|
Packit Service |
4684c1 |
# the "production" checks to be triggered, not the ones in the
|
|
Packit Service |
4684c1 |
# test suite.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
unset GNUTLS_TEST_SUITE_RUN
|
|
Packit Service |
4684c1 |
GNUTLS_NO_EXPLICIT_INIT=1 ${VALGRIND} ${PROG}
|
|
Packit Service |
4684c1 |
ret=$?
|
|
Packit Service |
4684c1 |
if test $ret != 0; then
|
|
Packit Service |
4684c1 |
echo "overridden cipher tests failed"
|
|
Packit Service |
4684c1 |
exit $ret
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
${VALGRIND} ${PROG}
|
|
Packit Service |
4684c1 |
ret=$?
|
|
Packit Service |
4684c1 |
if test $ret != 0; then
|
|
Packit Service |
4684c1 |
echo "overridden cipher tests 2 failed"
|
|
Packit Service |
4684c1 |
exit $ret
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
${VALGRIND} ${PROG}
|
|
Packit Service |
4684c1 |
ret=$?
|
|
Packit Service |
4684c1 |
if test $ret != 0; then
|
|
Packit Service |
4684c1 |
echo "overridden cipher tests 3 failed"
|
|
Packit Service |
4684c1 |
exit $ret
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
if test "$WINDOWS" = 1;then
|
|
Packit Service |
4684c1 |
exit 77
|
|
Packit Service |
4684c1 |
else
|
|
Packit Service |
4684c1 |
GNUTLS_NO_EXPLICIT_INIT=1 ${VALGRIND} ./mac-override
|
|
Packit Service |
4684c1 |
ret=$?
|
|
Packit Service |
4684c1 |
if test $ret != 0; then
|
|
Packit Service |
4684c1 |
echo "overridden mac tests failed"
|
|
Packit Service |
4684c1 |
exit $ret
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
${VALGRIND} ./mac-override
|
|
Packit Service |
4684c1 |
ret=$?
|
|
Packit Service |
4684c1 |
if test $ret != 0; then
|
|
Packit Service |
4684c1 |
echo "overridden mac tests 2 failed"
|
|
Packit Service |
4684c1 |
exit $ret
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
exit 0
|