2012-08-10 03:42:18 +04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#commit-tests.sh
|
|
|
|
|
|
|
|
|
|
|
|
# make sure current config is ok
|
|
|
|
echo -e "\n\nTesting current config...\n\n"
|
2012-09-20 10:38:41 +04:00
|
|
|
make clean; make -j 8 test;
|
2012-08-10 03:42:18 +04:00
|
|
|
RESULT=$?
|
|
|
|
[ $RESULT -ne 0 ] && echo -e "\n\nCurrent config make test failed" && exit 1
|
|
|
|
|
|
|
|
|
|
|
|
# make sure basic config is ok
|
|
|
|
echo -e "\n\nTesting basic config too...\n\n"
|
2013-04-20 00:51:53 +04:00
|
|
|
./configure --disable-fastmath;
|
2012-08-10 03:42:18 +04:00
|
|
|
RESULT=$?
|
|
|
|
[ $RESULT -ne 0 ] && echo -e "\n\nBasic config ./configure failed" && exit 1
|
|
|
|
|
2012-11-30 00:07:32 +04:00
|
|
|
make -j 8 test;
|
2012-08-10 03:42:18 +04:00
|
|
|
RESULT=$?
|
|
|
|
[ $RESULT -ne 0 ] && echo -e "\n\nBasic config make test failed" && exit 1
|
|
|
|
|
|
|
|
|
|
|
|
# make sure full config is ok
|
|
|
|
echo -e "\n\nTesting full config as well...\n\n"
|
2014-05-01 02:01:10 +04:00
|
|
|
./configure --enable-opensslextra --enable-ecc --enable-dtls --enable-aesgcm --enable-aesccm --enable-hc128 --enable-sniffer --enable-psk --enable-rabbit --enable-camellia --enable-sha512 --enable-crl --enable-ocsp --enable-savesession --enable-savecert --enable-atomicuser --enable-pkcallbacks --enable-scep;
|
2012-08-10 03:42:18 +04:00
|
|
|
RESULT=$?
|
|
|
|
[ $RESULT -ne 0 ] && echo -e "\n\nFull config ./configure failed" && exit 1
|
|
|
|
|
2012-11-30 00:07:32 +04:00
|
|
|
make -j 8 test;
|
2012-08-10 03:42:18 +04:00
|
|
|
RESULT=$?
|
|
|
|
[ $RESULT -ne 0 ] && echo -e "\n\nFull config make test failed" && exit 1
|
|
|
|
|
2014-11-25 00:33:14 +03:00
|
|
|
if [ -n "$HAVE_FIPS_SOURCE" ];
|
2014-11-19 23:00:04 +03:00
|
|
|
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
|
|
|
|
|
2012-08-10 03:42:18 +04:00
|
|
|
exit 0
|