From weijun.wang at oracle.com Fri Jun 13 07:32:35 2014 From: weijun.wang at oracle.com (Wang Weijun) Date: Fri, 13 Jun 2014 15:32:35 +0800 Subject: timestamp for output? Message-ID: <0D4DFCE6-89D4-46B2-AA24-06F8AF80BF23@oracle.com> Hi All If a run a program directly, I can see the output sometimes fast sometimes slow and I know which part is spending more time. However, running a test inside jtreg prints the output all at once after the test completes. Is there an option so that I can add a timestamp to each line no matter if it's STDOUT or STDERR? Thanks Max From jonathan.gibbons at oracle.com Fri Jun 13 14:58:21 2014 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Fri, 13 Jun 2014 07:58:21 -0700 Subject: timestamp for output? In-Reply-To: <0D4DFCE6-89D4-46B2-AA24-06F8AF80BF23@oracle.com> References: <0D4DFCE6-89D4-46B2-AA24-06F8AF80BF23@oracle.com> Message-ID: <539B118D.6070207@oracle.com> On 06/13/2014 12:32 AM, Wang Weijun wrote: > Hi All > > If a run a program directly, I can see the output sometimes fast sometimes slow and I know which part is spending more time. However, running a test inside jtreg prints the output all at once after the test completes. Is there an option so that I can add a timestamp to each line no matter if it's STDOUT or STDERR? > > Thanks > Max > jtreg does not currently provide any such support although it is an interesting idea. File RFEs on bugs.openjdk.java.net, project CODETOOLS, tools:jtreg -- Jon From weijun.wang at oracle.com Fri Jun 13 15:06:51 2014 From: weijun.wang at oracle.com (Wang Weijun) Date: Fri, 13 Jun 2014 23:06:51 +0800 Subject: timestamp for output? In-Reply-To: <539B118D.6070207@oracle.com> References: <0D4DFCE6-89D4-46B2-AA24-06F8AF80BF23@oracle.com> <539B118D.6070207@oracle.com> Message-ID: <681CF176-C074-4A10-9DC2-38C3B9037A4C@oracle.com> https://bugs.openjdk.java.net/browse/CODETOOLS-7900950 filed. Thanks Max On Jun 13, 2014, at 22:58, Jonathan Gibbons wrote: > On 06/13/2014 12:32 AM, Wang Weijun wrote: >> Hi All >> >> If a run a program directly, I can see the output sometimes fast sometimes slow and I know which part is spending more time. However, running a test inside jtreg prints the output all at once after the test completes. Is there an option so that I can add a timestamp to each line no matter if it's STDOUT or STDERR? >> >> Thanks >> Max >> > > jtreg does not currently provide any such support although it is an interesting idea. > > File RFEs on bugs.openjdk.java.net, project CODETOOLS, tools:jtreg > > -- Jon From lev.priima at oracle.com Tue Jun 17 10:08:59 2014 From: lev.priima at oracle.com (Lev Priima) Date: Tue, 17 Jun 2014 14:08:59 +0400 Subject: running TestNG tests from nashorn/test by jtreg In-Reply-To: <539F0FF2.7000207@oracle.com> References: <539F0FF2.7000207@oracle.com> Message-ID: <53A013BB.6000307@oracle.com> Hi Jonathan, Is it possible to run TestNG tests from nashorn/test by using jtreg? Lev On 06/16/2014 07:40 PM, Lev Priima wrote: > Hi, > > Could you please point me to the doc, describing how to run > TestNG-tests from nashorn/test by using jtreg harness? > From lev.priima at oracle.com Tue Jun 17 10:41:46 2014 From: lev.priima at oracle.com (Lev Priima) Date: Tue, 17 Jun 2014 14:41:46 +0400 Subject: running TestNG tests from nashorn/test by jtreg In-Reply-To: <53A0145E.3030304@oracle.com> References: <539F0FF2.7000207@oracle.com> <53A0145E.3030304@oracle.com> Message-ID: <53A01B6A.4060000@oracle.com> Thanks Sundar, Do you plan to migrate to running all nashorn tests by using one harness(not using both ant and jtreg)? Could I run all tests from nashorn test(including both jtreg and TestNG tests) by using jtreg? Lev On 06/17/2014 02:11 PM, A. Sundararajan wrote: > Hi, > > only a subset of nashorn tests can be run with jtreg. > > *) cd $nashorn_repo_top_dir/test > *) jtreg -jdk: . > > If you want to run all tests, you've to run do > > *) cd $nashorn_repo_top_dir/make > *) ant clean test test262parallel > > -Sundar > > On Monday 16 June 2014 09:10 PM, Lev Priima wrote: >> Hi, >> >> Could you please point me to the doc, describing how to run >> TestNG-tests from nashorn/test by using jtreg harness? >> > From jonathan.gibbons at oracle.com Tue Jun 17 20:11:27 2014 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Tue, 17 Jun 2014 13:11:27 -0700 Subject: running TestNG tests from nashorn/test by jtreg In-Reply-To: <53A01C28.5040109@oracle.com> References: <539F0FF2.7000207@oracle.com> <53A0145E.3030304@oracle.com> <53A01B6A.4060000@oracle.com> <53A01C28.5040109@oracle.com> Message-ID: <53A0A0EF.2050503@oracle.com> Sundar, Yet another test framework? Should we consider support for these tests in jtreg? -- Jon On 06/17/2014 03:44 AM, A. Sundararajan wrote: > No. Nashorn test framework requires specific security manager to be > used. Also, nashorn test framework uses jtreg-style annotations in .js > files and parses those > > -Sundar > > On Tuesday 17 June 2014 04:11 PM, Lev Priima wrote: >> Thanks Sundar, >> >> Do you plan to migrate to running all nashorn tests by using one >> harness(not using both ant and jtreg)? Could I run all tests from >> nashorn test(including both jtreg and TestNG tests) by using jtreg? >> >> Lev >> >> On 06/17/2014 02:11 PM, A. Sundararajan wrote: >>> Hi, >>> >>> only a subset of nashorn tests can be run with jtreg. >>> >>> *) cd $nashorn_repo_top_dir/test >>> *) jtreg -jdk: . >>> >>> If you want to run all tests, you've to run do >>> >>> *) cd $nashorn_repo_top_dir/make >>> *) ant clean test test262parallel >>> >>> -Sundar >>> >>> On Monday 16 June 2014 09:10 PM, Lev Priima wrote: >>>> Hi, >>>> >>>> Could you please point me to the doc, describing how to run >>>> TestNG-tests from nashorn/test by using jtreg harness? >>>> >>> >> > From lev.priima at oracle.com Mon Jun 16 15:41:20 2014 From: lev.priima at oracle.com (Lev Priima) Date: Mon, 16 Jun 2014 15:41:20 -0000 Subject: running TestNG tests from nashorn/test by jtreg Message-ID: <539F0FF2.7000207@oracle.com> Hi, Could you please point me to the doc, describing how to run TestNG-tests from nashorn/test by using jtreg harness? -- Lev From sundararajan.athijegannathan at oracle.com Tue Jun 17 10:11:49 2014 From: sundararajan.athijegannathan at oracle.com (A. Sundararajan) Date: Tue, 17 Jun 2014 10:11:49 -0000 Subject: running TestNG tests from nashorn/test by jtreg In-Reply-To: <539F0FF2.7000207@oracle.com> References: <539F0FF2.7000207@oracle.com> Message-ID: <53A0145E.3030304@oracle.com> Hi, only a subset of nashorn tests can be run with jtreg. *) cd $nashorn_repo_top_dir/test *) jtreg -jdk: . If you want to run all tests, you've to run do *) cd $nashorn_repo_top_dir/make *) ant clean test test262parallel -Sundar On Monday 16 June 2014 09:10 PM, Lev Priima wrote: > Hi, > > Could you please point me to the doc, describing how to run > TestNG-tests from nashorn/test by using jtreg harness? > From sundararajan.athijegannathan at oracle.com Tue Jun 17 10:45:03 2014 From: sundararajan.athijegannathan at oracle.com (A. Sundararajan) Date: Tue, 17 Jun 2014 10:45:03 -0000 Subject: running TestNG tests from nashorn/test by jtreg In-Reply-To: <53A01B6A.4060000@oracle.com> References: <539F0FF2.7000207@oracle.com> <53A0145E.3030304@oracle.com> <53A01B6A.4060000@oracle.com> Message-ID: <53A01C28.5040109@oracle.com> No. Nashorn test framework requires specific security manager to be used. Also, nashorn test framework uses jtreg-style annotations in .js files and parses those -Sundar On Tuesday 17 June 2014 04:11 PM, Lev Priima wrote: > Thanks Sundar, > > Do you plan to migrate to running all nashorn tests by using one > harness(not using both ant and jtreg)? Could I run all tests from > nashorn test(including both jtreg and TestNG tests) by using jtreg? > > Lev > > On 06/17/2014 02:11 PM, A. Sundararajan wrote: >> Hi, >> >> only a subset of nashorn tests can be run with jtreg. >> >> *) cd $nashorn_repo_top_dir/test >> *) jtreg -jdk: . >> >> If you want to run all tests, you've to run do >> >> *) cd $nashorn_repo_top_dir/make >> *) ant clean test test262parallel >> >> -Sundar >> >> On Monday 16 June 2014 09:10 PM, Lev Priima wrote: >>> Hi, >>> >>> Could you please point me to the doc, describing how to run >>> TestNG-tests from nashorn/test by using jtreg harness? >>> >> >