Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

86 Zeilen
3.8 KiB

  1. #!/usr/bin/env bash
  2. # Copyright (c) 2014, Google Inc.
  3. #
  4. # Permission to use, copy, modify, and/or distribute this software for any
  5. # purpose with or without fee is hereby granted, provided that the above
  6. # copyright notice and this permission notice appear in all copies.
  7. #
  8. # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  11. # SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  13. # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  14. # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
  15. SRC=..
  16. if [ "$#" -ge 1 ]; then
  17. SRC=$1
  18. fi
  19. TESTS="
  20. ./crypto/base64/base64_test
  21. ./crypto/bio/bio_test
  22. ./crypto/bn/bn_test
  23. ./crypto/bytestring/bytestring_test
  24. ./crypto/cipher/aead_test aes-128-gcm $SRC/crypto/cipher/test/aes_128_gcm_tests.txt
  25. ./crypto/cipher/aead_test aes-128-key-wrap $SRC/crypto/cipher/test/aes_128_key_wrap_tests.txt
  26. ./crypto/cipher/aead_test aes-256-gcm $SRC/crypto/cipher/test/aes_256_gcm_tests.txt
  27. ./crypto/cipher/aead_test aes-256-key-wrap $SRC/crypto/cipher/test/aes_256_key_wrap_tests.txt
  28. ./crypto/cipher/aead_test chacha20-poly1305 $SRC/crypto/cipher/test/chacha20_poly1305_tests.txt
  29. ./crypto/cipher/aead_test rc4-md5-tls $SRC/crypto/cipher/test/rc4_md5_tls_tests.txt
  30. ./crypto/cipher/aead_test rc4-sha1-tls $SRC/crypto/cipher/test/rc4_sha1_tls_tests.txt
  31. ./crypto/cipher/aead_test aes-128-cbc-sha1-tls $SRC/crypto/cipher/test/aes_128_cbc_sha1_tls_tests.txt
  32. ./crypto/cipher/aead_test aes-128-cbc-sha1-tls-implicit-iv $SRC/crypto/cipher/test/aes_128_cbc_sha1_tls_implicit_iv_tests.txt
  33. ./crypto/cipher/aead_test aes-128-cbc-sha256-tls $SRC/crypto/cipher/test/aes_128_cbc_sha256_tls_tests.txt
  34. ./crypto/cipher/aead_test aes-256-cbc-sha1-tls $SRC/crypto/cipher/test/aes_256_cbc_sha1_tls_tests.txt
  35. ./crypto/cipher/aead_test aes-256-cbc-sha1-tls-implicit-iv $SRC/crypto/cipher/test/aes_256_cbc_sha1_tls_implicit_iv_tests.txt
  36. ./crypto/cipher/aead_test aes-256-cbc-sha256-tls $SRC/crypto/cipher/test/aes_256_cbc_sha256_tls_tests.txt
  37. ./crypto/cipher/aead_test aes-256-cbc-sha384-tls $SRC/crypto/cipher/test/aes_256_cbc_sha384_tls_tests.txt
  38. ./crypto/cipher/aead_test des-ede3-cbc-sha1-tls $SRC/crypto/cipher/test/des_ede3_cbc_sha1_tls_tests.txt
  39. ./crypto/cipher/aead_test des-ede3-cbc-sha1-tls-implicit-iv $SRC/crypto/cipher/test/des_ede3_cbc_sha1_tls_implicit_iv_tests.txt
  40. ./crypto/cipher/aead_test rc4-md5-ssl3 $SRC/crypto/cipher/test/rc4_md5_ssl3_tests.txt
  41. ./crypto/cipher/aead_test rc4-sha1-ssl3 $SRC/crypto/cipher/test/rc4_sha1_ssl3_tests.txt
  42. ./crypto/cipher/aead_test aes-128-cbc-sha1-ssl3 $SRC/crypto/cipher/test/aes_128_cbc_sha1_ssl3_tests.txt
  43. ./crypto/cipher/aead_test aes-256-cbc-sha1-ssl3 $SRC/crypto/cipher/test/aes_256_cbc_sha1_ssl3_tests.txt
  44. ./crypto/cipher/aead_test des-ede3-cbc-sha1-ssl3 $SRC/crypto/cipher/test/des_ede3_cbc_sha1_ssl3_tests.txt
  45. ./crypto/cipher/cipher_test $SRC/crypto/cipher/test/cipher_test.txt
  46. ./crypto/constant_time_test
  47. ./crypto/dh/dh_test
  48. ./crypto/digest/digest_test
  49. ./crypto/dsa/dsa_test
  50. ./crypto/ec/ec_test
  51. ./crypto/ec/example_mul
  52. ./crypto/ecdsa/ecdsa_test
  53. ./crypto/err/err_test
  54. ./crypto/evp/evp_test
  55. ./crypto/evp/pbkdf_test
  56. ./crypto/hkdf/hkdf_test
  57. ./crypto/hmac/hmac_test
  58. ./crypto/lhash/lhash_test
  59. ./crypto/modes/gcm_test
  60. ./crypto/pkcs8/pkcs12_test
  61. ./crypto/rsa/rsa_test
  62. ./crypto/x509/pkcs7_test
  63. ./crypto/x509v3/tab_test
  64. ./crypto/x509v3/v3name_test
  65. ./ssl/pqueue/pqueue_test
  66. ./ssl/ssl_test
  67. "
  68. IFS=$'\n'
  69. for bin in $TESTS; do
  70. echo $bin
  71. out=$(bash -c "$bin" | tail -n 1)
  72. if [ $? -ne 0 ]; then
  73. echo $bin failed to complete.
  74. exit 1
  75. fi
  76. if [ "x$out" != "xPASS" ]; then
  77. echo $bin failed to print PASS on the last line.
  78. exit 1
  79. fi
  80. done