From 6f93ffd43cd39ff24e1a2621b57126799d44297a Mon Sep 17 00:00:00 2001 From: wisberg Date: Wed, 29 Jan 2003 20:50:33 +0000 Subject: [PATCH] clearer discussion for reading incremental test specifications --- tests/readme-writing-compiler-tests.html | 71 ++++++++++++++++++++---- 1 file changed, 60 insertions(+), 11 deletions(-) diff --git a/tests/readme-writing-compiler-tests.html b/tests/readme-writing-compiler-tests.html index 8cc1a4815..65773a521 100644 --- a/tests/readme-writing-compiler-tests.html +++ b/tests/readme-writing-compiler-tests.html @@ -158,13 +158,60 @@ For example, here is a directory layout for the test above: The result will be one compile and two re-compiles:
    -
  1. Compile Main.java and DeleteMe.java
  2. -
  3. Update Main.java with the contents of Main.20.java - and recompile
  4. -
  5. Delete DeleteMe.java, - add NewFile.java, - update Main.java with the contents of Main.30.java - and recompile
  6. +
  7. Initially compile Main.java and DeleteMe.java +
    +    <compile staging="true"
    +              files="Main.java,DeleteMe.java"/>
    +
    +    {some dir}
    +        {testDefinition}.xml
    +        new/
    +          incremental1/
    +            ...
    +            DeleteMe.java
    +            ...
    +            Main.java
    +            ...
    +  
    +
  8. +
  9. For incremental tag 20, + update Main.java with the contents of + Main.20.java + and recompile, expecting an error on line 15: +
    +    <inc-compile tag="20">
    +        <message kind="error" line="15">
    +    </inc-compile>
    +
    +    {some dir}
    +        {testDefinition}.xml
    +        new/
    +          incremental1/
    +            ...
    +            Main.20.java
    +            ...
    +  
  10. + +
  11. For incremental tag 30, + delete DeleteMe.java, + add NewFile.java, + update Main.java with the contents of + Main.30.java + and recompile with no error or warning messages: +
    +    <inc-compile tag="30"/>
    +
    +    {some dir}
    +        {testDefinition}.xml
    +        new/
    +          incremental1/
    +            DeleteMe.delete.30.java
    +            ...
    +            Main.30.java
    +            ...
    +            NewFile.30.java
    +  
    +
@@ -267,7 +314,7 @@ Here's an example specification: It checks after a recompile that @@ -343,7 +390,7 @@ the options attribute: </compile> This should work even for complex single-arg options like --g:none, but will fail for comma-delimited single-arg options like +-g:none, but will fail for comma-delimited single-arg options like -g:lines,vars because the comma delimiters are ambiguous (yes, a design bug!). For -source 1.4 and -source 1.3 options, @@ -392,7 +439,7 @@ harness components for use information set up earlier by compile, some of which is only implicit. When a test is run, the harness creates a staging directory -for temporary files and a sandbox for sharing information +for temporary files and a sandbox component for sharing information between test components, particularly classpath entries shared between the compile and run components. The compile and run components share classpath information @@ -419,6 +466,8 @@ For more information, see the API documentation for the harness.
  • option dominance and overriding: Both in test specifications and on the command line you can force compiler options on or off. + (Forcing means that, e.g., even if an option is enabled in the + test specification, it can be disabled from the command line.) These appear in the test specifications as options with prefixes '!' or '~' rather than '-' (e.g., '~emacssym' to force @@ -426,7 +475,7 @@ For more information, see the API documentation for the harness.

  • -last updated January 7, 2002 +last updated January 29, 2002 -- 2.39.5