Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openjdk-multiarch-jdk8u
Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/test/sun/security/ssl/Stapling/StatusResponseManager.sh
38853 views
1
#
2
# Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
#
5
# This code is free software; you can redistribute it and/or modify it
6
# under the terms of the GNU General Public License version 2 only, as
7
# published by the Free Software Foundation.
8
#
9
# This code is distributed in the hope that it will be useful, but WITHOUT
10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
# version 2 for more details (a copy is included in the LICENSE file that
13
# accompanied this code).
14
#
15
# You should have received a copy of the GNU General Public License version
16
# 2 along with this work; if not, write to the Free Software Foundation,
17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18
#
19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20
# or visit www.oracle.com if you need additional information or have any
21
# questions.
22
#
23
24
#
25
# @test
26
# @bug 8046321
27
# @library ../../../../java/security/testlibrary
28
# @build CertificateBuilder SimpleOCSPServer
29
# @run shell StatusResponseManager.sh
30
# @summary OCSP Stapling for TLS
31
32
33
if [ "${TESTJAVA}" = "" ]
34
then
35
echo "TESTJAVA not set. Test cannot execute. Failed."
36
exit 1
37
fi
38
39
if [ "${COMPILEJAVA}" = "" ]; then
40
COMPILEJAVA="${TESTJAVA}"
41
fi
42
43
if [ "${TESTSRC}" = "" ]
44
then
45
TESTSRC="."
46
fi
47
48
OS=`uname -s`
49
case "$OS" in
50
SunOS | Linux | Darwin | AIX )
51
FILESEP="/"
52
PATHSEP=":"
53
;;
54
55
CYGWIN* )
56
FILESEP="/"
57
PATHSEP=";"
58
;;
59
60
Windows* )
61
FILESEP="\\"
62
PATHSEP=";"
63
;;
64
esac
65
66
set -ex
67
echo TESTCLASSES=${TESTCLASSES}
68
echo CPAPPEND=${CPAPPEND}
69
70
#
71
# Compile the tests, package into their respective jars
72
#
73
${COMPILEJAVA}${FILESEP}bin${FILESEP}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d . \
74
-classpath ${TESTCLASSES}/../../../../java/security/testlibrary \
75
${TESTSRC}${FILESEP}java.base${FILESEP}sun${FILESEP}security${FILESEP}ssl${FILESEP}StatusResponseManagerTests.java
76
77
${COMPILEJAVA}${FILESEP}bin${FILESEP}jar ${TESTTOOLVMOPTS} -cvf strmt.jar \
78
sun${FILESEP}security${FILESEP}ssl${FILESEP}StatusResponseManagerTests*.class
79
80
#
81
# Don't want the original class files to be used, because
82
# we want the jar files with the associated contexts to
83
# be used.
84
#
85
rm -rf org
86
87
#
88
# This is the only thing we really care about as far as
89
# test status goes.
90
#
91
${TESTJAVA}${FILESEP}bin${FILESEP}java ${TESTVMOPTS} \
92
-Dtest.src=${TESTSRC} \
93
-Xbootclasspath/a:"strmt.jar"${PATHSEP}${TESTCLASSES}/../../../../java/security/testlibrary \
94
-Djavax.net.debug=ssl:respmgr \
95
sun.security.ssl.StatusResponseManagerTests
96
retval=$?
97
98
rm strmt.jar
99
100
exit $retval
101
102