95c29f3cd1
Initial fork from f2d678e6e89b6508147086610e985d4e8416e867 (1.0.2 beta). (This change contains substantial changes from the original and effectively starts a new history.)
36 lines
729 B
Bash
36 lines
729 B
Bash
#!/bin/bash
|
|
|
|
TESTS="\
|
|
./crypto/bio/bio_test \
|
|
./crypto/bn/bn_test \
|
|
./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 \
|
|
"
|
|
|
|
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
|