]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: add enviromental variable
authorKrenzelok Frantisek <krenzelok.frantisek@gmail.com>
Mon, 17 Mar 2025 11:41:24 +0000 (12:41 +0100)
committerKrenzelok Frantisek <krenzelok.frantisek@gmail.com>
Fri, 28 Mar 2025 10:19:24 +0000 (11:19 +0100)
Signed-off-by: Krenzelok Frantisek <krenzelok.frantisek@gmail.com>
tests/Makefile.am
tests/ktls.sh
tests/ktls_keyupdate.sh

index 9990ee21cc60dc06ebc5647185171a6413894a0b..b39a97bac364f41da5cc7a5ec49952f63ecbb307 100644 (file)
@@ -21,7 +21,7 @@
 
 SUBDIRS = . cert-tests slow
 
-TESTS_ENVIRONMENT =
+TESTS_ENVIRONMENT = HOST_OS=$$(uname)
 
 if WINDOWS
 SUBDIRS += windows
index ca9ead8df0cbbf72f428bdc6250482da8f2bd03f..c2847be833e8d2d3d3d89c2807955a0004d29682 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with GnuTLS. If not, see <https://www.gnu.org/licenses/>.
 
-: ${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
index 54706d8d9420d6d306d5aa1b6d3d8e0fa5ee30fc..54526727e35574e8a71edd32ec90d9b12e75b0b9 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with GnuTLS.  If not, see <https://www.gnu.org/licenses/>.
 
-: ${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