8151269: [TEST] add test covering getSource() method for multiresolution image
Reviewed-by: alexsch, serb
## Copyright (c) 1999, 2014, 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.## 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.### top.make is included in the Makefile in the build directories.# It DOES NOT include the vm dependency info in order to be faster.# Its main job is to implement the incremental form of make lists.# It also:# -builds and runs adlc via adlc.make# -generates JVMTI source and docs via jvmti.make (JSR-163)# It assumes the following flags are set:# CFLAGS Platform_file, Src_Dirs_I, Src_Dirs_V, SYSDEFS, AOUT, Obj_Files# -- D. Ungar (5/97) from a file by Bill Bush# Don't override the built-in $(MAKE).# Instead, use "gmake" (or "gnumake") from the command line. --Rose#MAKE = gmakeinclude $(GAMMADIR)/make/altsrc.makeTOPDIR = $(shell echo `pwd`)GENERATED = $(TOPDIR)/../generatedVM = $(GAMMADIR)/src/share/vmPlat_File = $(Platform_file)CDG = cd $(GENERATED);ifneq ($(USE_PRECOMPILED_HEADER),0)UpdatePCH = $(MAKE) -f vm.make $(PRECOMPILED_HEADER) $(MFLAGS)elseUpdatePCH = \# precompiled header is not usedendifCached_plat = $(GENERATED)/platform.currentAD_Dir = $(GENERATED)/adfilesADLC = $(AD_Dir)/adlcAD_Spec = $(call altsrc-replace,$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad)AD_Src = $(call altsrc-replace,$(HS_COMMON_SRC)/share/vm/adlc)AD_Names = ad_$(Platform_arch_model).hpp ad_$(Platform_arch_model).cppAD_Files = $(AD_Names:%=$(AD_Dir)/%)# AD_Files_If_Required/COMPILER1 = ad_stuffAD_Files_If_Required/COMPILER2 = ad_stuffAD_Files_If_Required/TIERED = ad_stuffAD_Files_If_Required = $(AD_Files_If_Required/$(TYPE))# Wierd argument adjustment for "gnumake -j..."adjust-mflags = $(GENERATED)/adjust-mflags# If SPEC is set, it's from configure and it's already controlling concurrency# for us. Skip setting -j with HOTSPOT_BUILD_JOBS.ifeq ($(SPEC), ) MFLAGS-adjusted = -r `$(adjust-mflags) "$(MFLAGS)" "$(HOTSPOT_BUILD_JOBS)"`else MFLAGS-adjusted = -r $(MFLAGS)endif# default target: update lists, make vm# done in stages to force sequential order with parallel make#default: vm_build_preliminaries the_vm @echo All done.# This is an explicit dependency for the sake of parallel makes.vm_build_preliminaries: checks $(Cached_plat) $(AD_Files_If_Required) trace_stuff jvmti_stuff @# We need a null action here, so implicit rules don't get consulted.$(Cached_plat): $(Plat_File) $(CDG) $(CP) $(Plat_File) $(Cached_plat)# make AD files as necessaryad_stuff: $(Cached_plat) $(adjust-mflags) @$(MAKE) -f adlc.make $(MFLAGS-adjusted)# generate JVMTI files from the specjvmti_stuff: $(Cached_plat) $(adjust-mflags) @$(MAKE) -f jvmti.make $(MFLAGS-adjusted)# generate trace filestrace_stuff: jvmti_stuff $(Cached_plat) $(adjust-mflags) @$(MAKE) -f trace.make $(MFLAGS-adjusted)# and the VM: must use other makefile with dependencies included# We have to go to great lengths to get control over the -jN argument# to the recursive invocation of vm.make. The problem is that gnumake# resets -jN to -j1 for recursive runs. (How helpful.)# Note that the user must specify the desired parallelism level via a# command-line or environment variable name HOTSPOT_BUILD_JOBS.$(adjust-mflags): $(GAMMADIR)/make/$(Platform_os_family)/makefiles/adjust-mflags.sh @+rm -f $@ $@+ @+cat $< > $@+ @+chmod +x $@+ @+mv $@+ $@the_vm: vm_build_preliminaries $(adjust-mflags) +@$(UpdatePCH) @$(MAKE) -f vm.make $(MFLAGS-adjusted)install gamma: the_vm @$(MAKE) -f vm.make $@# next rules support "make foo.[ois]"%.o %.i %.s: +$(UpdatePCH) $(MAKE) -f vm.make $(MFLAGS) $@ #$(MAKE) -f vm.make $@# this should force everything to be rebuiltclean: rm -f $(GENERATED)/*.class $(MAKE) -f vm.make $(MFLAGS) clean# just in case it doesn't, this should do itrealclean: $(MAKE) -f vm.make $(MFLAGS) clean rm -fr $(GENERATED).PHONY: default vm_build_preliminaries.PHONY: lists ad_stuff jvmti_stuff the_vm clean realclean.PHONY: checks check_os_version install.NOTPARALLEL: