summaryrefslogtreecommitdiff
path: root/tests/ocsp-tests/ocsptool
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2021-01-30 10:49:07 +0100
committerDaiki Ueno <ueno@gnu.org>2021-02-17 18:09:46 +0100
commit0ae814c77b18a925552b7a763a13ed1c63e2d1bd (patch)
tree0039f6b9168601eec8bac7d5a0d81409205dcf4d /tests/ocsp-tests/ocsptool
parent02d981e0f85223523cf0b6b42f087db060e5705c (diff)
downloadgnutls-0ae814c77b18a925552b7a763a13ed1c63e2d1bd.tar.gz
tests: suffix .sh for all shell-script tests
Otherwise valgrind will run against /bin/sh. Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'tests/ocsp-tests/ocsptool')
-rwxr-xr-xtests/ocsp-tests/ocsptool89
1 files changed, 0 insertions, 89 deletions
diff --git a/tests/ocsp-tests/ocsptool b/tests/ocsp-tests/ocsptool
deleted file mode 100755
index b10013ed32..0000000000
--- a/tests/ocsp-tests/ocsptool
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/sh
-
-# Copyright (C) 2017 Red Hat, Inc.
-#
-# This file is part of GnuTLS.
-#
-# GnuTLS is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by the
-# Free Software Foundation; either version 3 of the License, or (at
-# your option) any later version.
-#
-# GnuTLS is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with this program. If not, see <https://www.gnu.org/licenses/>
-
-#set -e
-
-# Sanity check program for various ocsptool options
-
-: ${srcdir=.}
-: ${OCSPTOOL=../src/ocsptool${EXEEXT}}
-: ${DIFF=diff}
-: ${CMP=cmp}
-TMPFILE=ocsp.$$.tmp
-
-if ! test -x "${OCSPTOOL}"; then
- exit 77
-fi
-
-export TZ="UTC"
-
-"${OCSPTOOL}" -j --infile "${srcdir}/ocsp-tests/response1.pem" --outfile "${TMPFILE}"
-rc=$?
-
-# We're done.
-if test "${rc}" != "0"; then
- echo "Test 1 - PEM loading failed"
- exit ${rc}
-fi
-
-${CMP} "${srcdir}/ocsp-tests/response1.der" "${TMPFILE}" >/dev/null 2>&1
-rc=$?
-if test "${rc}" != "0"; then
- echo "Test 1 - Comparison of DER file failed"
- exit ${rc}
-fi
-
-"${OCSPTOOL}" -j --outpem --infile "${srcdir}/ocsp-tests/response1.pem" --outfile "${TMPFILE}"
-rc=$?
-
-# We're done.
-if test "${rc}" != "0"; then
- echo "Test 2 - PEM loading failed"
- exit ${rc}
-fi
-
-${DIFF} -B "${srcdir}/ocsp-tests/response1.pem" "${TMPFILE}" >/dev/null 2>&1
-rc=$?
-if test "${rc}" != "0"; then
- echo "Test 2 - Comparison of PEM file failed $TMPFILE"
- exit ${rc}
-fi
-
-
-"${OCSPTOOL}" -j --infile "${srcdir}/ocsp-tests/response1.der"
-rc=$?
-
-# We're done.
-if test "${rc}" != "0"; then
- echo "Test 3 - Transparent (backwards compatible) DER loading failed"
- exit ${rc}
-fi
-
-"${OCSPTOOL}" -j --inder --infile "${srcdir}/ocsp-tests/response1.der"
-rc=$?
-
-# We're done.
-if test "${rc}" != "0"; then
- echo "Test 4 - DER loading failed"
- exit ${rc}
-fi
-
-rm -f "${TMPFILE}"
-
-exit 0