diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-03-28 21:31:58 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-03-28 21:32:54 +0200 |
commit | 06dcfb21d92f13fa62f7bb6412737aaed44bd6c2 (patch) | |
tree | c629cee66e1b1e70c9149d3d6f0148dea196b339 /tests | |
parent | 2df3b9d72f283d6a52b1625465a9d1b07cd8d0c3 (diff) | |
download | gnutls-06dcfb21d92f13fa62f7bb6412737aaed44bd6c2.tar.gz |
made more silent.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/openpgp-certs/testcerts | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/openpgp-certs/testcerts b/tests/openpgp-certs/testcerts index ecf39810d1..b100ac8f38 100755 --- a/tests/openpgp-certs/testcerts +++ b/tests/openpgp-certs/testcerts @@ -24,6 +24,7 @@ srcdir="${srcdir:-.}" SERV="${SERV:-../../src/gnutls-serv} -q" CLI="${CLI:-../../src/gnutls-cli}" PORT="${PORT:-5557}" +DEBUG="" unset RETCODE fail() { @@ -45,10 +46,10 @@ sleep 2 #$CLI -p $PORT 127.0.0.1 --pgpkeyring ca-public.gpg </dev/null >/dev/null || \ # fail "Connection to verified IP address should have succeeded! (error code $?)" $? -$CLI -p $PORT 127.0.0.2 --pgpkeyring $srcdir/ca-public.gpg </dev/null >/dev/null && \ +$CLI $DEBUG -p $PORT 127.0.0.2 --pgpkeyring $srcdir/ca-public.gpg </dev/null >/dev/null 2>&1 && \ fail "Connection to unrecognized IP address should have failed!" -$CLI -p $PORT localhost --pgpkeyring $srcdir/ca-public.gpg </dev/null >/dev/null && \ +$CLI $DEBUG -p $PORT localhost --pgpkeyring $srcdir/ca-public.gpg </dev/null >/dev/null 2>&1 && \ fail "Connection to unverified (but present) 'localhost' should have failed!" kill $PID @@ -60,10 +61,10 @@ trap "kill $PID" 1 15 2 # give the server a chance to initialize sleep 2 -echo | $CLI -p $PORT 127.0.0.1 --pgpkeyring $srcdir/ca-public.gpg </dev/null >/dev/null && \ +echo | $CLI $DEBUG -p $PORT 127.0.0.1 --pgpkeyring $srcdir/ca-public.gpg </dev/null >/dev/null 2>&1 && \ fail "Connection to unverified IP address should have failed! (error code $?)" $? -$CLI -p $PORT 127.0.0.2 --pgpkeyring $srcdir/ca-public.gpg </dev/null >/dev/null && \ +$CLI $DEBUG -p $PORT 127.0.0.2 --pgpkeyring $srcdir/ca-public.gpg </dev/null >/dev/null 2>&1 && \ fail "Connection to unrecognized IP address should have failed!" #see reason above @@ -78,10 +79,10 @@ trap "kill $PID" 1 15 2 # give the server a chance to initialize sleep 2 -echo | $CLI -p $PORT 127.0.0.1 --pgpkeyring $srcdir/ca-public.gpg </dev/null >/dev/null || \ +echo | $CLI $DEBUG -p $PORT 127.0.0.1 --pgpkeyring $srcdir/ca-public.gpg </dev/null >/dev/null || \ fail "Connection to signed PGP certificate should have succeeded! (error code $?)" $? -$CLI -p $PORT 127.0.0.2 --pgpkeyring $srcdir/ca-public.gpg </dev/null >/dev/null && \ +$CLI $DEBUG -p $PORT 127.0.0.2 --pgpkeyring $srcdir/ca-public.gpg </dev/null >/dev/null && \ fail "Connection to unrecognized IP address should have failed!" kill $PID |