webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Public Member Functions | |
RefDrv (String[] args) | |
boolean | processOptions () |
synchronized void | executeSuite (TestSuite suite) |
![]() | |
TestDriver (String[] args) | |
void | run () |
void | start () |
void | stop () |
void | closeLogs () |
void | writeLogHeaders (File output) |
Vector | getSuites (String[] files) |
void | getCases (TestSuite suite) |
synchronized void | executeSuite (TestSuite suite) |
void | writeTinderboxHeader (String executable) |
void | writeTinderboxSuiteName (TestSuite suite) |
void | writeTinderboxSuiteResult (TestSuite suite) |
String | getSuffix () |
void | setSuffix (String s) |
boolean | sleep (int ms) |
boolean | processOptions () |
Static Public Member Functions | |
static void | main (String[] args) |
![]() | |
static String [] | getSystemInformation () |
static TestLog | getLog (File output, String filename) |
static void | openLogFiles (File output) |
static String | stripDoubleSlashes (String string) |
static void | enablePrivileges () |
static void | writeSuiteResult (TestSuite suite, File output) |
static void | writeSuiteSummary (TestSuite suite, File output) |
static void | writeFileResult (TestFile file, TestSuite suite, File output) |
static String | readFile (String filePath) |
static void | writeCaseResults (TestFile file, TestSuite suite, File output) |
static void | writeCaseResults (TestFile file, String classname, File output) |
static void | writeDateToLogs (String separator, File output) |
static void | p (String s) |
static void | debug (String s) |
static String | getCurrentDate (String separator) |
static String | getCurrentTime () |
static void | main (String[] args) |
Additional Inherited Members | |
![]() | |
static boolean | TINDERBOX = false |
static final boolean | DEBUG = true |
static final boolean | TCMS = false |
static final String | SUMMARY_LOG_NAME = "summ.html" |
static final String | CASE_LOG_NAME = "case.html" |
static final String | FILE_LOG_NAME = "file.html" |
static final String | SUITE_LOG_NAME = "suite.html" |
static final String | DEBUG_LOG_NAME = "debug.html" |
static final String | TERMINATOR = "<BR>\n" |
TestDriver for running the JavaScript conformance tests against the JavaScript engine implemenation in C, A.K.A. js/ref, Monkey.
For each test program, RefDrv creates a RefEnv. RefEnv in turn calls the JavaScript shell executable (jsshell.exe), passing the helper file and the test file as arguments.
RefEnv reads the output of the jsshell process. You must use the jsref.js
helper file, which formats the printed output of each test in a way that RefEnv can parse.
RefEnv expects the following command line options:
-c 1 or 0; whether or not to use code coverage -e Full path to jsshell.exe -d Path to the directory where the tests are installed -h Path to the helper file (jsref.js) -s List of suites to execute (optional) -o Directory in which log files should be written (optional) -t
For example, the following command line will run the tests in c: and c: against the jsshell executable found in c:
java -classpath CLASSPATH% com.netscape.javascript.qa.drivers.RefDrv -d c:\ -h c:.js -e c:.exe -s Math Number
|
inline |
Create a new RefDrv.
args | the arguments passed to the main method. |
|
inlinestatic |
RefDrv expects the following options:
-e full path to the JavaScript executable -d directory in which tests are installed -h path to helper functions file (jsref.js) -o directory in which log files will be written -s list of Suites that should be executed
|
inline |
Process command line options.