From 22b42bdfd5612c49b3ab77ad03a1490310ab4469 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 25 Jan 2019 20:15:24 +0000 Subject: [PATCH] Run cryptsuite in the autotools makefile's 'make check'. Now we've _got_ a test suite, this seems like an obviously useful place to put an invocation of it. --- Recipe | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Recipe b/Recipe index 651cbe2e..894ab2a9 100644 --- a/Recipe +++ b/Recipe @@ -138,6 +138,14 @@ libversion_a_CFLAGS += -DSOURCE_COMMIT=\"`git --git-dir=$(srcdir)/.git rev-parse empty.h: $(allsources) echo '/* Empty file touched by automake makefile to force rebuild of version.o */' >$@ endif + +# Run the cryptsuite tests as part of 'make check'. Override +# PUTTY_TESTCRYPT so that cryptsuite will take the testcrypt binary +# from the build directory instead of the source directory, in case +# this is an out-of-tree build. +check-local: testcrypt + PUTTY_TESTCRYPT=./testcrypt $(srcdir)/test/cryptsuite.py + !end !begin >empty.h /* Empty file touched by automake makefile to force rebuild of version.o */