initial commit
This commit is contained in:
27
MicroJava Tests/tests/ssw/mj/test/support/Configuration.java
Normal file
27
MicroJava Tests/tests/ssw/mj/test/support/Configuration.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package ssw.mj.test.support;
|
||||
|
||||
public class Configuration {
|
||||
/**
|
||||
* set to true to print expected and actual values of all testcases,
|
||||
* not only failing ones (prints expected errors, tokens, symbol table, code)
|
||||
*/
|
||||
public static final boolean ALSO_PRINT_SUCCESSFUL_TESTCASES = Boolean.getBoolean("microjava.testcaseOutput");
|
||||
|
||||
/**
|
||||
* Set to true to print debug information of the interpreter. Equal to
|
||||
* "-debug" on the command line. <br>
|
||||
* Remark:<br>
|
||||
* This is a lot of output, some test cases might time out, e.g.
|
||||
* CodeGenerationTest.fib
|
||||
*/
|
||||
public static final boolean PRINT_INTERPRETER_DEBUG_OUTPUT = Boolean.getBoolean("microjava.interpreterOutput");
|
||||
|
||||
/**
|
||||
* Determines the timeout after which a test case should fail automatically.
|
||||
* Default: 10 seconds. The default should work for all test cases
|
||||
* on most machines.<br>
|
||||
* <em>Attention</em>: For most computers it is likely that there is an
|
||||
* endless loop in the MicroJava compiler if a test fails for a timeout.
|
||||
*/
|
||||
public static final long TIMEOUT = 10;
|
||||
}
|
||||
Reference in New Issue
Block a user