mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	Testsuite: Test for the openssl command before using it
And skip the tests calling it instead of failing!
This commit is contained in:
		| @@ -1,7 +1,7 @@ | |||||||
| #!/bin/sh | #!/bin/sh | ||||||
| # | # | ||||||
| # ngIRCd Test Suite | # 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 | # 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 | # 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 |   echo "${name}: \"telnet\" not found.";  exit 77 | ||||||
| fi | 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 | # prepare expect script | ||||||
| e_in="${srcdir}/${test}.e" | e_in="${srcdir}/${test}.e" | ||||||
| e_tmp="${test}.e_" | e_tmp="${test}.e_" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton