Using compare.sh ?

David Holmes david.holmes at oracle.com
Wed Nov 21 04:25:47 PST 2012


On 21/11/2012 8:16 PM, Erik Joelsson wrote:
> I will try to improve the help output from script and detecting of bad
> input.
>
> The way it's currently implemented, it compares a "build" and not just
> an image. -o is supposed to point to the root of a build output. The
> usecase of comparing just the j2sdk image was dropped. I wanted to check
> both the jre and sdk images, and am now also adding comparison of docs.

Wow! That's a huge loss of usability to me :( I want to compare images, 
not sets of images. I don't have complete sets to start from and I don't 
want to see a report that a thousand things are missing. It also sounds 
from that that it won't be able to compare profiles because it doesn't 
know about them. :(

I'm trying to sync up the profiles work from b60 level to b65 and I just 
got the images target to build again, so now I want to check that the 
jdk and jre images produced has the same contents compared to my b60 
build, before trying to make the profile images work again.

We also wanted to use this tool to compare a new build JDK with an old 
build JDK. But we really want to be able to work with individual images.

David
-----

> The intended way of calling the script for what I think you are trying
> to do would be:
>
> /java/embedded/users/dh198349/profiles/builds/b65/se-linux-i586-ea> bash
> compare.sh -all -vv -o
> /scratch/dh198349/profiles-ref/builds/b60/se-linux-i586-ea
>
> /Erik
>
> On 2012-11-21 10:54, David Holmes wrote:
>> I found compareimages.sh extremely simple to use and very useful. Now
>> we have a compare.sh in the "config" directory which I assume I run
>> from the "root" of the image I want to compare, with -o pointing to
>> the other image. But something doesn't seem right:
>>
>> >
>> /java/embedded/users/dh198349/profiles/builds/b65/se-linux-i586-ea/images/j2sdk-image
>> > bash ../../compare.sh -all -vv -o
>> /scratch/dh198349/profiles-ref/builds/b60/se-linux-i586-ea/images/j2sdk-image/
>>
>> /java/embedded/users/dh198349/profiles/builds/b65/se-linux-i586-ea
>> Comparing to:
>> /scratch/dh198349/profiles-ref/builds/b60/se-linux-i586-ea/images/j2sdk-image
>>
>>
>>
>> No regressions found
>>
>> --
>>
>> Apart from expecting regressions, I also specified -vv but there's no
>> output. ??
>>
>> David
>>
>> PS. The "example" from compare.sh usage message still refers to the
>> now non-existent common/bin/compareimages.sh
>>
>> Thanks,
>> David



More information about the build-infra-dev mailing list