test-all.sh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. ##############################################################################
  3. # Copyright (c) 2021 by Rambus, Inc. and/or its subsidiaries
  4. # All rights reserved. Unauthorized use (including, without limitation,
  5. # distribution and copying) is strictly prohibited. All use requires,
  6. # and is subject to, explicit written authorization and nondisclosure
  7. # Rambus, Inc. and/or its subsidiaries
  8. #
  9. # For more information or support, please go to our online support system at
  10. # https://sipsupport.rambus.com.
  11. # In case you do not have an account for this system, please send an e-mail
  12. # to sipsupport@rambus.com.
  13. ##############################################################################
  14. # This script runs all the PKA EIP 28 openssl engine tests.
  15. #
  16. # Usage:
  17. # run: bash test-all.sh
  18. #
  19. # Date: 12/8/2021
  20. # get script directory (current directory)
  21. TEST_DIR="$(dirname "$(readlink -f "$0")")"
  22. if [ "$1" = "-v" ]; then
  23. echo "yup"
  24. VALGRIND_PARM=$1
  25. fi
  26. # run all test scripts
  27. bash $TEST_DIR/edcsa-sign-and-verify.sh $VALGRIND_PARM
  28. bash $TEST_DIR/sm2-sign-and-verify.sh $VALGRIND_PARM
  29. bash $TEST_DIR/sm2-encrypt-and-decrypt.sh $VALGRIND_PARM
  30. bash $TEST_DIR/dh-key-agreement.sh $VALGRIND_PARM
  31. bash $TEST_DIR/ecdh-key-agreement.sh $VALGRIND_PARM
  32. bash $TEST_DIR/x25519-key-agreement.sh $VALGRIND_PARM
  33. bash $TEST_DIR/rsa-encrypt-decrypt-sign-verify.sh $VALGRIND_PARM