test/nashorn/Makefile
author darcy
Wed, 25 Apr 2018 22:12:06 -0700
changeset 49895 661ef62a6618
parent 47218 918745561887
permissions -rw-r--r--
8200478: For boxing conversion javac uses Long.valueOf which does not guarantee caching according to its javadoc Reviewed-by: bpb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37919
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
     1
#
42481
8dcc83c2d40e 8170629: Remove code duplication in test makefiles
ihse
parents: 42241
diff changeset
     2
# Copyright (c) 1995, 2016, Oracle and/or its affiliates. All rights reserved.
37919
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
     4
#
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    10
#
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    15
# accompanied this code).
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    16
#
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    20
#
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    23
# questions.
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    24
#
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    25
42481
8dcc83c2d40e 8170629: Remove code duplication in test makefiles
ihse
parents: 42241
diff changeset
    26
default: all
37919
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    27
42481
8dcc83c2d40e 8170629: Remove code duplication in test makefiles
ihse
parents: 42241
diff changeset
    28
USE_FAILURE_HANDLER := true
37919
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    29
47218
918745561887 8187445: Forest Consolidation: Make tests work
erikj
parents: 47216
diff changeset
    30
include ../TestCommon.gmk
37919
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    31
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    32
# Default make rule (runs default nashorn tests)
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    33
all: nashorn_default
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    34
	@$(ECHO) "Testing completed successfully"
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    35
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    36
# ------------------------------------------------------------------
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    37
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    38
nashorn_%:
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    39
	$(ECHO) "Running tests: $@"
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    40
	for each in $@; do \
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    41
	        $(MAKE) -j 1 TEST_SELECTION=":$$each" UNIQUE_DIR=$$each jtreg_tests; \
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    42
	done
3120a4aa6a96 8156658: Common way to run jtreg tests
sla
parents:
diff changeset
    43