diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2013-11-08 16:48:32 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2013-11-27 11:41:05 +0100 |
commit | 9715e8597da2bc4e7fb6e42f62039a7024a5418b (patch) | |
tree | 15fb089b0ec475d4f568cdc3f9dd01eeac078eba /tests/slow | |
parent | 76aa381dba35527cafd387a0046eca97a25ef3c4 (diff) | |
download | gnutls-9715e8597da2bc4e7fb6e42f62039a7024a5418b.tar.gz |
Self checks are conditionally included in the library.
Diffstat (limited to 'tests/slow')
-rw-r--r-- | tests/slow/Makefile.am | 8 | ||||
-rw-r--r-- | tests/slow/cipher-test.c | 5 |
2 files changed, 12 insertions, 1 deletions
diff --git a/tests/slow/Makefile.am b/tests/slow/Makefile.am index 265588434b..0e4b382a67 100644 --- a/tests/slow/Makefile.am +++ b/tests/slow/Makefile.am @@ -24,7 +24,13 @@ AM_CPPFLAGS = -I$(top_srcdir)/lib/includes \ AM_LDFLAGS = -no-install LDADD = ../libutils.la \ - ../../lib/libgnutls.la $(LTLIBGCRYPT) $(LIBSOCKET) + $(top_builddir)/lib/libgnutls.la $(LTLIBGCRYPT) $(LIBSOCKET) + +if !ENABLE_SELF_CHECKS +cipher_test_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_builddir)/lib/ -I$(top_builddir)/gl/ +else +cipher_test_CPPFLAGS = $(AM_CPPFLAGS) +endif ctests = gendh keygen cipher-test diff --git a/tests/slow/cipher-test.c b/tests/slow/cipher-test.c index f88e29e563..3c85a793ae 100644 --- a/tests/slow/cipher-test.c +++ b/tests/slow/cipher-test.c @@ -1,3 +1,4 @@ +#include <config.h> #include <stdint.h> #include <stdio.h> #include <string.h> @@ -17,6 +18,10 @@ tls_log_func (int level, const char *str) fprintf(stderr, "<%d>| %s", level, str); } +#ifndef ENABLE_SELF_CHECKS +# include "../../lib/crypto-selftests.c" +# include "../../lib/crypto-selftests-pk.c" +#endif int main(int argc, char **argv) { |