Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

all_tests.sh 2.0 KiB

há 10 anos
há 10 anos
há 10 anos
há 10 anos
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #!/bin/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. TESTS="
  16. ./crypto/cipher/aead_test aes-128-gcm ../crypto/cipher/aes_128_gcm_tests.txt
  17. ./crypto/cipher/aead_test aes-256-gcm ../crypto/cipher/aes_256_gcm_tests.txt
  18. ./crypto/cipher/aead_test chacha20-poly1305 ../crypto/cipher/chacha20_poly1305_tests.txt
  19. ./crypto/cipher/aead_test rc4-md5 ../crypto/cipher/rc4_md5_tests.txt
  20. ./crypto/cipher/aead_test aes-128-key-wrap ../crypto/cipher/aes_128_key_wrap_tests.txt
  21. ./crypto/cipher/aead_test aes-256-key-wrap ../crypto/cipher/aes_256_key_wrap_tests.txt
  22. ./crypto/base64/base64_test
  23. ./crypto/bio/bio_test
  24. ./crypto/bn/bn_test
  25. ./crypto/cipher/cipher_test ../crypto/cipher/cipher_test.txt
  26. ./crypto/dh/dh_test
  27. ./crypto/dsa/dsa_test
  28. ./crypto/err/err_test
  29. ./crypto/ec/example_mul
  30. ./crypto/ecdsa/ecdsa_test
  31. ./crypto/evp/example_sign
  32. ./crypto/hmac/hmac_test
  33. ./crypto/lhash/lhash_test
  34. ./crypto/md5/md5_test
  35. ./crypto/modes/gcm_test
  36. ./crypto/rsa/rsa_test
  37. ./crypto/sha/sha1_test
  38. ./crypto/x509v3/tab_test
  39. ./crypto/x509v3/v3name_test
  40. ./crypto/bytestring/bytestring_test
  41. ./ssl/ssl_test
  42. "
  43. IFS=$'\n'
  44. for bin in $TESTS; do
  45. echo $bin
  46. out=$(/bin/bash -c "$bin" | tail -n 1)
  47. if [ $? -ne 0 ]; then
  48. echo $bin failed to complete.
  49. exit 1
  50. fi
  51. if [ "x$out" != "xPASS" ]; then
  52. echo $bin failed to print PASS on the last line.
  53. exit 1
  54. fi
  55. done