diff options
Diffstat (limited to 'tests')
-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) { |