]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: override-ciphers will not run mac tests on windows
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 26 Nov 2015 10:23:15 +0000 (11:23 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 26 Nov 2015 10:23:43 +0000 (11:23 +0100)
There is some issue with symbols for self tests not being exported.

tests/slow/Makefile.am
tests/slow/override-ciphers

index 0c27a91480fb17f210bd31f804064c14867be1fa..4e34ba1896107dbf30537b610ee15b64ce6bf637 100644 (file)
@@ -57,3 +57,7 @@ TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) \
        LC_ALL="C"                                              \
        top_builddir="$(top_builddir)"                          \
        srcdir="$(srcdir)"
+
+if WINDOWS
+TESTS_ENVIRONMENT += WINDOWS=1
+endif
index 6a255c8e7740130245feb530d6c35798306db1aa..a95253ba94186c4029a438bb633f95b4b958498b 100755 (executable)
@@ -47,18 +47,23 @@ if test $ret != 0; then
        exit $ret
 fi
 
-GNUTLS_NO_EXPLICIT_INIT=1 ${VALGRIND} ./mac-override
-ret=$?
-if test $ret != 0; then
-       echo "overriden mac tests failed"
-       exit $ret
-fi
 
-${VALGRIND} ./mac-override
-ret=$?
-if test $ret != 0; then
-       echo "overriden mac tests 2 failed"
-       exit $ret
+if test "$WINDOWS" = 1;then
+       exit 77
+else
+       GNUTLS_NO_EXPLICIT_INIT=1 ${VALGRIND} ./mac-override
+       ret=$?
+       if test $ret != 0; then
+               echo "overriden mac tests failed"
+               exit $ret
+       fi
+
+       ${VALGRIND} ./mac-override
+       ret=$?
+       if test $ret != 0; then
+               echo "overriden mac tests 2 failed"
+               exit $ret
+       fi
 fi
 
 exit 0