Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/test/sun/security/ssl/internal/TestRun.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 814525526# @run shell TestRun.sh27# @summary HKDF for Sun JSSE282930if [ "${TESTJAVA}" = "" ]31then32echo "TESTJAVA not set. Test cannot execute. Failed."33exit 134fi3536if [ "${COMPILEJAVA}" = "" ]; then37COMPILEJAVA="${TESTJAVA}"38fi3940if [ "${TESTSRC}" = "" ]41then42TESTSRC="."43fi4445OS=`uname -s`46case "$OS" in47SunOS | Linux | Darwin | AIX )48FILESEP="/"49PATHSEP=":"50;;5152CYGWIN* )53FILESEP="/"54PATHSEP=";"55;;5657Windows* )58FILESEP="\\"59PATHSEP=";"60;;61esac6263set -ex6465#66# Compile the tests, package into their respective jars67#68${COMPILEJAVA}${FILESEP}bin${FILESEP}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d . \69${TESTSRC}${FILESEP}java.base${FILESEP}sun${FILESEP}security${FILESEP}ssl${FILESEP}TestHkdf.java70${COMPILEJAVA}${FILESEP}bin${FILESEP}jar ${TESTTOOLVMOPTS} -cvf hkdf.jar \71sun${FILESEP}security${FILESEP}ssl${FILESEP}TestHkdf*.class7273#74# Don't want the original class files to be used, because75# we want the jar files with the associated contexts to76# be used.77#78rm -rf org7980#81# This is the only thing we really care about as far as82# test status goes.83#84${TESTJAVA}${FILESEP}bin${FILESEP}java ${TESTVMOPTS} \85-Dtest.src=${TESTSRC} \86-Xbootclasspath/a:"hkdf.jar" \87sun.security.ssl.TestHkdf88retval=$?8990rm hkdf.jar9192exit $retval939495