2
0

commit-tests.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. #commit-tests.sh
  3. # make sure current config is ok
  4. echo -e "\n\nTesting current config...\n\n"
  5. make clean; make -j 8 test;
  6. RESULT=$?
  7. [ $RESULT -ne 0 ] && echo -e "\n\nCurrent config make test failed" && exit 1
  8. # make sure basic config is ok
  9. echo -e "\n\nTesting basic config too...\n\n"
  10. ./configure --disable-fastmath;
  11. RESULT=$?
  12. [ $RESULT -ne 0 ] && echo -e "\n\nBasic config ./configure failed" && exit 1
  13. make -j 8 test;
  14. RESULT=$?
  15. [ $RESULT -ne 0 ] && echo -e "\n\nBasic config make test failed" && exit 1
  16. # make sure full config is ok
  17. echo -e "\n\nTesting full config as well...\n\n"
  18. ./configure --enable-opensslextra --enable-des3 --enable-dh --enable-ecc --enable-dtls --enable-aesgcm --enable-aesccm --enable-sniffer --enable-psk --enable-camellia --enable-sha512 --enable-crl --enable-ocsp --enable-savesession --enable-savecert --enable-atomicuser --enable-pkcallbacks --enable-scep;
  19. RESULT=$?
  20. [ $RESULT -ne 0 ] && echo -e "\n\nFull config ./configure failed" && exit 1
  21. make -j 8 test;
  22. RESULT=$?
  23. [ $RESULT -ne 0 ] && echo -e "\n\nFull config make test failed" && exit 1
  24. exit 0