2014-06-20 20:00:00 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-06-26 18:26:42 +01:00
|
|
|
# Copyright (c) 2014, Google Inc.
|
|
|
|
#
|
|
|
|
# Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
# purpose with or without fee is hereby granted, provided that the above
|
|
|
|
# copyright notice and this permission notice appear in all copies.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
|
|
|
# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
|
|
|
# OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
|
|
|
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
|
|
|
|
|
2014-08-07 02:44:40 +01:00
|
|
|
SRC=..
|
|
|
|
if [ "$#" -ge 1 ]; then
|
|
|
|
SRC=$1
|
|
|
|
fi
|
|
|
|
|
2014-06-20 20:00:00 +01:00
|
|
|
TESTS="
|
2014-08-07 02:44:40 +01:00
|
|
|
./crypto/cipher/aead_test aes-128-gcm $SRC/crypto/cipher/aes_128_gcm_tests.txt
|
|
|
|
./crypto/cipher/aead_test aes-256-gcm $SRC/crypto/cipher/aes_256_gcm_tests.txt
|
|
|
|
./crypto/cipher/aead_test chacha20-poly1305 $SRC/crypto/cipher/chacha20_poly1305_tests.txt
|
|
|
|
./crypto/cipher/aead_test rc4-md5 $SRC/crypto/cipher/rc4_md5_tests.txt
|
|
|
|
./crypto/cipher/aead_test aes-128-key-wrap $SRC/crypto/cipher/aes_128_key_wrap_tests.txt
|
|
|
|
./crypto/cipher/aead_test aes-256-key-wrap $SRC/crypto/cipher/aes_256_key_wrap_tests.txt
|
2014-07-17 06:51:59 +01:00
|
|
|
./crypto/base64/base64_test
|
2014-06-20 20:00:00 +01:00
|
|
|
./crypto/bio/bio_test
|
|
|
|
./crypto/bn/bn_test
|
2014-08-07 02:44:40 +01:00
|
|
|
./crypto/cipher/cipher_test $SRC/crypto/cipher/cipher_test.txt
|
2014-06-20 20:00:00 +01:00
|
|
|
./crypto/dh/dh_test
|
|
|
|
./crypto/dsa/dsa_test
|
|
|
|
./crypto/err/err_test
|
|
|
|
./crypto/ec/example_mul
|
|
|
|
./crypto/ecdsa/ecdsa_test
|
|
|
|
./crypto/evp/example_sign
|
|
|
|
./crypto/hmac/hmac_test
|
|
|
|
./crypto/lhash/lhash_test
|
|
|
|
./crypto/md5/md5_test
|
|
|
|
./crypto/modes/gcm_test
|
|
|
|
./crypto/rsa/rsa_test
|
|
|
|
./crypto/sha/sha1_test
|
|
|
|
./crypto/x509v3/tab_test
|
|
|
|
./crypto/x509v3/v3name_test
|
|
|
|
./crypto/bytestring/bytestring_test
|
2014-08-07 00:29:56 +01:00
|
|
|
./crypto/x509/pkcs7_test
|
2014-08-21 22:11:39 +01:00
|
|
|
./crypto/pkcs8/pkcs12_test
|
2014-07-16 19:37:51 +01:00
|
|
|
./ssl/ssl_test
|
2014-06-20 20:00:00 +01:00
|
|
|
"
|
|
|
|
|
2014-06-20 20:00:00 +01:00
|
|
|
IFS=$'\n'
|
2014-06-20 20:00:00 +01:00
|
|
|
for bin in $TESTS; do
|
|
|
|
echo $bin
|
|
|
|
out=$(/bin/bash -c "$bin" | tail -n 1)
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo $bin failed to complete.
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "x$out" != "xPASS" ]; then
|
|
|
|
echo $bin failed to print PASS on the last line.
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|