Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/test/sun/security/ssl/Stapling/StatusResponseManager.sh
38853 views
#1# Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.2# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3#4# This code is free software; you can redistribute it and/or modify it5# under the terms of the GNU General Public License version 2 only, as6# published by the Free Software Foundation.7#8# This code is distributed in the hope that it will be useful, but WITHOUT9# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11# version 2 for more details (a copy is included in the LICENSE file that12# accompanied this code).13#14# You should have received a copy of the GNU General Public License version15# 2 along with this work; if not, write to the Free Software Foundation,16# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17#18# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19# or visit www.oracle.com if you need additional information or have any20# questions.21#2223#24# @test25# @bug 804632126# @library ../../../../java/security/testlibrary27# @build CertificateBuilder SimpleOCSPServer28# @run shell StatusResponseManager.sh29# @summary OCSP Stapling for TLS303132if [ "${TESTJAVA}" = "" ]33then34echo "TESTJAVA not set. Test cannot execute. Failed."35exit 136fi3738if [ "${COMPILEJAVA}" = "" ]; then39COMPILEJAVA="${TESTJAVA}"40fi4142if [ "${TESTSRC}" = "" ]43then44TESTSRC="."45fi4647OS=`uname -s`48case "$OS" in49SunOS | Linux | Darwin | AIX )50FILESEP="/"51PATHSEP=":"52;;5354CYGWIN* )55FILESEP="/"56PATHSEP=";"57;;5859Windows* )60FILESEP="\\"61PATHSEP=";"62;;63esac6465set -ex66echo TESTCLASSES=${TESTCLASSES}67echo CPAPPEND=${CPAPPEND}6869#70# Compile the tests, package into their respective jars71#72${COMPILEJAVA}${FILESEP}bin${FILESEP}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d . \73-classpath ${TESTCLASSES}/../../../../java/security/testlibrary \74${TESTSRC}${FILESEP}java.base${FILESEP}sun${FILESEP}security${FILESEP}ssl${FILESEP}StatusResponseManagerTests.java7576${COMPILEJAVA}${FILESEP}bin${FILESEP}jar ${TESTTOOLVMOPTS} -cvf strmt.jar \77sun${FILESEP}security${FILESEP}ssl${FILESEP}StatusResponseManagerTests*.class7879#80# Don't want the original class files to be used, because81# we want the jar files with the associated contexts to82# be used.83#84rm -rf org8586#87# This is the only thing we really care about as far as88# test status goes.89#90${TESTJAVA}${FILESEP}bin${FILESEP}java ${TESTVMOPTS} \91-Dtest.src=${TESTSRC} \92-Xbootclasspath/a:"strmt.jar"${PATHSEP}${TESTCLASSES}/../../../../java/security/testlibrary \93-Djavax.net.debug=ssl:respmgr \94sun.security.ssl.StatusResponseManagerTests95retval=$?9697rm strmt.jar9899exit $retval100101102