From: Krenzelok Frantisek Date: Mon, 17 Mar 2025 11:41:24 +0000 (+0100) Subject: tests: add enviromental variable X-Git-Tag: 3.8.10~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaa6912f6ee6bd8ff5f1175bbd7ccedd0526695e;p=thirdparty%2Fgnutls.git tests: add enviromental variable Signed-off-by: Krenzelok Frantisek --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 9990ee21cc..b39a97bac3 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -21,7 +21,7 @@ SUBDIRS = . cert-tests slow -TESTS_ENVIRONMENT = +TESTS_ENVIRONMENT = HOST_OS=$$(uname) if WINDOWS SUBDIRS += windows diff --git a/tests/ktls.sh b/tests/ktls.sh index ca9ead8df0..c2847be833 100644 --- a/tests/ktls.sh +++ b/tests/ktls.sh @@ -19,11 +19,11 @@ # You should have received a copy of the GNU General Public License # along with GnuTLS. If not, see . -: ${builddir=.} ${host_os=`uname`} +: ${builddir=.} . "$srcdir/scripts/common.sh" -case "$host_os" in +case "$HOST_OS" in FreeBSD) if ! sysctl -n kern.ipc.tls.enable | grep 1 > /dev/null; then exit 77 diff --git a/tests/ktls_keyupdate.sh b/tests/ktls_keyupdate.sh index 54706d8d94..54526727e3 100755 --- a/tests/ktls_keyupdate.sh +++ b/tests/ktls_keyupdate.sh @@ -19,11 +19,11 @@ # You should have received a copy of the GNU General Public License # along with GnuTLS. If not, see . -: ${builddir=.} ${host_os=`uname`} +: ${builddir=.} . "$srcdir/scripts/common.sh" -case "$host_os" in +case "$HOST_OS" in FreeBSD) # key update is not yet supported on FreeBSD exit 77