01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.rewriter.test.suites;
06:
07: import com.sun.portal.rewriter.RewriterModule;
08: import com.sun.portal.rewriter.engines.js.test.TestJSSuite;
09: import com.sun.portal.rewriter.test.TestRewriterSuite;
10: import com.sun.portal.rewriter.test.util.BasicTestCase;
11: import junit.framework.Test;
12: import junit.framework.TestSuite;
13:
14: public class TestRewriterBATSuite {
15: public static Test suite() {
16: return TestRewriterSuite.suite();
17: }//suite()
18:
19: public static Test perfSuite(String[] args) {
20: Test test;
21:
22: if (args.length == 0) {
23: test = suite();
24: } else {
25: test = BasicTestCase.createPerfSuite(args[0], args[1],
26: suite());
27: }
28:
29: //let the js interpreter one run only once even in perf mode
30: ((TestSuite) test).addTest(TestJSSuite.jsInterpreterSuite());
31: return test;
32: }//createPerfSuite()
33:
34: public static void main(String[] args) {
35: RewriterModule.initFile();
36: BasicTestCase.run(perfSuite(args));
37: }//main()
38: }//class TestRewriterBATSuite
|