forked from wolfSSL/wolfssl
added a pre-push hook. move fips test to pre-push check
This commit is contained in:
@ -9,6 +9,7 @@ if test -d .git; then
|
|||||||
mkdir .git/hooks
|
mkdir .git/hooks
|
||||||
fi
|
fi
|
||||||
ln -s -f ../../pre-commit.sh .git/hooks/pre-commit
|
ln -s -f ../../pre-commit.sh .git/hooks/pre-commit
|
||||||
|
ln -s -f ../../pre-push.sh .git/hooks/pre-push
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set HAVE_FIPS_SOURCE to 1 in your .profile if you have access to the FIPS
|
# Set HAVE_FIPS_SOURCE to 1 in your .profile if you have access to the FIPS
|
||||||
|
@ -31,12 +31,4 @@ make -j 8 test;
|
|||||||
RESULT=$?
|
RESULT=$?
|
||||||
[ $RESULT -ne 0 ] && echo -e "\n\nFull config make test failed" && exit 1
|
[ $RESULT -ne 0 ] && echo -e "\n\nFull config make test failed" && exit 1
|
||||||
|
|
||||||
if [ -n "$HAVE_FIPS_SOURCE" ];
|
|
||||||
then
|
|
||||||
echo -e "\n\nTesting with FIPS release code...\n\n"
|
|
||||||
./fips-check.sh
|
|
||||||
RESULT=$?
|
|
||||||
[ $RESULT -ne 0 ] && echo -e "\n\nFIPS build test failed" && exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
19
pre-push.sh
Executable file
19
pre-push.sh
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Our "pre-push" hook.
|
||||||
|
|
||||||
|
RESULT=0
|
||||||
|
|
||||||
|
if [ -n "$HAVE_FIPS_SOURCE" ];
|
||||||
|
then
|
||||||
|
echo -e "\n\nTesting with FIPS release code...\n\n"
|
||||||
|
./fips-check.sh --no-keep
|
||||||
|
RESULT=$?
|
||||||
|
[ $RESULT -ne 0 ] && echo -e "\n\nFIPS build test failed" && exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ $RESULT -ne 0 ] && echo "\nOops, your push failed\n" && exit 1
|
||||||
|
|
||||||
|
echo "\nPush tests passed!\n"
|
||||||
|
exit 0
|
Reference in New Issue
Block a user