Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 34944 invoked from network); 27 Apr 2006 10:52:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Apr 2006 10:52:01 -0000 Received: (qmail 79367 invoked by uid 500); 27 Apr 2006 10:51:57 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 79326 invoked by uid 500); 27 Apr 2006 10:51:57 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 79311 invoked by uid 99); 27 Apr 2006 10:51:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2006 03:51:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mloenko@gmail.com designates 64.233.182.184 as permitted sender) Received: from [64.233.182.184] (HELO nproxy.gmail.com) (64.233.182.184) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2006 03:51:56 -0700 Received: by nproxy.gmail.com with SMTP id m19so1371904nfc for ; Thu, 27 Apr 2006 03:51:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hM+yeU9Z2Bd3wyHuVpcn3HIr/CejNbpNmWC6GddMLFYE6/wJpszc+qTXIZOraMqG5kIc563G7X7QX5lN41VVJYDOmp/JymrYWNXlrLtS+YAbzSRWnIi0v6k80XNXXpp1EsD0Hy4us7wj7dgZTfgiaBxOWnElW/5wg/4cAUqXGBQ= Received: by 10.49.39.12 with SMTP id r12mr2472425nfj; Thu, 27 Apr 2006 03:51:34 -0700 (PDT) Received: by 10.49.6.5 with HTTP; Thu, 27 Apr 2006 03:51:34 -0700 (PDT) Message-ID: <906dd82e0604270351l7b200081g978b7234b10f57fb@mail.gmail.com> Date: Thu, 27 Apr 2006 17:51:34 +0700 From: "Mikhail Loenko" To: harmony-dev@incubator.apache.org Subject: Re: [classlib] Testing In-Reply-To: <44509102.7050402@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44213FE0.4070103@pobox.com> <44501C34.5040605@pobox.com> <906dd82e0604262037w3389e7f3r3f1d502d3fd1f856@mail.gmail.com> <4450414D.6050708@gmail.com> <906dd82e0604262203y504b8a0as89a3712152f8e7f6@mail.gmail.com> <44506246.9040101@gmail.com> <906dd82e0604262335i3854bcc2v2b9305c552aede7a@mail.gmail.com> <44506924.1020505@gmail.com> <906dd82e0604270113m4ce121aamc560176341a6b76f@mail.gmail.com> <44509102.7050402@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N And how would you split 1,2,4,5 between these two folders? Thanks, Mikhail 2006/4/27, Paulex Yang : > Mikhail Loenko wrote: > > If it's separated, I'm OK with it > > > > Can you suggest dir names? > > > Great! > > Either boot or injected(as Mark said) sounds good keyword to me. so it > can be one of below: > 1. src/test.injected/ > 2. src/test/injected > 3. src/test.boot/ > 4. src/test/boot > > Mmm...seems injected is more self-descriptive, I prefer option 1. So > the layout would be: > src/main > src/test > src/test.injected > > ideas? > > Thanks, > > Mikhail > > > > 2006/4/27, Paulex Yang : > > > >> Mikhail Loenko wrote: > >> > >>> The problem is the tests will be mixed like that: > >>> > >>> org.apache.harmony.security.asn1 -- tests in bootclasspath > >>> org.apache.harmony.security.cert -- tests in bootclasspath > >>> org.apache.harmony.security.tests -- tests in classpath > >>> org.apache.harmony.security.x509 -- tests in bootclasspath > >>> > >>> > >> Good catch! :) > >> > >> It's not so hard for script to separate, if the package name doesn't > >> contains "test", it belongs to bootclasspath > >> > >> And if you concern about human reading, we can separate src directory > >> for them, i.e. > >> src/main/java > >> src/test/java > >> src/boottest/java or src/test/boot/java > >> > >> comments? > >> > >>> Thanks, > >>> Mikhail > >>> > >>> 2006/4/27, Paulex Yang : > >>> > >>> > >>>> Mikhail Loenko wrote: > >>>> > >>>> > >>>>> Paulex, > >>>>> > >>>>> we have at least 8 categories of tests: > >>>>> running from classpath or bootclasspath > >>>>> implementation specific or independent > >>>>> testing org.apache.harmony.* or java.* > >>>>> Could you please list how all the tests will be named > >>>>> > >>>>> > >>>>> > >>>> Mikhail, > >>>> > >>>> OK, let me try. I'm not sure if all 8 categories are necessary, > >>>> > >>>> 1. [classpath], [independent], [java.*] > >>>> o.a.h..tests.api., e.g., > >>>> o.a.h.luni.tests.api.java.util is test package for java.util > >>>> I consider the module name is optional and can be removed, so it= can be > >>>> o.a.h.tests.api.java.util for java.util > >>>> > >>>> 2. [classpath], [dependent], [o.a.h.*] > >>>> o.a.h..tests.= , > >>>> e.g., o.a.h.luni.tests.util is test package for o.a.h.luni.util > >>>> Again, the module name is optional, but if module name is not > >>>> prefix, it should be part of package name, so it is: > >>>> o.a.h.tests.luni.util for o.a.h.luni.util > >>>> > >>>> 3. [classpath], [independent], [o.a.h.*] > >>>> I don't expect these classes/tests exist. > >>>> > >>>> 4. [classpath], [dependent], [java.*] > >>>> if my understanding is correct, this category means the tests for > >>>> intended different behavior between Harmony and RI, I consider these > >>>> tests should be put in same package with API tests, and separate the= m by > >>>> running script instead of different package, because RI may fix bug = in > >>>> the revision later(e.g, Sun JDK 1.5.1 maybe?), and IIRC in another > >>>> thread we have agreed that we always follow latest version of RI, so= it > >>>> will be much easier to change the different behavior tests to API te= sts > >>>> if we use script to separate them, and vice versa. > >>>> > >>>> 5. [bootclasspath], > >>>> which covers 4 categories you mentioned, the test cases are in sa= me > >>>> package with implementions > >>>> e.g. > >>>> java.util is test package for java.util > >>>> and > >>>> o.a.h.luni.util is test packag for o.a.h.luni.util > >>>> > >>>> As a summary, we'll have four kind of test packages: > >>>> > >>>> a. o.a.h..tests.api.java.*** for case 1,4 above > >>>> b. o.a.h..tests.*** for case 2 above > >>>> c. java.***, for case 5 above > >>>> d. o.a.h.***, for case 5 above > >>>> > >>>> comments? > >>>> > >>>> > >>>> > >>>> > >>>>> Thanks, > >>>>> Mikhail > >>>>> > >>>>> > >>>>> 2006/4/27, Paulex Yang : > >>>>> > >>>>> > >>>>> > >>>>>> Mikhail Loenko wrote: > >>>>>> > >>>>>> > >>>>>> > >>>>>>> Geir, > >>>>>>> > >>>>>>> The problem is that no one yet suggested a consistent solution > >>>>>>> that would fit for all the tests and would not get into packages = like > >>>>>>> > >>>>>>> org.apache.harmony.security.tests.org.apache.harmony.security.uti= l > >>>>>>> > >>>>>>> > >>>>>>> Everybody seems to agree that SOME implementation specific tests = are > >>>>>>> in the same package as implementation. > >>>>>>> > >>>>>>> But if we have ALL the tests in the same package as implementatio= n, > >>>>>>> then we can't run e.g. tests against java.beans.Beans from classp= ath, so > >>>>>>> we can't run regression test for HARMONY-358 > >>>>>>> > >>>>>>> The question is where we put 'classpath' test. If we put them in= to > >>>>>>> o.a.h.module.tests.[package under test] we result in that ugly pa= ckage > >>>>>>> names like > >>>>>>> o.a.h.security.tests.o.a.h.security.util > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> Mikhail, > >>>>>> > >>>>>> Why my prior proposal that o.a.h.security.tests.impl.util is unacc= eptable? > >>>>>> > >>>>>> And I have no objection if "impl" considered redundant, too. > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>> Thanks, > >>>>>>> Mikhail > >>>>>>> > >>>>>>> > >>>>>>> 2006/4/27, Geir Magnusson Jr : > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>>> Geir Magnusson Jr wrote: > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>>> George Harley wrote: > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>> >> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>>>> Of course, the text module has only "implementation-independen= t tests > >>>>>>>>>> that designed to be run from classpath". For modules that have= got > >>>>>>>>>> implementation-specific tests then I suppose we could use some= thing > >>>>>>>>>> like "org.apache.harmony.[module].tests.impl.[package under te= st]" or > >>>>>>>>>> "org.apache.harmony.[module].tests.internal.[package under tes= t]" etc. > >>>>>>>>>> I've got no preference. > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>> -1 > >>>>>>>>> > >>>>>>>>> Put them in the same package as the class being tested, please,= if there > >>>>>>>>> is no problem being run that way. > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>> Sorry to be so snippy. Been a long day. > >>>>>>>> > >>>>>>>> Why would we want this convoluted package name? Why wouldn't we= want to > >>>>>>>> let them be in the same package as the class being tested since = it's > >>>>>>>> implementation testing? > >>>>>>>> > >>>>>>>> geir > >>>>>>>> > >>>>>>>> ----------------------------------------------------------------= ----- > >>>>>>>> Terms of use : http://incubator.apache.org/harmony/mailing.html > >>>>>>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache= .org > >>>>>>>> For additional commands, e-mail: harmony-dev-help@incubator.apac= he.org > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>> -----------------------------------------------------------------= ---- > >>>>>>> Terms of use : http://incubator.apache.org/harmony/mailing.html > >>>>>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.= org > >>>>>>> For additional commands, e-mail: harmony-dev-help@incubator.apach= e.org > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> -- > >>>>>> Paulex Yang > >>>>>> China Software Development Lab > >>>>>> IBM > >>>>>> > >>>>>> > >>>>>> > >>>>>> ------------------------------------------------------------------= --- > >>>>>> Terms of use : http://incubator.apache.org/harmony/mailing.html > >>>>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.o= rg > >>>>>> For additional commands, e-mail: harmony-dev-help@incubator.apache= .org > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> -------------------------------------------------------------------= -- > >>>>> Terms of use : http://incubator.apache.org/harmony/mailing.html > >>>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.or= g > >>>>> For additional commands, e-mail: harmony-dev-help@incubator.apache.= org > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>> -- > >>>> Paulex Yang > >>>> China Software Development Lab > >>>> IBM > >>>> > >>>> > >>>> > >>>> --------------------------------------------------------------------= - > >>>> Terms of use : http://incubator.apache.org/harmony/mailing.html > >>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > >>>> For additional commands, e-mail: harmony-dev-help@incubator.apache.o= rg > >>>> > >>>> > >>>> > >>>> > >>> --------------------------------------------------------------------- > >>> Terms of use : http://incubator.apache.org/harmony/mailing.html > >>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > >>> For additional commands, e-mail: harmony-dev-help@incubator.apache.or= g > >>> > >>> > >>> > >>> > >> -- > >> Paulex Yang > >> China Software Development Lab > >> IBM > >> > >> > >> > >> --------------------------------------------------------------------- > >> Terms of use : http://incubator.apache.org/harmony/mailing.html > >> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > >> For additional commands, e-mail: harmony-dev-help@incubator.apache.org > >> > >> > >> > > > > --------------------------------------------------------------------- > > Terms of use : http://incubator.apache.org/harmony/mailing.html > > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > > For additional commands, e-mail: harmony-dev-help@incubator.apache.org > > > > > > > > > -- > Paulex Yang > China Software Development Lab > IBM > > > > --------------------------------------------------------------------- > Terms of use : http://incubator.apache.org/harmony/mailing.html > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > For additional commands, e-mail: harmony-dev-help@incubator.apache.org > > --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org