jdk/test/java/lang/instrument/ManifestTest.sh
author ohair
Tue, 25 May 2010 15:58:33 -0700
changeset 5506 202f599c92aa
parent 273 3d51c181a2e5
child 10150 dee4cb73adc3
permissions -rw-r--r--
6943119: Rebrand source copyright notices Reviewed-by: darcy, weijun
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
273
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
     1
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 273
diff changeset
     2
# Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
273
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
     4
#
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
     7
# published by the Free Software Foundation.
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
     8
#
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    13
# accompanied this code).
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    14
#
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    18
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 273
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 273
diff changeset
    20
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 273
diff changeset
    21
# questions.
273
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    22
#
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    23
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    24
# @test
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    25
# @bug 6274276
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    26
# @summary JLI JAR manifest processing should ignore leading and trailing white space.
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    27
# @author Daniel D. Daugherty
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    28
#
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    29
# @run build ManifestTestApp
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    30
# @run shell/timeout=900 ManifestTest.sh
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    31
#
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    32
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    33
make_a_JAR() {
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    34
    # version_line and premain_line are required
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    35
    version_line="Manifest-Version: 1.0"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    36
    premain_line="Premain-Class: ${AGENT}"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    37
    boot_cp_line=""
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    38
    expect_boot_cp_line="ExampleForBootClassPath was not loaded."
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    39
    can_redef_line=""
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    40
    expect_redef_line="isRedefineClassesSupported()=false"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    41
    can_retrans_line=""
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    42
    expect_retrans_line="isRetransformClassesSupported()=false"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    43
    can_set_nmp_line=""
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    44
    expect_set_nmp_line="isNativeMethodPrefixSupported()=false"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    45
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    46
    while [ $# != 0 ] ; do
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    47
        case "$1" in
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    48
        defaults)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    49
            # just use the defaults for the test
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    50
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    51
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    52
        boot_cp_line1)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    53
            boot_cp_line="Boot-Class-Path: no_white_space"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    54
            expect_boot_cp_line="ExampleForBootClassPath was loaded."
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    55
            mkdir -p no_white_space
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    56
            cp -p $OUT_OF_THE_WAY/ExampleForBootClassPath.class no_white_space
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    57
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    58
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    59
        boot_cp_line2)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    60
            boot_cp_line="Boot-Class-Path:  has_leading_blank"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    61
            expect_boot_cp_line="ExampleForBootClassPath was loaded."
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    62
            mkdir -p has_leading_blank " has_leading_blank"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    63
            # the good class is in the directory without the blank
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    64
            cp -p $OUT_OF_THE_WAY/ExampleForBootClassPath.class \
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    65
                has_leading_blank
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    66
            # the bad class is in the directory with the blank
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    67
            cp -p $OUT_OF_THE_WAY/ExampleForBootClassPath.class.bad \
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    68
                " has_leading_blank"/ExampleForBootClassPath.class
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    69
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    70
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    71
        boot_cp_line3)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    72
            boot_cp_line="Boot-Class-Path: has_trailing_blank "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    73
            expect_boot_cp_line="ExampleForBootClassPath was loaded."
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    74
            mkdir -p has_trailing_blank "has_trailing_blank "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    75
            # the good class is in the directory without the blank
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    76
            cp -p $OUT_OF_THE_WAY/ExampleForBootClassPath.class \
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    77
                has_trailing_blank
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    78
            # the bad class is in the directory with the blank
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    79
            cp -p $OUT_OF_THE_WAY/ExampleForBootClassPath.class.bad \
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    80
                "has_trailing_blank "/ExampleForBootClassPath.class
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    81
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    82
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    83
        boot_cp_line4)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    84
            boot_cp_line="Boot-Class-Path:  has_leading_and_trailing_blank "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    85
            expect_boot_cp_line="ExampleForBootClassPath was loaded."
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    86
            mkdir -p has_leading_and_trailing_blank \
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    87
                " has_leading_and_trailing_blank "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    88
            # the good class is in the directory without the blanks
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    89
            cp -p $OUT_OF_THE_WAY/ExampleForBootClassPath.class \
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    90
                has_leading_and_trailing_blank
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    91
            # the bad class is in the directory with the blanks
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    92
            cp -p $OUT_OF_THE_WAY/ExampleForBootClassPath.class.bad \
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    93
                " has_leading_and_trailing_blank "/ExampleForBootClassPath.class
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    94
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    95
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    96
        boot_cp_line5)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    97
            boot_cp_line="Boot-Class-Path: has_embedded blank"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    98
            expect_boot_cp_line="ExampleForBootClassPath was loaded."
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
    99
            mkdir -p has_embedded "has_embedded blank"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   100
            # the good class is in the first blank separated word
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   101
            cp -p $OUT_OF_THE_WAY/ExampleForBootClassPath.class has_embedded
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   102
            # the bad class is in the directory with the blank
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   103
            cp -p $OUT_OF_THE_WAY/ExampleForBootClassPath.class.bad \
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   104
                "has_embedded blank"/ExampleForBootClassPath.class
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   105
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   106
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   107
        can_redef_line1)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   108
            can_redef_line="Can-Redefine-Classes: true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   109
            expect_redef_line="isRedefineClassesSupported()=true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   110
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   111
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   112
        can_redef_line2)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   113
            can_redef_line="Can-Redefine-Classes:  true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   114
            expect_redef_line="isRedefineClassesSupported()=true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   115
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   116
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   117
        can_redef_line3)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   118
            can_redef_line="Can-Redefine-Classes: true "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   119
            expect_redef_line="isRedefineClassesSupported()=true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   120
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   121
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   122
        can_redef_line4)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   123
            can_redef_line="Can-Redefine-Classes:  true "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   124
            expect_redef_line="isRedefineClassesSupported()=true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   125
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   126
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   127
        can_redef_line5)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   128
            can_redef_line="Can-Redefine-Classes: false"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   129
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   130
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   131
        can_redef_line6)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   132
            can_redef_line="Can-Redefine-Classes:  false"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   133
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   134
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   135
        can_redef_line7)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   136
            can_redef_line="Can-Redefine-Classes: false "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   137
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   138
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   139
        can_redef_line8)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   140
            can_redef_line="Can-Redefine-Classes:  false "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   141
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   142
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   143
        can_redef_line9)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   144
            # this line makes the jar command unhappy and that's
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   145
            # not what we're testing so skip this case
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   146
            can_redef_line="Can-Redefine-Classes:"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   147
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   148
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   149
        can_redef_line10)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   150
            can_redef_line="Can-Redefine-Classes: "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   151
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   152
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   153
        can_redef_line11)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   154
            can_redef_line="Can-Redefine-Classes:  "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   155
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   156
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   157
        can_retrans_line1)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   158
            can_retrans_line="Can-Retransform-Classes: true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   159
            expect_retrans_line="isRetransformClassesSupported()=true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   160
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   161
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   162
        can_retrans_line2)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   163
            can_retrans_line="Can-Retransform-Classes:  true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   164
            expect_retrans_line="isRetransformClassesSupported()=true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   165
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   166
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   167
        can_retrans_line3)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   168
            can_retrans_line="Can-Retransform-Classes: true "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   169
            expect_retrans_line="isRetransformClassesSupported()=true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   170
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   171
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   172
        can_retrans_line4)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   173
            can_retrans_line="Can-Retransform-Classes:  true "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   174
            expect_retrans_line="isRetransformClassesSupported()=true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   175
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   176
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   177
        can_retrans_line5)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   178
            can_retrans_line="Can-Retransform-Classes: false"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   179
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   180
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   181
        can_retrans_line6)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   182
            can_retrans_line="Can-Retransform-Classes:  false"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   183
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   184
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   185
        can_retrans_line7)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   186
            can_retrans_line="Can-Retransform-Classes: false "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   187
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   188
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   189
        can_retrans_line8)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   190
            can_retrans_line="Can-Retransform-Classes:  false "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   191
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   192
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   193
        can_retrans_line9)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   194
            # this line makes the jar command unhappy and that's
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   195
            # not what we're testing so skip this case
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   196
            can_retrans_line="Can-Retransform-Classes:"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   197
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   198
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   199
        can_retrans_line10)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   200
            can_retrans_line="Can-Retransform-Classes: "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   201
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   202
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   203
        can_retrans_line11)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   204
            can_retrans_line="Can-Retransform-Classes:  "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   205
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   206
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   207
        can_set_nmp_line1)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   208
            can_set_nmp_line="Can-Set-Native-Method-Prefix: true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   209
            expect_set_nmp_line="isNativeMethodPrefixSupported()=true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   210
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   211
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   212
        can_set_nmp_line2)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   213
            can_set_nmp_line="Can-Set-Native-Method-Prefix:  true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   214
            expect_set_nmp_line="isNativeMethodPrefixSupported()=true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   215
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   216
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   217
        can_set_nmp_line3)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   218
            can_set_nmp_line="Can-Set-Native-Method-Prefix: true "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   219
            expect_set_nmp_line="isNativeMethodPrefixSupported()=true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   220
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   221
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   222
        can_set_nmp_line4)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   223
            can_set_nmp_line="Can-Set-Native-Method-Prefix:  true "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   224
            expect_set_nmp_line="isNativeMethodPrefixSupported()=true"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   225
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   226
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   227
        can_set_nmp_line5)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   228
            can_set_nmp_line="Can-Set-Native-Method-Prefix: false"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   229
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   230
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   231
        can_set_nmp_line6)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   232
            can_set_nmp_line="Can-Set-Native-Method-Prefix:  false"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   233
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   234
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   235
        can_set_nmp_line7)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   236
            can_set_nmp_line="Can-Set-Native-Method-Prefix: false "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   237
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   238
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   239
        can_set_nmp_line8)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   240
            can_set_nmp_line="Can-Set-Native-Method-Prefix:  false "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   241
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   242
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   243
        can_set_nmp_line9)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   244
            # this line makes the jar command unhappy and that's
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   245
            # not what we're testing so skip this case
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   246
            can_set_nmp_line="Can-Set-Native-Method-Prefix:"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   247
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   248
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   249
        can_set_nmp_line10)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   250
            can_set_nmp_line="Can-Set-Native-Method-Prefix: "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   251
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   252
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   253
        can_set_nmp_line11)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   254
            can_set_nmp_line="Can-Set-Native-Method-Prefix:  "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   255
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   256
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   257
        premain_line1)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   258
            premain_line="Premain-Class:  ${AGENT}"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   259
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   260
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   261
        premain_line2)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   262
            premain_line="Premain-Class: ${AGENT} "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   263
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   264
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   265
        premain_line3)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   266
            premain_line="Premain-Class:  ${AGENT} "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   267
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   268
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   269
        version_line1)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   270
            version_line="Manifest-Version:  1.0"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   271
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   272
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   273
        version_line2)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   274
            version_line="Manifest-Version: 1.0 "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   275
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   276
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   277
        version_line3)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   278
            version_line="Manifest-Version:  1.0 "
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   279
            ;;
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   280
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   281
        *)
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   282
            echo "ERROR: invalid test token"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   283
            exit 1
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   284
        esac
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   285
        shift
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   286
    done
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   287
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   288
    echo "${version_line}" >  ${AGENT}.mf
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   289
    echo "${premain_line}" >> ${AGENT}.mf
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   290
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   291
    if [ -n "$boot_cp_line" ]; then
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   292
        echo "${boot_cp_line}" >> ${AGENT}.mf
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   293
    fi
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   294
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   295
    if [ -n "$can_redef_line" ]; then
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   296
        echo "${can_redef_line}" >> ${AGENT}.mf
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   297
    fi
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   298
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   299
    if [ -n "$can_retrans_line" ]; then
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   300
        echo "${can_retrans_line}" >> ${AGENT}.mf
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   301
    fi
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   302
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   303
    if [ -n "$can_set_nmp_line" ]; then
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   304
        echo "${can_set_nmp_line}" >> ${AGENT}.mf
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   305
    fi
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   306
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   307
    rm -f ${AGENT}.jar
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   308
    ${JAR} cvfm ${AGENT}.jar ${AGENT}.mf ${AGENT}.class
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   309
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   310
    echo "$expect_boot_cp_line" > expect_boot_cp_line
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   311
    echo "$expect_redef_line"   > expect_redef_line
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   312
    echo "$expect_retrans_line" > expect_retrans_line
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   313
    echo "$expect_set_nmp_line" > expect_set_nmp_line
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   314
}
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   315
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   316
if [ "${TESTJAVA}" = "" ]
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   317
then
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   318
  echo "TESTJAVA not set.  Test cannot execute.  Failed."
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   319
  exit 1
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   320
fi
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   321
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   322
if [ "${TESTSRC}" = "" ]
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   323
then
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   324
  echo "TESTSRC not set.  Test cannot execute.  Failed."
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   325
  exit 1
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   326
fi
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   327
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   328
if [ "${TESTCLASSES}" = "" ]
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   329
then
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   330
  echo "TESTCLASSES not set.  Test cannot execute.  Failed."
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   331
  exit 1
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   332
fi
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   333
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   334
JAR="${TESTJAVA}/bin/jar"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   335
JAVAC="${TESTJAVA}"/bin/javac
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   336
JAVA="${TESTJAVA}"/bin/java
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   337
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   338
# Now that ManifestTestApp.class is built, we move
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   339
# ExampleForBootClassPath.class so that it cannot be found
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   340
# by default
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   341
OUT_OF_THE_WAY=out_of_the_way
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   342
mkdir $OUT_OF_THE_WAY
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   343
mv "${TESTCLASSES}/ExampleForBootClassPath.class" $OUT_OF_THE_WAY
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   344
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   345
# create a bad version of ExampleForBootClassPath.class
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   346
# so we can tell when the wrong version is run
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   347
sed 's/return 15/return 42/' "${TESTSRC}"/ExampleForBootClassPath.java \
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   348
    > ExampleForBootClassPath.java
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   349
"$JAVAC" ExampleForBootClassPath.java
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   350
mv ExampleForBootClassPath.class \
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   351
    $OUT_OF_THE_WAY/ExampleForBootClassPath.class.bad
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   352
mv ExampleForBootClassPath.java \
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   353
    $OUT_OF_THE_WAY/ExampleForBootClassPath.java.bad
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   354
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   355
AGENT=ManifestTestAgent
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   356
# We compile the agent in the working directory instead of with
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   357
# a build task because we construct a different agent JAR file
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   358
# for each test case.
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   359
${JAVAC} -d . ${TESTSRC}/${AGENT}.java
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   360
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   361
FAIL_MARKER=fail_marker
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   362
rm -f $FAIL_MARKER
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   363
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   364
while read token; do
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   365
    echo
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   366
    echo "===== begin test case: $token ====="
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   367
    make_a_JAR "$token"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   368
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   369
    "${JAVA}" ${TESTVMOPTS} -javaagent:${AGENT}.jar \
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   370
        -classpath "${TESTCLASSES}" ManifestTestApp > output.log 2>&1
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   371
    result=$?
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   372
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   373
    cat output.log
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   374
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   375
    if [ "$result" = 0 ]; then
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   376
        echo "PASS: ManifestTestApp exited with status of 0."
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   377
    else
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   378
        echo "FAIL: ManifestTestApp exited with status of $result"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   379
        touch $FAIL_MARKER
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   380
    fi
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   381
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   382
    MESG="Hello from ${AGENT}!"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   383
    grep -s "$MESG" output.log > /dev/null
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   384
    result=$?
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   385
    if [ "$result" = 0 ]; then
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   386
        echo "PASS: found '$MESG' in the test output"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   387
    else
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   388
        echo "FAIL: did NOT find '$MESG' in the test output"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   389
        touch $FAIL_MARKER
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   390
    fi
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   391
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   392
    MESG=`cat expect_boot_cp_line`
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   393
    grep -s "$MESG" output.log > /dev/null
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   394
    result=$?
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   395
    if [ "$result" = 0 ]; then
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   396
        echo "PASS: found '$MESG' in the test output"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   397
    else
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   398
        echo "FAIL: did NOT find '$MESG' in the test output"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   399
        touch $FAIL_MARKER
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   400
    fi
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   401
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   402
    MESG=`cat expect_redef_line`
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   403
    grep -s "$MESG" output.log > /dev/null
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   404
    result=$?
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   405
    if [ "$result" = 0 ]; then
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   406
        echo "PASS: found '$MESG' in the test output"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   407
    else
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   408
        echo "FAIL: did NOT find '$MESG' in the test output"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   409
        touch $FAIL_MARKER
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   410
    fi
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   411
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   412
    MESG=`cat expect_retrans_line`
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   413
    grep -s "$MESG" output.log > /dev/null
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   414
    result=$?
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   415
    if [ "$result" = 0 ]; then
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   416
        echo "PASS: found '$MESG' in the test output"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   417
    else
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   418
        echo "FAIL: did NOT find '$MESG' in the test output"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   419
        touch $FAIL_MARKER
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   420
    fi
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   421
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   422
    MESG=`cat expect_set_nmp_line`
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   423
    grep -s "$MESG" output.log > /dev/null
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   424
    result=$?
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   425
    if [ "$result" = 0 ]; then
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   426
        echo "PASS: found '$MESG' in the test output"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   427
    else
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   428
        echo "FAIL: did NOT find '$MESG' in the test output"
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   429
        touch $FAIL_MARKER
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   430
    fi
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   431
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   432
    echo "===== end test case: $token ====="
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   433
    echo
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   434
done << EOF
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   435
defaults
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   436
version_line1
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   437
version_line2
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   438
version_line3
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   439
premain_line1
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   440
premain_line2
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   441
premain_line3
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   442
boot_cp_line1
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   443
boot_cp_line2
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   444
boot_cp_line3
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   445
boot_cp_line4
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   446
boot_cp_line5
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   447
can_redef_line1
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   448
can_redef_line2
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   449
can_redef_line3
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   450
can_redef_line4
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   451
can_redef_line5
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   452
can_redef_line6
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   453
can_redef_line7
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   454
can_redef_line8
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   455
can_redef_line10
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   456
can_redef_line11
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   457
can_retrans_line1
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   458
can_retrans_line2
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   459
can_retrans_line3
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   460
can_retrans_line4
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   461
can_retrans_line5
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   462
can_retrans_line6
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   463
can_retrans_line7
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   464
can_retrans_line8
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   465
can_retrans_line10
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   466
can_retrans_line11
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   467
can_set_nmp_line1
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   468
can_set_nmp_line2
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   469
can_set_nmp_line3
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   470
can_set_nmp_line4
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   471
can_set_nmp_line5
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   472
can_set_nmp_line6
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   473
can_set_nmp_line7
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   474
can_set_nmp_line8
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   475
can_set_nmp_line10
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   476
can_set_nmp_line11
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   477
EOF
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   478
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   479
if [ -f $FAIL_MARKER ]; then
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   480
    exit 1
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   481
else
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   482
    exit 0
3d51c181a2e5 6274276: 3/2 java.lang.instrument JAR manifest processing does not remove spaces from class names
dcubed
parents:
diff changeset
   483
fi