1 #!/bin/bash
2 #
3 # Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 #
6 # This code is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License version 2 only, as
8 # published by the Free Software Foundation.
9 #
10 # This code is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 # version 2 for more details (a copy is included in the LICENSE file that
14 # accompanied this code).
15 #
16 # You should have received a copy of the GNU General Public License version
17 # 2 along with this work; if not, write to the Free Software Foundation,
18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 #
20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 # or visit www.oracle.com if you need additional information or have any
22 # questions.
23 #
28 ##########################################################################################
29 # Check that we are run via inclusion from compare.sh and not as stand-alone.
30 if [ -z "$COMPARE_EXCEPTIONS_INCLUDE" ]; then
31 echo "Error: This script should not be run as stand-alone. It is included by compare.sh"
32 exit 1
33 fi
34
35 ##########################################################################################
36 # Diff exceptions
37
38 if [ "$OPENJDK_TARGET_OS" = "linux" ]; then
39 if [ "$HOTSPOT_BUILD_TIME" = "" -o "$USE_PRECOMPILED_HEADER" = "true" ]; then
40 ACCEPTED_BIN_DIFF="
41 ./lib/server/libjvm.so
42 ./hotspot/gtest/server/libjvm.so
43 "
44 STRIP_BEFORE_COMPARE="
45 ./hotspot/gtest/server/libjvm.so
46 "
47 fi
48 elif [ "$OPENJDK_TARGET_OS" = "solaris" ]; then
49 SKIP_BIN_DIFF="true"
50 SKIP_FULLDUMP_DIFF="true"
51 MAX_KNOWN_DIS_DIFF_SIZE="3000"
52 SORT_SYMBOLS="
53 ./lib/libfontmanager.so
54 ./lib/libjimage.so
55 ./lib/server/libjvm.so
56 ./hotspot/gtest/server/libjvm.so
57 "
58 KNOWN_DIS_DIFF="
59 ./lib/libfontmanager.so
60 ./lib/libsaproc.so
61 "
62 STRIP_TESTS_BEFORE_COMPARE="true"
63 elif [ "$OPENJDK_TARGET_OS" = "windows" ]; then
64 SKIP_BIN_DIFF="true"
65 SKIP_FULLDUMP_DIFF="true"
66 ACCEPTED_JARZIP_CONTENTS="
67 /modules_libs/java.security.jgss/w2k_lsa_auth.pdb
68 /modules_libs/java.security.jgss/w2k_lsa_auth.map
69 /modules_libs/java.security.jgss/w2k_lsa_auth.dll
70 "
71 elif [ "$OPENJDK_TARGET_OS" = "macosx" ]; then
72 ACCEPTED_BIN_DIFF="
73 ./lib/libawt_lwawt.dylib
74 ./lib/libosxapp.dylib
75 ./lib/libosxui.dylib
76 ./lib/server/libjvm.dylib
77 ./hotspot/gtest/server/libjvm.dylib
78 "
79 STRIP_TESTS_BEFORE_COMPARE="true"
80 fi
|
1 #!/bin/bash
2 #
3 # Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 #
6 # This code is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License version 2 only, as
8 # published by the Free Software Foundation.
9 #
10 # This code is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 # version 2 for more details (a copy is included in the LICENSE file that
14 # accompanied this code).
15 #
16 # You should have received a copy of the GNU General Public License version
17 # 2 along with this work; if not, write to the Free Software Foundation,
18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 #
20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 # or visit www.oracle.com if you need additional information or have any
22 # questions.
23 #
28 ##########################################################################################
29 # Check that we are run via inclusion from compare.sh and not as stand-alone.
30 if [ -z "$COMPARE_EXCEPTIONS_INCLUDE" ]; then
31 echo "Error: This script should not be run as stand-alone. It is included by compare.sh"
32 exit 1
33 fi
34
35 ##########################################################################################
36 # Diff exceptions
37
38 if [ "$OPENJDK_TARGET_OS" = "linux" ]; then
39 if [ "$HOTSPOT_BUILD_TIME" = "" -o "$USE_PRECOMPILED_HEADER" = "true" ]; then
40 ACCEPTED_BIN_DIFF="
41 ./lib/server/libjvm.so
42 ./hotspot/gtest/server/libjvm.so
43 "
44 STRIP_BEFORE_COMPARE="
45 ./hotspot/gtest/server/libjvm.so
46 "
47 fi
48 elif [ "$OPENJDK_TARGET_OS" = "windows" ]; then
49 SKIP_BIN_DIFF="true"
50 SKIP_FULLDUMP_DIFF="true"
51 ACCEPTED_JARZIP_CONTENTS="
52 /modules_libs/java.security.jgss/w2k_lsa_auth.pdb
53 /modules_libs/java.security.jgss/w2k_lsa_auth.map
54 /modules_libs/java.security.jgss/w2k_lsa_auth.dll
55 "
56 elif [ "$OPENJDK_TARGET_OS" = "macosx" ]; then
57 ACCEPTED_BIN_DIFF="
58 ./lib/libawt_lwawt.dylib
59 ./lib/libosxapp.dylib
60 ./lib/libosxui.dylib
61 ./lib/server/libjvm.dylib
62 ./hotspot/gtest/server/libjvm.dylib
63 "
64 STRIP_TESTS_BEFORE_COMPARE="true"
65 fi
|