rhdunn / espeak

eSpeak NG is an open source speech synthesizer that supports 101 languages and accents.
http://reecedunn.co.uk/espeak-for-android
GNU General Public License v3.0
386 stars 16 forks source link

tests/language.test: Use different hashing commands when needed #108

Closed twinshadow closed 7 years ago

twinshadow commented 7 years ago

Testing fix for #107

Outside of Linux platforms, sha1 hashing from the command-line is accomplished by commands other than sha1sum. OSX uses shasum (from Perl) and FreeBSD uses sha1, so I've added in detection for the appropriate command before falling back and failing the test.

This could be further enhanced by adding an OpenSSL sha1sum command as well.