Added fips-check script when running commit-tests.

This commit is contained in:
John Safranek
2014-11-19 12:00:04 -08:00
parent 17a4cc8239
commit 65c0dd4f8a
4 changed files with 76 additions and 0 deletions

View File

@@ -11,6 +11,17 @@ if test -d .git; then
ln -s -f ../../pre-commit.sh .git/hooks/pre-commit
fi
# Set HAVE_FIPS_SOURCE to 1 in your .profile if you have access to the FIPS
# repository. (Hint: If you don't work for us, you don't. This will fail.)
if test $HAVE_FIPS_SOURCE -a ! -d ./fips; then
git clone git@github.com:wolfSSL/fips.git
SAVEDIR=`pwd`
cd ./ctaocrypt/src
ln -sf ../../fips/fips.c
ln -sf ../../fips/fips_test.c
cd $SAVEDIR
fi
# If this is a source checkout then call autoreconf with error as well
if test -d .git; then
WARNINGS="all,error"