1 #
2 # Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation.
8 #
9 # This code is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
23
24 # @test
25 # @bug 6274276
26 # @summary JLI JAR manifest processing should ignore leading and trailing white space.
27 # @author Daniel D. Daugherty
28 #
29 # @run build ManifestTestApp ExampleForBootClassPath
30 # @run shell/timeout=900 ManifestTest.sh
31 #
32
33 make_a_JAR() {
34 # version_line and premain_line are required
35 version_line="Manifest-Version: 1.0"
36 premain_line="Premain-Class: ${AGENT}"
37 boot_cp_line=""
38 expect_boot_cp_line="ExampleForBootClassPath was not loaded."
39 can_redef_line=""
40 expect_redef_line="isRedefineClassesSupported()=false"
41 can_retrans_line=""
42 expect_retrans_line="isRetransformClassesSupported()=false"
43 can_set_nmp_line=""
44 expect_set_nmp_line="isNativeMethodPrefixSupported()=false"
45 # some tests create directories with spaces in their name,
46 # explicitly delete these.
47 to_be_deleted=""
48
|
1 #
2 # Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation.
8 #
9 # This code is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
23
24 # @test
25 # @bug 6274276
26 # @summary JLI JAR manifest processing should ignore leading and trailing white space.
27 # @author Daniel D. Daugherty
28 #
29 # @modules java.instrument
30 # @run build ManifestTestApp ExampleForBootClassPath
31 # @run shell/timeout=900 ManifestTest.sh
32 #
33
34 make_a_JAR() {
35 # version_line and premain_line are required
36 version_line="Manifest-Version: 1.0"
37 premain_line="Premain-Class: ${AGENT}"
38 boot_cp_line=""
39 expect_boot_cp_line="ExampleForBootClassPath was not loaded."
40 can_redef_line=""
41 expect_redef_line="isRedefineClassesSupported()=false"
42 can_retrans_line=""
43 expect_retrans_line="isRetransformClassesSupported()=false"
44 can_set_nmp_line=""
45 expect_set_nmp_line="isNativeMethodPrefixSupported()=false"
46 # some tests create directories with spaces in their name,
47 # explicitly delete these.
48 to_be_deleted=""
49
|