summaryrefslogtreecommitdiff
path: root/tests/slow/test-ciphers-common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/slow/test-ciphers-common.sh')
-rw-r--r--tests/slow/test-ciphers-common.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/slow/test-ciphers-common.sh b/tests/slow/test-ciphers-common.sh
index cb415a35bc..52d9d50ea9 100644
--- a/tests/slow/test-ciphers-common.sh
+++ b/tests/slow/test-ciphers-common.sh
@@ -23,6 +23,9 @@ if ! test -z "${VALGRIND}"; then
VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND}"
fi
+srcdir="${srcdir:-.}"
+. "${srcdir}/../scripts/common.sh"
+
${PROG}
ret=$?
if test $ret != 0; then
@@ -30,6 +33,7 @@ if test $ret != 0; then
exit $ret
fi
+# All optimizations disabled
GNUTLS_CPUID_OVERRIDE=0x1 ${PROG}
ret=$?
if test $ret != 0; then
@@ -37,6 +41,8 @@ if test $ret != 0; then
exit $ret
fi
+exit_if_non_x86
+
GNUTLS_CPUID_OVERRIDE=0x2 ${PROG}
ret=$?
if test $ret != 0; then