test/Makefile

Print this page
rev 517 : 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
Summary: The HotSpot tests Makefile has a hardcoded SLASH_JAVA which makes it difficult to run the tests on non-Sun build machines which do not have a /java infrastructure.
Reviewed-by: ??


  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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  20 # CA 95054 USA or visit www.sun.com if you need additional information or
  21 # have any questions.
  22 #
  23 #
  24 
  25 #
  26 # Makefile to run various jdk tests
  27 #
  28 
  29 # Get OS/ARCH specifics
  30 OSNAME = $(shell uname -s)
  31 SLASH_JAVA = /java
  32 ifeq ($(OSNAME), SunOS)
  33   PLATFORM = solaris

  34   ARCH = $(shell uname -p)
  35   ifeq ($(ARCH), i386)
  36     ARCH=i586
  37   endif
  38 endif
  39 ifeq ($(OSNAME), Linux)
  40   PLATFORM = linux

  41   ARCH = $(shell uname -m)
  42   ifeq ($(ARCH), i386)
  43     ARCH = i586
  44   endif
  45 endif
  46 ifeq ($(OSNAME), Windows_NT)
  47   PLATFORM = windows
  48   SLASH_JAVA = J:
  49   ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),ia64)
  50     ARCH = ia64
  51   else
  52     ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),AMD64)
  53       ARCH = x64
  54     else
  55       ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),EM64T)
  56         ARCH = x64
  57       else
  58         ARCH = i586
  59       endif
  60     endif
  61   endif
  62   EXESUFFIX = .exe
  63 endif
  64 




  65 # Utilities used
  66 CD    = cd
  67 CP    = cp
  68 ECHO  = echo
  69 MKDIR = mkdir
  70 ZIP   = zip
  71 
  72 # Root of this test area (important to use full paths in some places)
  73 TEST_ROOT := $(shell pwd)
  74 
  75 # Root of all test results
  76 ABS_BUILD_ROOT = $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)
  77 ABS_TEST_OUTPUT_DIR = $(ABS_BUILD_ROOT)/testoutput
  78 
  79 # Expect JPRT to set PRODUCT_HOME (the product or jdk in this case to test)
  80 ifndef PRODUCT_HOME
  81   # Try to use j2sdk-image if it exists
  82   ABS_JDK_IMAGE = $(ABS_BUILD_ROOT)/j2sdk-image
  83   PRODUCT_HOME :=                       \
  84     $(shell                             \




  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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  20 # CA 95054 USA or visit www.sun.com if you need additional information or
  21 # have any questions.
  22 #
  23 #
  24 
  25 #
  26 # Makefile to run various jdk tests
  27 #
  28 
  29 # Get OS/ARCH specifics
  30 OSNAME = $(shell uname -s)

  31 ifeq ($(OSNAME), SunOS)
  32   PLATFORM = solaris
  33   SLASH_JAVA = /java
  34   ARCH = $(shell uname -p)
  35   ifeq ($(ARCH), i386)
  36     ARCH=i586
  37   endif
  38 endif
  39 ifeq ($(OSNAME), Linux)
  40   PLATFORM = linux
  41   SLASH_JAVA = /java
  42   ARCH = $(shell uname -m)
  43   ifeq ($(ARCH), i386)
  44     ARCH = i586
  45   endif
  46 endif
  47 ifeq ($(OSNAME), Windows_NT)
  48   PLATFORM = windows
  49   SLASH_JAVA = J:
  50   ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),ia64)
  51     ARCH = ia64
  52   else
  53     ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),AMD64)
  54       ARCH = x64
  55     else
  56       ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),EM64T)
  57         ARCH = x64
  58       else
  59         ARCH = i586
  60       endif
  61     endif
  62   endif
  63   EXESUFFIX = .exe
  64 endif
  65 
  66 ifdef ALT_SLASH_JAVA
  67   SLASH_JAVA = $(ALT_SLASH_JAVA)
  68 endif
  69 
  70 # Utilities used
  71 CD    = cd
  72 CP    = cp
  73 ECHO  = echo
  74 MKDIR = mkdir
  75 ZIP   = zip
  76 
  77 # Root of this test area (important to use full paths in some places)
  78 TEST_ROOT := $(shell pwd)
  79 
  80 # Root of all test results
  81 ABS_BUILD_ROOT = $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)
  82 ABS_TEST_OUTPUT_DIR = $(ABS_BUILD_ROOT)/testoutput
  83 
  84 # Expect JPRT to set PRODUCT_HOME (the product or jdk in this case to test)
  85 ifndef PRODUCT_HOME
  86   # Try to use j2sdk-image if it exists
  87   ABS_JDK_IMAGE = $(ABS_BUILD_ROOT)/j2sdk-image
  88   PRODUCT_HOME :=                       \
  89     $(shell                             \