diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-20 17:50:24 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-20 17:50:24 +0200 |
commit | c46143f61e368509b355e6efd46352d016b8c6ab (patch) | |
tree | d8a917daa277cc3372653f8feb656173083014a5 | |
parent | 478cdc0742ece77d443de2e8642dcb1a059029c3 (diff) | |
download | gnutls-c46143f61e368509b355e6efd46352d016b8c6ab.tar.gz |
tests: use /bin/bash in tests which require common.sh
-rw-r--r-- | tests/scripts/common.sh | 4 | ||||
-rwxr-xr-x | tests/suite/eagain.sh | 2 | ||||
-rwxr-xr-x | tests/suite/testcompat-main-openssl | 2 | ||||
-rwxr-xr-x | tests/suite/testcompat-main-polarssl | 2 | ||||
-rwxr-xr-x | tests/suite/testdane.sh | 2 | ||||
-rwxr-xr-x | tests/suite/testpkcs11.sh | 2 | ||||
-rwxr-xr-x | tests/suite/testrng.sh | 2 | ||||
-rwxr-xr-x | tests/suite/testsrn.sh | 2 |
8 files changed, 10 insertions, 8 deletions
diff --git a/tests/scripts/common.sh b/tests/scripts/common.sh index ec8c7c3c4f..9c9c3fb3aa 100644 --- a/tests/scripts/common.sh +++ b/tests/scripts/common.sh @@ -1,4 +1,5 @@ -# Copyright (C) 2011-2012 Free Software Foundation, Inc. +# Copyright (C) 2011-2016 Free Software Foundation, Inc. +# Copyright (C) 2015-2016 Red Hat, Inc. # # This file is part of GnuTLS. # @@ -18,6 +19,7 @@ # along with this file; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# due to the use of $RANDOM, this script requires bash GETPORT='rc=0;while test $rc = 0;do PORT="$(((($$<<15)|RANDOM) % 63001 + 2000))"; netstat -anl|grep "[\:\.]$PORT" >/dev/null 2>&1; diff --git a/tests/suite/eagain.sh b/tests/suite/eagain.sh index c9c526ac82..1663e7e85b 100755 --- a/tests/suite/eagain.sh +++ b/tests/suite/eagain.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright (C) 2006-2008, 2010, 2012 Free Software Foundation, Inc. # diff --git a/tests/suite/testcompat-main-openssl b/tests/suite/testcompat-main-openssl index d6b53e0a26..6933c9c780 100755 --- a/tests/suite/testcompat-main-openssl +++ b/tests/suite/testcompat-main-openssl @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright (c) 2010-2016, Free Software Foundation, Inc. # Copyright (c) 2012-2016, Nikos Mavrogiannopoulos diff --git a/tests/suite/testcompat-main-polarssl b/tests/suite/testcompat-main-polarssl index a004f710c3..f2fd66dff3 100755 --- a/tests/suite/testcompat-main-polarssl +++ b/tests/suite/testcompat-main-polarssl @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright (c) 2010-2015, Free Software Foundation, Inc. # Copyright (c) 2012-2015, Nikos Mavrogiannopoulos diff --git a/tests/suite/testdane.sh b/tests/suite/testdane.sh index c2408ec7ff..98dd238c65 100755 --- a/tests/suite/testdane.sh +++ b/tests/suite/testdane.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright (C) 2013 Nikos Mavrogiannopoulos # diff --git a/tests/suite/testpkcs11.sh b/tests/suite/testpkcs11.sh index e4e2403647..68684ab398 100755 --- a/tests/suite/testpkcs11.sh +++ b/tests/suite/testpkcs11.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright (C) 2013 Nikos Mavrogiannopoulos # diff --git a/tests/suite/testrng.sh b/tests/suite/testrng.sh index c45c9300eb..fabd4eea2f 100755 --- a/tests/suite/testrng.sh +++ b/tests/suite/testrng.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright (C) 2014 Nikos Mavrogiannopoulos # diff --git a/tests/suite/testsrn.sh b/tests/suite/testsrn.sh index 1c6bfc3191..446a988282 100755 --- a/tests/suite/testsrn.sh +++ b/tests/suite/testsrn.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright (C) 2010-2012 Free Software Foundation, Inc. # |