diff options
| author | Alexander Barton <alex@barton.de> | 2024-01-23 14:41:48 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2024-01-23 14:43:06 +0100 |
| commit | 951c8b84ab926298bf2fb05a172cf75d80300289 (patch) | |
| tree | d0f1f18c19564e32312bb1895c491ddf65f518ea | |
| parent | 14838a249f27048014d49a191bd8d3014ee3080f (diff) | |
| download | ngircd-951c8b84ab926298bf2fb05a172cf75d80300289.tar.gz ngircd-951c8b84ab926298bf2fb05a172cf75d80300289.zip | |
Testsuite: Test for the openssl command before using it
And skip the tests calling it instead of failing!
| -rwxr-xr-x | src/testsuite/tests.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/testsuite/tests.sh b/src/testsuite/tests.sh index fc4a4d5d..7af8c593 100755 --- a/src/testsuite/tests.sh +++ b/src/testsuite/tests.sh @@ -1,7 +1,7 @@ #!/bin/sh # # ngIRCd Test Suite -# Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors. +# Copyright (c)2001-2024 Alexander Barton (alex@barton.de) and Contributors. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -37,6 +37,16 @@ if [ $? -ne 0 ]; then echo "${name}: \"telnet\" not found."; exit 77 fi +case "$test" in + *ssl*) + type openssl > /dev/null 2>&1 + if [ $? -ne 0 ]; then + echo "$test: \"openssl\" not found" >>tests-skipped.lst + echo "${name}: \"openssl\" not found."; exit 77 + fi + ;; +esac + # prepare expect script e_in="${srcdir}/${test}.e" e_tmp="${test}.e_" |