8158066: SourceDebugExtensionTest fails to rename file
Reviewed-by: dcubed, dholmes
## Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.## This code is free software; you can redistribute it and/or modify it# under the terms of the GNU General Public License version 2 only, as# published by the Free Software Foundation. Oracle designates this# particular file as subject to the "Classpath" exception as provided# by Oracle in the LICENSE file that accompanied this code.## This code 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# version 2 for more details (a copy is included in the LICENSE file that# accompanied this code).## You should have received a copy of the GNU General Public License version# 2 along with this work; if not, write to the Free Software Foundation,# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.## Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA# or visit www.oracle.com if you need additional information or have any# questions.################################################################################## Fake minimalistic spec file for RunTestsPrebuilt.gmk.################################################################################define VerifyVariable ifeq ($$($1), ) $$(info Error: Variable $1 is missing, needed by RunTestPrebuiltSpec.gmk) $$(error Cannot continue.) else ifneq ($$(findstring $$(LOG_LEVEL), debug trace), ) $$(info Prebuilt variable $1=$$($1)) endif endifendef# It is the responsibility of the file including us to have set these up.# Verify that this is correct.$(eval $(call VerifyVariable,SPEC))$(eval $(call VerifyVariable,TOPDIR))$(eval $(call VerifyVariable,OUTPUTDIR))$(eval $(call VerifyVariable,BOOT_JDK))$(eval $(call VerifyVariable,JT_HOME))$(eval $(call VerifyVariable,JDK_IMAGE_DIR))$(eval $(call VerifyVariable,TEST_IMAGE_DIR))$(eval $(call VerifyVariable,MAKE))$(eval $(call VerifyVariable,BASH))################################################################################# The "human readable" name of this configurationCONF_NAME := run-test-prebuilt# Number of parallel jobs to use for compilationJOBS ?= $(NUM_CORES)TEST_JOBS ?= 0# Use hard-coded values for java flags (one size, fits all!)JAVA_FLAGS := -Duser.language=en -Duser.country=USJAVA_FLAGS_BIG:= -Xms64M -Xmx1600M -XX:ThreadStackSize=1536JAVA_FLAGS_SMALL:= -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1BUILD_JAVA_FLAGS := $(JAVA_FLAGS_BIG)################################################################################# Hard-coded values copied from spec.gmk.in.X:=SPACE:=$(X) $(X)COMMA:=,MAKE_ARGS = $(MAKE_LOG_FLAGS) -r -R -I $(TOPDIR)/make/common SPEC=$(SPEC) \ MAKE_LOG_FLAGS="$(MAKE_LOG_FLAGS)" LOG_LEVEL=$(LOG_LEVEL)BASH_ARGS := -o pipefail -eSHELL := $(BASH) $(BASH_ARGS)################################################################################# Set some reasonable defaults for featuresDEBUG_LEVEL := releaseHOTSPOT_DEBUG_LEVEL := releaseBUILD_GTEST := trueBUILD_FAILURE_HANDLER := true################################################################################# Alias some paths (that should not really be used) to our JDK image under test.SUPPORT_OUTPUTDIR := $(OUTPUTDIR)/supportBUILDTOOLS_OUTPUTDIR := $(OUTPUTDIR)/buildtoolsHOTSPOT_OUTPUTDIR := $(OUTPUTDIR)/hotspotJDK_OUTPUTDIR := $(OUTPUTDIR)/jdkIMAGES_OUTPUTDIR := $(OUTPUTDIR)/imagesBUNDLES_OUTPUTDIR := $(OUTPUTDIR)/bundlesTESTMAKE_OUTPUTDIR := $(OUTPUTDIR)/test-makeMAKESUPPORT_OUTPUTDIR := $(OUTPUTDIR)/make-supportBUILDJDK_OUTPUTDIR := $(OUTPUTDIR)/buildjdkJRE_IMAGE_DIR := $(JDK_IMAGE_DIR)################################################################################# Assume build platform is same as target platformOPENJDK_BUILD_OS := $(OPENJDK_TARGET_OS)OPENJDK_BUILD_OS_TYPE := $(OPENJDK_TARGET_OS_TYPE)OPENJDK_BUILD_OS_ENV := $(OPENJDK_TARGET_OS_ENV)OPENJDK_BUILD_CPU := $(OPENJDK_TARGET_CPU)OPENJDK_BUILD_CPU_ARCH := $(OPENJDK_TARGET_CPU_ARCH)OPENJDK_BUILD_CPU_BITS := $(OPENJDK_TARGET_CPU_BITS)OPENJDK_BUILD_CPU_ENDIAN := $(OPENJDK_TARGET_CPU_ENDIAN)################################################################################# Java executable definitionsJAVA_CMD := $(BOOT_JDK)/bin/javaJAVAC_CMD := $(BOOT_JDK)/bin/javacJAR_CMD := $(BOOT_JDK)/bin/jarJLINK_CMD := $(JDK_OUTPUTDIR)/bin/jlinkJMOD_CMD := $(JDK_OUTPUTDIR)/bin/jmodJARSIGNER_CMD := $(BOOT_JDK)/bin/jarsignerJAVA := $(FIXPATH) $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)JAVA_SMALL := $(FIXPATH) $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)JAVA_JAVAC := $(FIXPATH) $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)JAVAC := $(FIXPATH) $(JAVAC_CMD)JAR := $(FIXPATH) $(JAR_CMD)JLINK := $(FIXPATH) $(JLINK_CMD)JMOD := $(FIXPATH) $(JMOD_CMD)JARSIGNER := $(FIXPATH) $(JARSIGNER_CMD)BUILD_JAVA := $(JDK_IMAGE_DIR)/bin/JAVA################################################################################# Some common tools. Assume most common name and no path.AWK := awkBASENAME := basenameCAT := catCD := cdCHMOD := chmodCP := cpCUT := cutDATE := dateDIFF := diffDIRNAME := dirnameFIND := findFIND_DELETE := -deleteECHO := echoEGREP := grep -EFGREP := grep -FGREP := grepGZIP := gzipHEAD := headLS := lsLN := lnMIG := migMKDIR := mkdirMV := mvNAWK := nawkNICE := nicePATCH := patchPRINTF := printfRM := rm -fRMDIR := rmdirSED := sedSH := shSORT := sortTAR := tarTAIL := tailTEE := teeTR := trTOUCH := touchUNIQ := uniqWC := wcXARGS := xargsZIPEXE := zipUNZIP := unzipEXPR := exprFILE := fileHG := hg# On Solaris gnu versions of some tools are required.ifeq ($(OPENJDK_BUILD_OS), solaris) AWK := gawk GREP := ggrep EGREP := ggrep -E FGREP := grep -F SED := gsed TAR := gtarendififeq ($(OPENJDK_BUILD_OS), windows) CYGPATH := cygpathendif################################################################################# Simple macros from spec.gmk.inSHARED_LIBRARY=$(LIBRARY_PREFIX)$1$(SHARED_LIBRARY_SUFFIX)