8149479: Fix compare.sh to have a clean baseline with COMPARE_BUILD
Reviewed-by: ihse, tbell
This commit is contained in:
parent
237b8a0335
commit
a5b9b52ee7
@ -33,6 +33,7 @@ export LEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@
|
|||||||
|
|
||||||
export OPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@"
|
export OPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@"
|
||||||
export OPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@"
|
export OPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@"
|
||||||
|
export OPENJDK_TARGET_CPU_LIBDIR="@OPENJDK_TARGET_CPU_LIBDIR@"
|
||||||
|
|
||||||
export AWK="@AWK@"
|
export AWK="@AWK@"
|
||||||
export BASH="@BASH@"
|
export BASH="@BASH@"
|
||||||
|
@ -102,32 +102,21 @@ diff_text() {
|
|||||||
if test "x$SUFFIX" = "xclass"; then
|
if test "x$SUFFIX" = "xclass"; then
|
||||||
# To improve performance when large diffs are found, do a rough filtering of classes
|
# To improve performance when large diffs are found, do a rough filtering of classes
|
||||||
# elibeble for these exceptions
|
# elibeble for these exceptions
|
||||||
if $GREP -R -e '[0-9]\{4\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}-b[0-9]\{2\}' \
|
if $GREP -R -e '[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}-[0-9]\{6\}' \
|
||||||
-e '[0-9]\{2\}/[0-9]\{2\}/[0-9]\{4\}' \
|
|
||||||
-e 'lambda\$[a-zA-Z0-9]*\$[0-9]' ${THIS_FILE} > /dev/null; then
|
-e 'lambda\$[a-zA-Z0-9]*\$[0-9]' ${THIS_FILE} > /dev/null; then
|
||||||
$JAVAP -c -constants -l -p "${OTHER_FILE}" > ${OTHER_FILE}.javap
|
$JAVAP -c -constants -l -p "${OTHER_FILE}" > ${OTHER_FILE}.javap
|
||||||
$JAVAP -c -constants -l -p "${THIS_FILE}" > ${THIS_FILE}.javap
|
$JAVAP -c -constants -l -p "${THIS_FILE}" > ${THIS_FILE}.javap
|
||||||
TMP=$($DIFF ${OTHER_FILE}.javap ${THIS_FILE}.javap | \
|
TMP=$($DIFF ${OTHER_FILE}.javap ${THIS_FILE}.javap | \
|
||||||
$GREP '^[<>]' | \
|
$GREP '^[<>]' | \
|
||||||
$SED -e '/[<>].*[0-9]\{4\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}-b[0-9]\{2\}.*/d' \
|
$SED -e '/[<>].*[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}-[0-9]\{6\}.*/d' \
|
||||||
-e '/[0-9]\{2\}\/[0-9]\{2\}\/[0-9]\{4\}/d' \
|
|
||||||
-e '/[<>].*lambda\$[a-zA-Z0-9]*\$[0-9]*/d')
|
-e '/[<>].*lambda\$[a-zA-Z0-9]*\$[0-9]*/d')
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if test "x$SUFFIX" = "xproperties"; then
|
if test "x$SUFFIX" = "xproperties"; then
|
||||||
# Run through nawk to add possibly missing newline at end of file.
|
|
||||||
$CAT $OTHER_FILE | $NAWK '{ print }' | LC_ALL=C $SORT > $OTHER_FILE.cleaned
|
|
||||||
# Disable this exception since we aren't changing the properties cleaning method yet.
|
|
||||||
# $CAT $OTHER_FILE | $SED -e 's/\([^\\]\):/\1\\:/g' -e 's/\([^\\]\)=/\1\\=/g' -e 's/#.*/#/g' \
|
|
||||||
# | $SED -f "$SRC_ROOT/common/makefiles/support/unicode2x.sed" \
|
|
||||||
# | $SED -e '/^#/d' -e '/^$/d' \
|
|
||||||
# -e :a -e '/\\$/N; s/\\\n//; ta' \
|
|
||||||
# -e 's/^[ \t]*//;s/[ \t]*$//' \
|
|
||||||
# -e 's/\\=/=/' | LC_ALL=C $SORT > $OTHER_FILE.cleaned
|
|
||||||
# Filter out date string differences.
|
# Filter out date string differences.
|
||||||
TMP=$(LC_ALL=C $DIFF $OTHER_FILE.cleaned $THIS_FILE | \
|
TMP=$(LC_ALL=C $DIFF $OTHER_FILE $THIS_FILE | \
|
||||||
$GREP '^[<>]' | \
|
$GREP '^[<>]' | \
|
||||||
$SED -e '/[<>].*[0-9]\{4\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}-b[0-9]\{2\}.*/d')
|
$SED -e '/[<>].*[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}-[0-9]\{6\}.*/d')
|
||||||
fi
|
fi
|
||||||
if test "x$SUFFIX" = "xhtml"; then
|
if test "x$SUFFIX" = "xhtml"; then
|
||||||
# Some javadoc versions do not put quotes around font size
|
# Some javadoc versions do not put quotes around font size
|
||||||
@ -306,7 +295,8 @@ compare_general_files() {
|
|||||||
! -name "*.lib" ! -name "*.war" ! -name "JavaControlPanel" \
|
! -name "*.lib" ! -name "*.war" ! -name "JavaControlPanel" \
|
||||||
! -name "*.obj" ! -name "*.o" ! -name "JavaControlPanelHelper" \
|
! -name "*.obj" ! -name "*.o" ! -name "JavaControlPanelHelper" \
|
||||||
! -name "JavaUpdater" ! -name "JavaWSApplicationStub" \
|
! -name "JavaUpdater" ! -name "JavaWSApplicationStub" \
|
||||||
! -name "jspawnhelper" ! -name "*.a" \
|
! -name "jspawnhelper" ! -name "JavawsLauncher" ! -name "*.a" \
|
||||||
|
! -name "finish_installation" ! -name "Sparkle" \
|
||||||
| $GREP -v "./bin/" | $SORT | $FILTER)
|
| $GREP -v "./bin/" | $SORT | $FILTER)
|
||||||
|
|
||||||
echo Other files with binary differences...
|
echo Other files with binary differences...
|
||||||
@ -320,29 +310,28 @@ compare_general_files() {
|
|||||||
THIS_FILE=$WORK_DIR/$f.this
|
THIS_FILE=$WORK_DIR/$f.this
|
||||||
$MKDIR -p $(dirname $OTHER_FILE)
|
$MKDIR -p $(dirname $OTHER_FILE)
|
||||||
$MKDIR -p $(dirname $THIS_FILE)
|
$MKDIR -p $(dirname $THIS_FILE)
|
||||||
$CAT $OTHER_DIR/$f | $SED 's/\:[0-9a-f]\{12,12\}/:CHANGE/g' > $OTHER_FILE
|
RELEASE_FILTER="$SED \
|
||||||
$CAT $THIS_DIR/$f | $SED 's/\:[0-9a-f]\{12,12\}/:CHANGE/g' > $THIS_FILE
|
-e 's/\:[0-9a-f]\{12,12\}/:CHANGE/g' \
|
||||||
|
-e 's/[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}-[0-9]\{6\}/<DATE>/g'
|
||||||
|
"
|
||||||
|
$CAT $OTHER_DIR/$f | eval "$RELEASE_FILTER" > $OTHER_FILE
|
||||||
|
$CAT $THIS_DIR/$f | eval "$RELEASE_FILTER" > $THIS_FILE
|
||||||
elif [ "x$SUFFIX" = "xhtml" ]; then
|
elif [ "x$SUFFIX" = "xhtml" ]; then
|
||||||
# Ignore time stamps in docs files
|
# Ignore time stamps in docs files
|
||||||
OTHER_FILE=$WORK_DIR/$f.other
|
OTHER_FILE=$WORK_DIR/$f.other
|
||||||
THIS_FILE=$WORK_DIR/$f.this
|
THIS_FILE=$WORK_DIR/$f.this
|
||||||
$MKDIR -p $(dirname $OTHER_FILE)
|
$MKDIR -p $(dirname $OTHER_FILE) $(dirname $THIS_FILE)
|
||||||
$MKDIR -p $(dirname $THIS_FILE)
|
# Older versions of compare might have left soft links with
|
||||||
|
# these names.
|
||||||
|
$RM $OTHER_FILE $THIS_FILE
|
||||||
#Note that | doesn't work on mac sed.
|
#Note that | doesn't work on mac sed.
|
||||||
$CAT $OTHER_DIR/$f | $SED -e 's/\(-- Generated by javadoc \).*\( --\)/\1(removed)\2/' \
|
HTML_FILTER="$SED \
|
||||||
-e 's/\(<meta name="date" content="\).*\(">\)/\1(removed)\2/' \
|
-e 's/[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}-[0-9]\{6\}/<DATE>/g' \
|
||||||
-e 's/[A-Z][a-z]*, [A-Z][a-z]* [0-9][0-9]*, [12][0-9]* [0-9][0-9:]* [AMP]\{2,2\} [A-Z][A-Z]*/(removed)/' \
|
-e 's/\(-- Generated by javadoc \).*\( --\)/\1(removed)\2/' \
|
||||||
-e 's/[A-Z][a-z]* [A-Z][a-z]* [0-9][0-9] [0-9][0-9:]* [A-Z][A-Z]* [12][0-9]*/(removed)/' \
|
-e 's/[A-Z][a-z]*, [A-Z][a-z]* [0-9][0-9]*, [0-9]\{4\} [0-9][0-9:]* [AMP]\{2,2\} [A-Z][A-Z]*/<DATE>/'
|
||||||
-e 's/^\( from \).*\(\.idl\)$/\1(removed)\2/' \
|
"
|
||||||
-e 's/^\(.*\)\( o'"'"'clock \)\([A-Z][A-Z][A-Z]\)/(removed)\2(removed)/' \
|
$CAT $OTHER_DIR/$f | eval "$HTML_FILTER" > $OTHER_FILE
|
||||||
> $OTHER_FILE
|
$CAT $THIS_DIR/$f | eval "$HTML_FILTER" > $THIS_FILE
|
||||||
$CAT $THIS_DIR/$f | $SED -e 's/\(-- Generated by javadoc \).*\( --\)/\1(removed)\2/' \
|
|
||||||
-e 's/\(<meta name="date" content="\).*\(">\)/\1(removed)\2/' \
|
|
||||||
-e 's/[A-Z][a-z]*, [A-Z][a-z]* [0-9][0-9]*, [12][0-9]* [0-9][0-9:]* [AMP]\{2,2\} [A-Z][A-Z]*/(removed)/' \
|
|
||||||
-e 's/[A-Z][a-z]* [A-Z][a-z]* [0-9][0-9] [0-9][0-9:]* [A-Z][A-Z]* [12][0-9]*/(removed)/' \
|
|
||||||
-e 's/^\( from \).*\(\.idl\)$/\1(removed)\2/' \
|
|
||||||
-e 's/^\(.*\)\( o'"'"'clock \)\([A-Z][A-Z][A-Z]\)/(removed)\2(removed)/' \
|
|
||||||
> $THIS_FILE
|
|
||||||
else
|
else
|
||||||
OTHER_FILE=$OTHER_DIR/$f
|
OTHER_FILE=$OTHER_DIR/$f
|
||||||
THIS_FILE=$THIS_DIR/$f
|
THIS_FILE=$THIS_DIR/$f
|
||||||
@ -605,11 +594,17 @@ compare_bin_file() {
|
|||||||
OTHER_FILE_BASE=${OTHER_FILE_BASE/.exe/}
|
OTHER_FILE_BASE=${OTHER_FILE_BASE/.exe/}
|
||||||
OTHER_FILE_BASE=${OTHER_FILE_BASE/.cpl/}
|
OTHER_FILE_BASE=${OTHER_FILE_BASE/.cpl/}
|
||||||
DIZ_NAME=$(basename $OTHER_FILE_BASE).diz
|
DIZ_NAME=$(basename $OTHER_FILE_BASE).diz
|
||||||
# java.exe and java.dll diz files will have the same name. Have to
|
# Some .exe files have the same name as a .dll file. Make sure the exe
|
||||||
# make sure java.exe gets the right one. This is only needed for
|
# files get the right debug symbols.
|
||||||
# OTHER since in the new build, all pdb files are left around.
|
if [ "$NAME" = "java.exe" ] \
|
||||||
if [ "$NAME" = "java.exe" ] && [ -f "$OTHER/tmp/java/java/obj64/java.diz" ]; then
|
&& [ -f "$OTHER/support/native/java.base/java_objs/java.diz" ]; then
|
||||||
OTHER_DIZ_FILE="$OTHER/tmp/java/java/obj64/java.diz"
|
OTHER_DIZ_FILE="$OTHER/support/native/java.base/java_objs/java.diz"
|
||||||
|
elif [ "$NAME" = "jimage.exe" ] \
|
||||||
|
&& [ -f "$OTHER/support/native/jdk.dev/jimage_objs/jimage.diz" ]; then
|
||||||
|
OTHER_DIZ_FILE="$OTHER/support/native/jdk.dev/jimage_objs/jimage.diz"
|
||||||
|
elif [ "$NAME" = "javacpl.exe" ] \
|
||||||
|
&& [ -f "$OTHER/support/native/jdk.plugin/javacpl/javacpl.diz" ]; then
|
||||||
|
OTHER_DIZ_FILE="$OTHER/support/native/jdk.plugin/javacpl/javacpl.diz"
|
||||||
elif [ -f "${OTHER_FILE_BASE}.diz" ]; then
|
elif [ -f "${OTHER_FILE_BASE}.diz" ]; then
|
||||||
OTHER_DIZ_FILE=${OTHER_FILE_BASE}.diz
|
OTHER_DIZ_FILE=${OTHER_FILE_BASE}.diz
|
||||||
else
|
else
|
||||||
@ -627,9 +622,22 @@ compare_bin_file() {
|
|||||||
(cd $FILE_WORK_DIR/other ; $UNARCHIVE -o $OTHER_DIZ_FILE)
|
(cd $FILE_WORK_DIR/other ; $UNARCHIVE -o $OTHER_DIZ_FILE)
|
||||||
export _NT_SYMBOL_PATH="$FILE_WORK_DIR/other"
|
export _NT_SYMBOL_PATH="$FILE_WORK_DIR/other"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
THIS_FILE_BASE=${THIS_FILE/.dll/}
|
THIS_FILE_BASE=${THIS_FILE/.dll/}
|
||||||
THIS_FILE_BASE=${THIS_FILE_BASE/.exe/}
|
THIS_FILE_BASE=${THIS_FILE_BASE/.exe/}
|
||||||
if [ -f "${THIS_FILE/.dll/}.diz" ]; then
|
THIS_FILE_BASE=${THIS_FILE_BASE/.cpl/}
|
||||||
|
# Some .exe files have the same name as a .dll file. Make sure the exe
|
||||||
|
# files get the right debug symbols.
|
||||||
|
if [ "$NAME" = "java.exe" ] \
|
||||||
|
&& [ -f "$THIS/support/native/java.base/java_objs/java.diz" ]; then
|
||||||
|
THIS_DIZ_FILE="$THIS/support/native/java.base/java_objs/java.diz"
|
||||||
|
elif [ "$NAME" = "jimage.exe" ] \
|
||||||
|
&& [ -f "$THIS/support/native/jdk.dev/jimage_objs/jimage.diz" ]; then
|
||||||
|
THIS_DIZ_FILE="$THIS/support/native/jdk.dev/jimage_objs/jimage.diz"
|
||||||
|
elif [ "$NAME" = "javacpl.exe" ] \
|
||||||
|
&& [ -f "$THIS/support/native/jdk.plugin/javacpl/javacpl.diz" ]; then
|
||||||
|
THIS_DIZ_FILE="$THIS/support/native/jdk.plugin/javacpl/javacpl.diz"
|
||||||
|
elif [ -f "${THIS_FILE_BASE}.diz" ]; then
|
||||||
THIS_DIZ_FILE=${THIS_FILE/.dll/}.diz
|
THIS_DIZ_FILE=${THIS_FILE/.dll/}.diz
|
||||||
else
|
else
|
||||||
THIS_DIZ_FILE="$($FIND $THIS_DIR -name $DIZ_NAME | $SED 1q)"
|
THIS_DIZ_FILE="$($FIND $THIS_DIR -name $DIZ_NAME | $SED 1q)"
|
||||||
@ -856,8 +864,15 @@ compare_bin_file() {
|
|||||||
if [ -z "$DIS_DIFF_FILTER" ]; then
|
if [ -z "$DIS_DIFF_FILTER" ]; then
|
||||||
DIS_DIFF_FILTER="$GREP -v ' # .* <.*>$' | $SED -r -e 's/(\b|x)([0-9a-fA-F]+)(\b|:|>)/X/g'"
|
DIS_DIFF_FILTER="$GREP -v ' # .* <.*>$' | $SED -r -e 's/(\b|x)([0-9a-fA-F]+)(\b|:|>)/X/g'"
|
||||||
fi
|
fi
|
||||||
$DIS_CMD $OTHER_FILE | $GREP -v $NAME | eval "$DIS_DIFF_FILTER" > $WORK_FILE_BASE.dis.other 2>&1
|
if [ "$OPENJDK_TARGET_OS" = "windows" ]; then
|
||||||
$DIS_CMD $THIS_FILE | $GREP -v $NAME | eval "$DIS_DIFF_FILTER" > $WORK_FILE_BASE.dis.this 2>&1
|
DIS_GREP_ARG=-a
|
||||||
|
else
|
||||||
|
DIS_GREP_ARG=
|
||||||
|
fi
|
||||||
|
$DIS_CMD $OTHER_FILE | $GREP $DIS_GREP_ARG -v $NAME \
|
||||||
|
| eval "$DIS_DIFF_FILTER" > $WORK_FILE_BASE.dis.other 2>&1
|
||||||
|
$DIS_CMD $THIS_FILE | $GREP $DIS_GREP_ARG -v $NAME \
|
||||||
|
| eval "$DIS_DIFF_FILTER" > $WORK_FILE_BASE.dis.this 2>&1
|
||||||
|
|
||||||
LC_ALL=C $DIFF $WORK_FILE_BASE.dis.other $WORK_FILE_BASE.dis.this > $WORK_FILE_BASE.dis.diff
|
LC_ALL=C $DIFF $WORK_FILE_BASE.dis.other $WORK_FILE_BASE.dis.this > $WORK_FILE_BASE.dis.diff
|
||||||
|
|
||||||
@ -974,6 +989,15 @@ compare_all_execs() {
|
|||||||
-o -name '*.jar' -o -name '*.diz' -o -name 'jcontrol' -o -name '*.properties' \
|
-o -name '*.jar' -o -name '*.diz' -o -name 'jcontrol' -o -name '*.properties' \
|
||||||
-o -name '*.data' -o -name '*.bfc' -o -name '*.src' -o -name '*.txt' \
|
-o -name '*.data' -o -name '*.bfc' -o -name '*.src' -o -name '*.txt' \
|
||||||
-o -name '*.cfg' -o -name 'meta-index' -o -name '*.properties.ja' \
|
-o -name '*.cfg' -o -name 'meta-index' -o -name '*.properties.ja' \
|
||||||
|
-o -name '*.xml' -o -name '*.html' -o -name '*.png' -o -name 'README' \
|
||||||
|
-o -name '*.zip' -o -name '*.jimage' -o -name '*.java' -o -name '*.mf' \
|
||||||
|
-o -name '*.jpg' -o -name '*.wsdl' -o -name '*.js' -o -name '*.sh' \
|
||||||
|
-o -name '*.bat' -o -name '*LICENSE' -o -name '*.d' -o -name '*store' \
|
||||||
|
-o -name 'blacklist' -o -name '*certs' -o -name '*.ttf' \
|
||||||
|
-o -name '*.jfc' -o -name '*.dat' -o -name 'release' -o -name '*.dir'\
|
||||||
|
-o -name '*.sym' -o -name '*.idl' -o -name '*.h' -o -name '*.access' \
|
||||||
|
-o -name '*.template' -o -name '*.policy' -o -name '*.security' \
|
||||||
|
-o -name 'COPYRIGHT' -o -name '*.1' \
|
||||||
-o -name 'classlist' \) | $SORT | $FILTER)
|
-o -name 'classlist' \) | $SORT | $FILTER)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1278,6 +1302,15 @@ if [ "$SKIP_DEFAULT" != "true" ]; then
|
|||||||
echo " $OTHER_DEPLOY_APPLET_PLUGIN_DIR"
|
echo " $OTHER_DEPLOY_APPLET_PLUGIN_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -d "$THIS/install/sparkle/Sparkle.framework" ] \
|
||||||
|
&& [ -d "$OTHER/install/sparkle/Sparkle.framework" ]; then
|
||||||
|
THIS_SPARKLE_DIR="$THIS/install/sparkle/Sparkle.framework"
|
||||||
|
OTHER_SPARKLE_DIR="$OTHER/install/sparkle/Sparkle.framework"
|
||||||
|
echo "Also comparing install sparkle framework"
|
||||||
|
echo " $THIS_SPARKLE_DIR"
|
||||||
|
echo " $OTHER_SPARKLE_DIR"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d "$OTHER/images" ]; then
|
if [ -d "$OTHER/images" ]; then
|
||||||
OTHER_SEC_DIR="$OTHER/images"
|
OTHER_SEC_DIR="$OTHER/images"
|
||||||
else
|
else
|
||||||
@ -1298,9 +1331,9 @@ if [ "$SKIP_DEFAULT" != "true" ]; then
|
|||||||
THIS_JGSS_WINDOWS_BIN="$THIS_SEC_DIR/$JGSS_WINDOWS_BIN"
|
THIS_JGSS_WINDOWS_BIN="$THIS_SEC_DIR/$JGSS_WINDOWS_BIN"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$THIS/docs" ] && [ -d "$OTHER/docs" ]; then
|
if [ -d "$THIS/images/docs" ] && [ -d "$OTHER/images/docs" ]; then
|
||||||
THIS_DOCS="$THIS/docs"
|
THIS_DOCS="$THIS/images/docs"
|
||||||
OTHER_DOCS="$OTHER/docs"
|
OTHER_DOCS="$OTHER/images/docs"
|
||||||
echo "Also comparing docs"
|
echo "Also comparing docs"
|
||||||
else
|
else
|
||||||
echo "WARNING! Docs haven't been built and won't be compared."
|
echo "WARNING! Docs haven't been built and won't be compared."
|
||||||
@ -1314,23 +1347,23 @@ if [ "$CMP_NAMES" = "true" ]; then
|
|||||||
if [ -n "$THIS_JDK" ] && [ -n "$OTHER_JDK" ]; then
|
if [ -n "$THIS_JDK" ] && [ -n "$OTHER_JDK" ]; then
|
||||||
echo -n "JDK "
|
echo -n "JDK "
|
||||||
compare_dirs $THIS_JDK $OTHER_JDK $COMPARE_ROOT/jdk
|
compare_dirs $THIS_JDK $OTHER_JDK $COMPARE_ROOT/jdk
|
||||||
echo -n "JRE "
|
echo -n "JRE "
|
||||||
compare_dirs $THIS_JRE $OTHER_JRE $COMPARE_ROOT/jre
|
compare_dirs $THIS_JRE $OTHER_JRE $COMPARE_ROOT/jre
|
||||||
|
|
||||||
echo -n "JDK "
|
echo -n "JDK "
|
||||||
compare_files $THIS_JDK $OTHER_JDK $COMPARE_ROOT/jdk
|
compare_files $THIS_JDK $OTHER_JDK $COMPARE_ROOT/jdk
|
||||||
echo -n "JRE "
|
echo -n "JRE "
|
||||||
compare_files $THIS_JRE $OTHER_JRE $COMPARE_ROOT/jre
|
compare_files $THIS_JRE $OTHER_JRE $COMPARE_ROOT/jre
|
||||||
fi
|
fi
|
||||||
if [ -n "$THIS_JDK_BUNDLE" ] && [ -n "$OTHER_JDK_BUNDLE" ]; then
|
if [ -n "$THIS_JDK_BUNDLE" ] && [ -n "$OTHER_JDK_BUNDLE" ]; then
|
||||||
echo -n "JDK Bundle "
|
echo -n "JDK Bundle "
|
||||||
compare_dirs $THIS_JDK_BUNDLE $OTHER_JDK_BUNDLE $COMPARE_ROOT/jdk-bundle
|
compare_dirs $THIS_JDK_BUNDLE $OTHER_JDK_BUNDLE $COMPARE_ROOT/jdk-bundle
|
||||||
echo -n "JRE Bundle "
|
echo -n "JRE Bundle "
|
||||||
compare_dirs $THIS_JRE_BUNDLE $OTHER_JRE_BUNDLE $COMPARE_ROOT/jre-bundle
|
compare_dirs $THIS_JRE_BUNDLE $OTHER_JRE_BUNDLE $COMPARE_ROOT/jre-bundle
|
||||||
|
|
||||||
echo -n "JDK Bundle "
|
echo -n "JDK Bundle "
|
||||||
compare_files $THIS_JDK_BUNDLE $OTHER_JDK_BUNDLE $COMPARE_ROOT/jdk-bundle
|
compare_files $THIS_JDK_BUNDLE $OTHER_JDK_BUNDLE $COMPARE_ROOT/jdk-bundle
|
||||||
echo -n "JRE Bundle "
|
echo -n "JRE Bundle "
|
||||||
compare_files $THIS_JRE_BUNDLE $OTHER_JRE_BUNDLE $COMPARE_ROOT/jre-bundle
|
compare_files $THIS_JRE_BUNDLE $OTHER_JRE_BUNDLE $COMPARE_ROOT/jre-bundle
|
||||||
fi
|
fi
|
||||||
if [ -n "$THIS_DOCS" ] && [ -n "$OTHER_DOCS" ]; then
|
if [ -n "$THIS_DOCS" ] && [ -n "$OTHER_DOCS" ]; then
|
||||||
@ -1349,13 +1382,19 @@ if [ "$CMP_NAMES" = "true" ]; then
|
|||||||
echo -n "JavaAppletPlugin "
|
echo -n "JavaAppletPlugin "
|
||||||
compare_files $THIS_DEPLOY_APPLET_PLUGIN_DIR $OTHER_DEPLOY_APPLET_PLUGIN_DIR $COMPARE_ROOT/plugin
|
compare_files $THIS_DEPLOY_APPLET_PLUGIN_DIR $OTHER_DEPLOY_APPLET_PLUGIN_DIR $COMPARE_ROOT/plugin
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$THIS_SPARKLE_DIR" ] && [ -n "$OTHER_SPARKLE_DIR" ]; then
|
||||||
|
echo -n "Sparkle.framework "
|
||||||
|
compare_dirs $THIS_SPARKLE_DIR $OTHER_SPARKLE_DIR $COMPARE_ROOT/sparkle
|
||||||
|
echo -n "Sparkle.framework "
|
||||||
|
compare_files $THIS_SPARKLE_DIR $OTHER_SPARKLE_DIR $COMPARE_ROOT/sparkle
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CMP_PERMS" = "true" ]; then
|
if [ "$CMP_PERMS" = "true" ]; then
|
||||||
if [ -n "$THIS_JDK" ] && [ -n "$OTHER_JDK" ]; then
|
if [ -n "$THIS_JDK" ] && [ -n "$OTHER_JDK" ]; then
|
||||||
echo -n "JDK "
|
echo -n "JDK "
|
||||||
compare_permissions $THIS_JDK $OTHER_JDK $COMPARE_ROOT/jdk
|
compare_permissions $THIS_JDK $OTHER_JDK $COMPARE_ROOT/jdk
|
||||||
echo -n "JRE "
|
echo -n "JRE "
|
||||||
compare_permissions $THIS_JRE $OTHER_JRE $COMPARE_ROOT/jre
|
compare_permissions $THIS_JRE $OTHER_JRE $COMPARE_ROOT/jre
|
||||||
fi
|
fi
|
||||||
if [ -n "$THIS_BASE_DIR" ] && [ -n "$OTHER_BASE_DIR" ]; then
|
if [ -n "$THIS_BASE_DIR" ] && [ -n "$OTHER_BASE_DIR" ]; then
|
||||||
@ -1365,19 +1404,23 @@ if [ "$CMP_PERMS" = "true" ]; then
|
|||||||
echo -n "JavaAppletPlugin "
|
echo -n "JavaAppletPlugin "
|
||||||
compare_permissions $THIS_DEPLOY_APPLET_PLUGIN_DIR $OTHER_DEPLOY_APPLET_PLUGIN_DIR $COMPARE_ROOT/plugin
|
compare_permissions $THIS_DEPLOY_APPLET_PLUGIN_DIR $OTHER_DEPLOY_APPLET_PLUGIN_DIR $COMPARE_ROOT/plugin
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$THIS_SPARKLE_DIR" ] && [ -n "$OTHER_SPARKLE_DIR" ]; then
|
||||||
|
echo -n "Sparkle.framework "
|
||||||
|
compare_permissions $THIS_SPARKLE_DIR $OTHER_SPARKLE_DIR $COMPARE_ROOT/sparkle
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CMP_TYPES" = "true" ]; then
|
if [ "$CMP_TYPES" = "true" ]; then
|
||||||
if [ -n "$THIS_JDK" ] && [ -n "$OTHER_JDK" ]; then
|
if [ -n "$THIS_JDK" ] && [ -n "$OTHER_JDK" ]; then
|
||||||
echo -n "JDK "
|
echo -n "JDK "
|
||||||
compare_file_types $THIS_JDK $OTHER_JDK $COMPARE_ROOT/jdk
|
compare_file_types $THIS_JDK $OTHER_JDK $COMPARE_ROOT/jdk
|
||||||
echo -n "JRE "
|
echo -n "JRE "
|
||||||
compare_file_types $THIS_JRE $OTHER_JRE $COMPARE_ROOT/jre
|
compare_file_types $THIS_JRE $OTHER_JRE $COMPARE_ROOT/jre
|
||||||
fi
|
fi
|
||||||
if [ -n "$THIS_JDK_BUNDLE" ] && [ -n "$OTHER_JDK_BUNDLE" ]; then
|
if [ -n "$THIS_JDK_BUNDLE" ] && [ -n "$OTHER_JDK_BUNDLE" ]; then
|
||||||
echo -n "JDK Bundle "
|
echo -n "JDK Bundle "
|
||||||
compare_file_types $THIS_JDK_BUNDLE $OTHER_JDK_BUNDLE $COMPARE_ROOT/jdk-bundle
|
compare_file_types $THIS_JDK_BUNDLE $OTHER_JDK_BUNDLE $COMPARE_ROOT/jdk-bundle
|
||||||
echo -n "JRE Bundle "
|
echo -n "JRE Bundle "
|
||||||
compare_file_types $THIS_JRE_BUNDLE $OTHER_JRE_BUNDLE $COMPARE_ROOT/jre-bundle
|
compare_file_types $THIS_JRE_BUNDLE $OTHER_JRE_BUNDLE $COMPARE_ROOT/jre-bundle
|
||||||
fi
|
fi
|
||||||
if [ -n "$THIS_BASE_DIR" ] && [ -n "$OTHER_BASE_DIR" ]; then
|
if [ -n "$THIS_BASE_DIR" ] && [ -n "$OTHER_BASE_DIR" ]; then
|
||||||
@ -1387,19 +1430,23 @@ if [ "$CMP_TYPES" = "true" ]; then
|
|||||||
echo -n "JavaAppletPlugin "
|
echo -n "JavaAppletPlugin "
|
||||||
compare_file_types $THIS_DEPLOY_APPLET_PLUGIN_DIR $OTHER_DEPLOY_APPLET_PLUGIN_DIR $COMPARE_ROOT/plugin
|
compare_file_types $THIS_DEPLOY_APPLET_PLUGIN_DIR $OTHER_DEPLOY_APPLET_PLUGIN_DIR $COMPARE_ROOT/plugin
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$THIS_SPARKLE_DIR" ] && [ -n "$OTHER_SPARKLE_DIR" ]; then
|
||||||
|
echo -n "Sparkle.framework "
|
||||||
|
compare_file_types $THIS_SPARKLE_DIR $OTHER_SPARKLE_DIR $COMPARE_ROOT/sparkle
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CMP_GENERAL" = "true" ]; then
|
if [ "$CMP_GENERAL" = "true" ]; then
|
||||||
if [ -n "$THIS_JDK" ] && [ -n "$OTHER_JDK" ]; then
|
if [ -n "$THIS_JDK" ] && [ -n "$OTHER_JDK" ]; then
|
||||||
echo -n "JDK "
|
echo -n "JDK "
|
||||||
compare_general_files $THIS_JDK $OTHER_JDK $COMPARE_ROOT/jdk
|
compare_general_files $THIS_JDK $OTHER_JDK $COMPARE_ROOT/jdk
|
||||||
echo -n "JRE "
|
echo -n "JRE "
|
||||||
compare_general_files $THIS_JRE $OTHER_JRE $COMPARE_ROOT/jre
|
compare_general_files $THIS_JRE $OTHER_JRE $COMPARE_ROOT/jre
|
||||||
fi
|
fi
|
||||||
if [ -n "$THIS_JDK_BUNDLE" ] && [ -n "$OTHER_JDK_BUNDLE" ]; then
|
if [ -n "$THIS_JDK_BUNDLE" ] && [ -n "$OTHER_JDK_BUNDLE" ]; then
|
||||||
echo -n "JDK Bundle "
|
echo -n "JDK Bundle "
|
||||||
compare_general_files $THIS_JDK_BUNDLE $OTHER_JDK_BUNDLE $COMPARE_ROOT/jdk-bundle
|
compare_general_files $THIS_JDK_BUNDLE $OTHER_JDK_BUNDLE $COMPARE_ROOT/jdk-bundle
|
||||||
echo -n "JRE Bundle "
|
echo -n "JRE Bundle "
|
||||||
compare_general_files $THIS_JRE_BUNDLE $OTHER_JRE_BUNDLE $COMPARE_ROOT/jre-bundle
|
compare_general_files $THIS_JRE_BUNDLE $OTHER_JRE_BUNDLE $COMPARE_ROOT/jre-bundle
|
||||||
fi
|
fi
|
||||||
if [ -n "$THIS_DOCS" ] && [ -n "$OTHER_DOCS" ]; then
|
if [ -n "$THIS_DOCS" ] && [ -n "$OTHER_DOCS" ]; then
|
||||||
@ -1413,6 +1460,10 @@ if [ "$CMP_GENERAL" = "true" ]; then
|
|||||||
echo -n "JavaAppletPlugin "
|
echo -n "JavaAppletPlugin "
|
||||||
compare_general_files $THIS_DEPLOY_APPLET_PLUGIN_DIR $OTHER_DEPLOY_APPLET_PLUGIN_DIR $COMPARE_ROOT/plugin
|
compare_general_files $THIS_DEPLOY_APPLET_PLUGIN_DIR $OTHER_DEPLOY_APPLET_PLUGIN_DIR $COMPARE_ROOT/plugin
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$THIS_SPARKLE_DIR" ] && [ -n "$OTHER_SPARKLE_DIR" ]; then
|
||||||
|
echo -n "Sparkle.framework "
|
||||||
|
compare_general_files $THIS_SPARKLE_DIR $OTHER_SPARKLE_DIR $COMPARE_ROOT/sparkle
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CMP_ZIPS" = "true" ]; then
|
if [ "$CMP_ZIPS" = "true" ]; then
|
||||||
@ -1465,7 +1516,7 @@ if [ "$CMP_LIBS" = "true" ]; then
|
|||||||
echo -n "JDK "
|
echo -n "JDK "
|
||||||
compare_all_libs $THIS_JDK $OTHER_JDK $COMPARE_ROOT/jdk
|
compare_all_libs $THIS_JDK $OTHER_JDK $COMPARE_ROOT/jdk
|
||||||
if [ "$OPENJDK_TARGET_OS" = "macosx" ]; then
|
if [ "$OPENJDK_TARGET_OS" = "macosx" ]; then
|
||||||
echo -n "JRE "
|
echo -n "JRE "
|
||||||
compare_all_libs $THIS_JRE $OTHER_JRE $COMPARE_ROOT/jre
|
compare_all_libs $THIS_JRE $OTHER_JRE $COMPARE_ROOT/jre
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -1476,13 +1527,17 @@ if [ "$CMP_LIBS" = "true" ]; then
|
|||||||
echo -n "JavaAppletPlugin "
|
echo -n "JavaAppletPlugin "
|
||||||
compare_all_libs $THIS_DEPLOY_APPLET_PLUGIN_DIR $OTHER_DEPLOY_APPLET_PLUGIN_DIR $COMPARE_ROOT/plugin
|
compare_all_libs $THIS_DEPLOY_APPLET_PLUGIN_DIR $OTHER_DEPLOY_APPLET_PLUGIN_DIR $COMPARE_ROOT/plugin
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$THIS_SPARKLE_DIR" ] && [ -n "$OTHER_SPARKLE_DIR" ]; then
|
||||||
|
echo -n "Sparkle.framework "
|
||||||
|
compare_all_libs $THIS_SPARKLE_DIR $OTHER_SPARKLE_DIR $COMPARE_ROOT/sparkle
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CMP_EXECS" = "true" ]; then
|
if [ "$CMP_EXECS" = "true" ]; then
|
||||||
if [ -n "$THIS_JDK" ] && [ -n "$OTHER_JDK" ]; then
|
if [ -n "$THIS_JDK" ] && [ -n "$OTHER_JDK" ]; then
|
||||||
compare_all_execs $THIS_JDK $OTHER_JDK $COMPARE_ROOT/jdk
|
compare_all_execs $THIS_JDK $OTHER_JDK $COMPARE_ROOT/jdk
|
||||||
if [ "$OPENJDK_TARGET_OS" = "macosx" ]; then
|
if [ "$OPENJDK_TARGET_OS" = "macosx" ]; then
|
||||||
echo -n "JRE "
|
echo -n "JRE "
|
||||||
compare_all_execs $THIS_JRE $OTHER_JRE $COMPARE_ROOT/jre
|
compare_all_execs $THIS_JRE $OTHER_JRE $COMPARE_ROOT/jre
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -1493,6 +1548,10 @@ if [ "$CMP_EXECS" = "true" ]; then
|
|||||||
echo -n "JavaAppletPlugin "
|
echo -n "JavaAppletPlugin "
|
||||||
compare_all_execs $THIS_DEPLOY_APPLET_PLUGIN_DIR $OTHER_DEPLOY_APPLET_PLUGIN_DIR $COMPARE_ROOT/plugin
|
compare_all_execs $THIS_DEPLOY_APPLET_PLUGIN_DIR $OTHER_DEPLOY_APPLET_PLUGIN_DIR $COMPARE_ROOT/plugin
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$THIS_SPARKLE_DIR" ] && [ -n "$OTHER_SPARKLE_DIR" ]; then
|
||||||
|
echo -n "Sparkle.framework "
|
||||||
|
compare_all_execs $THIS_SPARKLE_DIR $OTHER_SPARKLE_DIR $COMPARE_ROOT/sparkle
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -319,6 +319,7 @@ else # HAS_SPEC=true
|
|||||||
$(call PrepareCompareBuild)
|
$(call PrepareCompareBuild)
|
||||||
|
|
||||||
post-compare-build:
|
post-compare-build:
|
||||||
|
$(call WaitForSmartJavacFinish)
|
||||||
$(call CleanupCompareBuild)
|
$(call CleanupCompareBuild)
|
||||||
$(call CompareBuildDoComparison)
|
$(call CompareBuildDoComparison)
|
||||||
|
|
||||||
|
@ -353,14 +353,17 @@ else # $(HAS_SPEC)=true
|
|||||||
# Parse COMPARE_BUILD into COMPARE_BUILD_*
|
# Parse COMPARE_BUILD into COMPARE_BUILD_*
|
||||||
# Syntax: COMPARE_BUILD=CONF=<configure options>:PATCH=<patch file>:
|
# Syntax: COMPARE_BUILD=CONF=<configure options>:PATCH=<patch file>:
|
||||||
# MAKE=<make targets>:COMP_OPTS=<compare script options>:
|
# MAKE=<make targets>:COMP_OPTS=<compare script options>:
|
||||||
# COMP_DIR=<compare script base dir>|<default>
|
# COMP_DIR=<compare script base dir>|<default>:
|
||||||
|
# FAIL=<bool>
|
||||||
# If neither CONF or PATCH is given, assume <default> means CONF if it
|
# If neither CONF or PATCH is given, assume <default> means CONF if it
|
||||||
# begins with "--", otherwise assume it means PATCH.
|
# begins with "--", otherwise assume it means PATCH.
|
||||||
# MAKE and COMP_OPTS can only be used with CONF and/or PATCH specified.
|
# MAKE and COMP_OPTS can only be used with CONF and/or PATCH specified.
|
||||||
# If any value contains "+", it will be replaced by space.
|
# If any value contains "+", it will be replaced by space.
|
||||||
|
# FAIL can be set to false to have the return value of compare be ignored.
|
||||||
define ParseCompareBuild
|
define ParseCompareBuild
|
||||||
ifneq ($$(COMPARE_BUILD), )
|
ifneq ($$(COMPARE_BUILD), )
|
||||||
COMPARE_BUILD_OUTPUT_ROOT := $(TOPDIR)/build/compare-build/$(CONF_NAME)
|
COMPARE_BUILD_OUTPUT_ROOT := $(TOPDIR)/build/compare-build/$(CONF_NAME)
|
||||||
|
COMPARE_BUILD_FAIL := true
|
||||||
|
|
||||||
ifneq ($$(findstring :, $$(COMPARE_BUILD)), )
|
ifneq ($$(findstring :, $$(COMPARE_BUILD)), )
|
||||||
$$(foreach part, $$(subst :, , $$(COMPARE_BUILD)), \
|
$$(foreach part, $$(subst :, , $$(COMPARE_BUILD)), \
|
||||||
@ -379,6 +382,9 @@ else # $(HAS_SPEC)=true
|
|||||||
$$(if $$(filter COMP_DIR=%, $$(part)), \
|
$$(if $$(filter COMP_DIR=%, $$(part)), \
|
||||||
$$(eval COMPARE_BUILD_COMP_DIR=$$(strip $$(subst +, , $$(patsubst COMP_DIR=%, %, $$(part))))) \
|
$$(eval COMPARE_BUILD_COMP_DIR=$$(strip $$(subst +, , $$(patsubst COMP_DIR=%, %, $$(part))))) \
|
||||||
) \
|
) \
|
||||||
|
$$(if $$(filter FAIL=%, $$(part)), \
|
||||||
|
$$(eval COMPARE_BUILD_FAIL=$$(strip $$(subst +, , $$(patsubst FAIL=%, %, $$(part))))) \
|
||||||
|
) \
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
# Separate handling for single field case, to allow for spaces in values.
|
# Separate handling for single field case, to allow for spaces in values.
|
||||||
@ -402,6 +408,9 @@ else # $(HAS_SPEC)=true
|
|||||||
$$(error Patch file $$(COMPARE_BUILD_PATCH) does not exist)
|
$$(error Patch file $$(COMPARE_BUILD_PATCH) does not exist)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
ifneq ($$(COMPARE_BUILD_FAIL), true)
|
||||||
|
COMPARE_BUILD_IGNORE_RESULT := || true
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -443,9 +452,10 @@ else # $(HAS_SPEC)=true
|
|||||||
$(ECHO) "Comparing between comparison rebuild (this/new) and baseline (other/old)"
|
$(ECHO) "Comparing between comparison rebuild (this/new) and baseline (other/old)"
|
||||||
$(if $(COMPARE_BUILD_COMP_DIR), \
|
$(if $(COMPARE_BUILD_COMP_DIR), \
|
||||||
+(cd $(COMPARE_BUILD_OUTPUT_ROOT) && ./compare.sh $(COMPARE_BUILD_COMP_OPTS) \
|
+(cd $(COMPARE_BUILD_OUTPUT_ROOT) && ./compare.sh $(COMPARE_BUILD_COMP_OPTS) \
|
||||||
-2dirs $(COMPARE_BUILD_OUTPUT_ROOT)/$(COMPARE_BUILD_COMP_DIR) $(OUTPUT_ROOT)/$(COMPARE_BUILD_COMP_DIR) || true), \
|
-2dirs $(COMPARE_BUILD_OUTPUT_ROOT)/$(COMPARE_BUILD_COMP_DIR) \
|
||||||
|
$(OUTPUT_ROOT)/$(COMPARE_BUILD_COMP_DIR) $(COMPARE_BUILD_IGNORE_RESULT)), \
|
||||||
+(cd $(COMPARE_BUILD_OUTPUT_ROOT) && ./compare.sh $(COMPARE_BUILD_COMP_OPTS) \
|
+(cd $(COMPARE_BUILD_OUTPUT_ROOT) && ./compare.sh $(COMPARE_BUILD_COMP_OPTS) \
|
||||||
-o $(OUTPUT_ROOT) || true) \
|
-o $(OUTPUT_ROOT) $(COMPARE_BUILD_IGNORE_RESULT)) \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user