Um, the unit & regression tests included in the JDK source distribution are in jtreg format.  While jtreg is implemented as a wrapper around javatest it is invoked differently than javatest and doesn't require *.jtt files. <div>
<br></div><div>The JCK (and other TCK's) are implemented with javatest and do require *.jtt files</div><div><br></div><div>The JCK is a different project under different licensing than the OpenJDK due to the -um- shall we say -um- interesting business considerations that Sun has.  It's been a matter of debate for quite some time what the JCK licensing is and should be.  An important consideration is that the JCK be kept separate from any 'Java implementation' like the OpenJDK to maintain the JCK's rule as a test suite to test any Java implementation. </div>
<div><br></div><div>There are pages on the openjdk site discussing jtreg - there is a javatest project on <a href="http://dev.java.net">dev.java.net</a> - </div><div><br></div><div>- David Herron</div><div>former Quality Group guy</div>
<div><a href="http://davidherron.com">http://davidherron.com</a></div><div><br></div><div><br></div><div>P.S. I haven't been at Sun for 11+ months and the above is to the best of my memory...</div><div><br><br><div class="gmail_quote">
On Thu, Dec 31, 2009 at 7:13 PM, Ray Kiddy <span dir="ltr"><<a href="mailto:ray@ganymede.org">ray@ganymede.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
On Dec 29, 2009, at 5:00 AM, Pavel Klodin wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Ray,<br>
<br>
 Roughly speaking, a test suite is a directory structure containing test sources and binaries, necessary libraries and documentation, etc. And there must be file 'testsuite.jtt' (or file 'testsuite.html' for backwards compatibility) at the top of this structure. This is how JavaTest identifies test suites.<br>

</blockquote>
<br>
Thanks for the reply. It is just odd that if I look, for example, in the bsd-port directory, I can look in directories that are named "test" and there are 36220 java sources in them. So, the tests are distributed with the source, but not the "jtt" files? Why would it be a good idea to not make the infrastructure as widely available as the soures? Are too many people wanting to run tests? I find that usually the opposite is true and putting barriers in front of people who want to run tests does not seem like a very good idea.....<br>

<br>
Why are jtt files not a regular part of the source?<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
 BTW, if you are using JCK with OpenJDK then you (or the company you're working for) must have signed OCTLA. So, please note for further possible questions that support for the JCK is primarily handled through a private mailing list, shared by Sun and OCTLA licensees.<br>

</blockquote>
<br>
I have gotten myself enough access to be able to check out sources from the OpenJDK. And I get tests with that. But not the capability of running them....<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
 Please also visit our (Conformance Group) page at <a href="http://openjdk.java.net/groups/conformance" target="_blank">http://openjdk.java.net/groups/conformance</a> for more information.<br>
</blockquote>
<br>
I will. Hopefully the rationale will be clearer. Right now, it seems that separating the JCK and the source is nonsensical. We'll see.<br>
<br>
cheers - ray<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-------- Original Message --------<br>
Subject:     issues with getting started...<br>
Date:     Sun, 27 Dec 2009 12:06:56 -0800<br>
From:     Ray Kiddy <<a href="mailto:ray@ganymede.org" target="_blank">ray@ganymede.org</a>><br>
To:     <a href="mailto:quality-discuss@openjdk.java.net" target="_blank">quality-discuss@openjdk.java.net</a><br>
Hello -<br>
I hate posting newbie-ishly, but I cannot avoid it in this case. I am  having problems with some things that seem really, really basic. I  have tried to read the available docs. Some links to testing articles  on <a href="http://java.net" target="_blank">java.net</a> have gone stale. Others seem to leave steps out. For  example, I have tried to follow the steps in <a href="http://openjdk.java.net/groups/conformance/docs/JCK6bUsersGuide/html/p13.html" target="_blank">http://openjdk.java.net/groups/conformance/docs/JCK6bUsersGuide/html/p13.html</a> .<br>

This may sound stupid, but I am having problem seeing how a test suite  is identified. If I launch javatest, it asks me which suite I want to  run. Is a suite identified by implementing an interface, or sub- classing some class? If so, I cannot find it. The UI would suggest  there is a suffix and a file type that identifies test suites. Or  else, how would the picker identify one? Using the file browser to  randomly find something that is acceptable as a test suite has not  worked.<br>

Is there a wiki page somewhere that describes the testing effort? I  did a search from a page on the OpenJDK wiki (<a href="http://wikis.sun.com/dosearchsite.action?queryString=test" target="_blank">http://wikis.sun.com/dosearchsite.action?queryString=test</a> ), and I got these results:<br>

   # test-test (test-test)<br>
   # Test_Test (test_test)<br>
   # .test. (.test.)<br>
   # testes (testes)<br>
   # test (test)<br>
   ...<br>
Not helpful. Paging through the rest of the results of this search  does not seem to bring one to anything useful. It seems that the  testing effort which is presumably going on within Sun has not yet  been given very much outside visibility. Or I am missing something  obvious, which is completely possible.<br>

I can build OpenJDK 7 on Mac OS X, and I am interested in seeing how  the tests can be run on this platform. I also have the VM build on an  Ubuntu system, but identifying a test suite is not any more obvious on  any other platform. Really, I am sure I am missing something which may  be obvious to many. I often come to things with, shall we say, a  "unique" perspective. But not seeing something "obvious" can be useful  and I often find that assumptions inherent in a process can be better  documented. It would be especially helpful if the documentation was on  a wki.<br>

Any suggestions?<br>
I have been working with java for quite a while. For example, I was in  the WebObjects team at Apple for almost 10 years and was there while  WO was being ported to java. I have some ideas for testing the VM that  might be interesting. But I obviously do not yet understand something  basic about the approach you all are taking. So, we'll see.<br>

thanx - ray<br>
</blockquote>
<br>
</blockquote>
<br>
</blockquote></div><br></div>