2019-08-04 05:58:56 +00:00
|
|
|
#!/bin/sh
|
2018-11-12 12:49:12 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
## Author......: See docs/credits.txt
|
|
|
|
## License.....: MIT
|
|
|
|
##
|
|
|
|
|
|
|
|
## Test suite installation helper script
|
|
|
|
|
|
|
|
# Sum of all exit codes
|
|
|
|
ERRORS=0
|
|
|
|
|
|
|
|
cpan install Authen::Passphrase::LANManager \
|
|
|
|
Authen::Passphrase::MySQL323 \
|
|
|
|
Authen::Passphrase::NTHash \
|
|
|
|
Authen::Passphrase::PHPass \
|
2019-11-16 09:48:52 +00:00
|
|
|
Compress::Zlib \
|
2018-11-12 12:49:12 +00:00
|
|
|
Convert::EBCDIC \
|
|
|
|
Crypt::CBC \
|
|
|
|
Crypt::DES \
|
2020-08-26 10:41:25 +00:00
|
|
|
Crypt::DES_EDE3 \
|
2018-11-12 12:49:12 +00:00
|
|
|
Crypt::Digest::RIPEMD160 \
|
|
|
|
Crypt::Digest::Whirlpool \
|
|
|
|
Crypt::ECB \
|
|
|
|
Crypt::Eksblowfish::Bcrypt \
|
2018-12-14 12:23:52 +00:00
|
|
|
Crypt::GCrypt \
|
2020-06-10 09:55:17 +00:00
|
|
|
Crypt::Mode::CBC \
|
2018-11-12 12:49:12 +00:00
|
|
|
Crypt::Mode::ECB \
|
|
|
|
Crypt::MySQL \
|
|
|
|
Crypt::OpenSSH::ChachaPoly \
|
2019-11-16 09:48:52 +00:00
|
|
|
Crypt::OpenSSL::EC \
|
|
|
|
Crypt::OpenSSL::Bignum::CTX \
|
2018-11-12 12:49:12 +00:00
|
|
|
Crypt::PBKDF2 \
|
|
|
|
Crypt::RC4 \
|
|
|
|
Crypt::Rijndael \
|
|
|
|
Crypt::ScryptKDF \
|
|
|
|
Crypt::Skip32 \
|
|
|
|
Crypt::Twofish \
|
|
|
|
Crypt::UnixCrypt_XS \
|
2018-12-21 08:10:23 +00:00
|
|
|
Data::Types \
|
2018-11-12 12:49:12 +00:00
|
|
|
Digest::BLAKE2 \
|
|
|
|
Digest::CMAC \
|
|
|
|
Digest::CRC \
|
|
|
|
Digest::GOST \
|
|
|
|
Digest::HMAC \
|
|
|
|
Digest::HMAC_MD5 \
|
|
|
|
Digest::Keccak \
|
|
|
|
Digest::MD4 \
|
|
|
|
Digest::MD5 \
|
|
|
|
Digest::Perl::MD5 \
|
|
|
|
Digest::SHA \
|
2018-11-18 19:48:01 +00:00
|
|
|
Digest::SHA1 \
|
2018-11-12 12:49:12 +00:00
|
|
|
Digest::SHA3 \
|
|
|
|
Digest::SipHash \
|
2020-06-10 09:55:17 +00:00
|
|
|
Encode \
|
2018-11-12 12:49:12 +00:00
|
|
|
JSON \
|
2018-11-18 07:55:49 +00:00
|
|
|
MIME::Base32 \
|
|
|
|
MIME::Base64 \
|
2018-11-12 12:49:12 +00:00
|
|
|
Net::DNS::RR::NSEC3 \
|
|
|
|
Net::DNS::SEC \
|
2020-06-10 09:55:17 +00:00
|
|
|
POSIX \
|
2018-11-18 07:55:49 +00:00
|
|
|
Text::Iconv \
|
2018-11-12 12:49:12 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
ERRORS=$((ERRORS+$?))
|
|
|
|
|
2020-08-26 10:49:54 +00:00
|
|
|
pip install pygost
|
2019-04-07 16:08:56 +00:00
|
|
|
|
2020-08-26 10:49:54 +00:00
|
|
|
# pip uninstall -y pycryptoplus pycrypto pycryptodome
|
2020-07-21 08:39:38 +00:00
|
|
|
|
2020-08-26 10:49:54 +00:00
|
|
|
pip install pycryptoplus
|
|
|
|
pip uninstall -y pycryptodome
|
|
|
|
pip install pycrypto
|
2018-11-12 12:49:12 +00:00
|
|
|
|
|
|
|
ERRORS=$((ERRORS+$?))
|
|
|
|
|
2020-06-10 09:45:31 +00:00
|
|
|
php --version > /dev/null 2> /dev/null
|
|
|
|
|
|
|
|
if [ "$?" -ne 0 ]
|
|
|
|
then
|
|
|
|
echo '[ ERROR ] php must be installed for some unit tests'
|
|
|
|
|
|
|
|
ERRORS=$((ERRORS+1))
|
|
|
|
fi
|
|
|
|
|
2018-11-12 12:49:12 +00:00
|
|
|
echo
|
|
|
|
if [ $ERRORS -eq 0 ]; then
|
|
|
|
echo '[ OK ] All commands were successful'
|
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
echo '[ FAIL ] Some commands were not successful'
|
|
|
|
exit 1
|
|
|
|
fi
|