[loc-en-dev] jtreg and build question
locale-enhancement-dev at openjdk.java.net
locale-enhancement-dev at openjdk.java.net
Mon Dec 1 15:23:35 PST 2008
Douglas Felt wrote:
> Thanks Naoto.
>
> I've downloaded jtreg and verified that I can use it to test changes
> to Locale.java.
>
> I have two more questions, if you don't mind.
>
> 1) jtreg takes about five minutes to run the 13 Locale tests, which
> I'd like to run quickly as a sanity check. I suspect there's a better
> way to invoke it than the ways I have tried. Currently I cd to the
> root of my local jdk7 repo and try this
>
> ../jtreg/linux/bin/jtreg -jdk:build/linux-i586 test/java/util/Locale
>
> or this
>
> ../jtreg/linux/bin/jtreg -jdk:build/linux-i586 -dir:test/java/util/Locale .
>
> or this
>
> cd test/java/util/Locale
> ~/openjdk/jtreg/linux/bin/jtreg -jdk:../../../../build/linux-i586 .
>
> All report on the 13 tests I ran as well as the 3,000+ tests I
> skipped. I expect scanning all the tests is what's taking up all the
> time. There must be a way to restrict the scan to only one (or a few)
> subdirectories. Is there?
Hmm. When I execute the tests specifying the target directory, I only
get results only for tests under that directory (in this case, those 13
tests under test/java/util/Locale). I haven't used the open source
version of 'jtreg' yet, so there could be some differences.
>
> 2) recompiling also takes a long time. currently to build the
> fastdebug target I need to start from the root makefile under
> jdk/make. I can build the 'all' target under jdk/java/make, but I'd
> prefer to build everything with the same options. Is there a
> combination of location and target that is better for quick rebuilds?
I usually run 'gnumake' under jdk/make/java/java to build Locale.java,
which finishes pretty quickly.
>
> On the other hand, Locale is such as basic class that it might be
> better to just rebuild everything all the time.
Unlike the classes in java.lang, such as Character which is built quite
early in the build process and affects other areas, Locale is pretty
much safe for just building itself. Not 100% sure, though.
BTW, the 'From' field of this list always is
'locale-enhancement-dev at openjdk.java.net'. This can be set to the
poster's address by disabling the 'anonymous_list' general option.
HTH,
Naoto
>
> What do the Sun i18n folks do?
>
> Doug
>
> On Mon, Dec 1, 2008 at 11:33 AM, Naoto Sato <Naoto.Sato at sun.com> wrote:
>> Hi Doug,
>>
>> Thank you for bootstrapping the project!
>>
>> As to the test harness, I believe that you are referring to 'jtreg', which
>> is now an open source project:
>>
>> http://openjdk.java.net/jtreg/
>>
>> Thanks,
>> Naoto
--
Naoto Sato
More information about the locale-enhancement-dev
mailing list