diff options
author | wisberg <wisberg> | 2005-06-08 23:48:36 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2005-06-08 23:48:36 +0000 |
commit | ab64b605f3bb81f3852a81440969d54e20a10308 (patch) | |
tree | e206437cb4febff68711d422d9f884a1728048a0 /tests | |
parent | 28f118f040835aa0fb274e0fd28e3bbfe447c415 (diff) | |
download | aspectj-ab64b605f3bb81f3852a81440969d54e20a10308.tar.gz aspectj-ab64b605f3bb81f3852a81440969d54e20a10308.zip |
testsrc/TestsModulesTests for consistency. Now to run compiler tests, just `cd tests; ant test`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/.classpath | 1 | ||||
-rw-r--r-- | tests/testsrc/TestsModuleTests.java | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/tests/.classpath b/tests/.classpath index c7247db05..92e29f3bb 100644 --- a/tests/.classpath +++ b/tests/.classpath @@ -13,5 +13,6 @@ <classpathentry kind="var" path="JAVA_HOME/lib/tools.jar"/> <classpathentry sourcepath="/lib/bcel/bcel-src.zip" kind="lib" path="/lib/bcel/bcel.jar"/> <classpathentry kind="lib" path="/lib/ant/lib/ant-launcher.jar"/> + <classpathentry kind="src" path="testsrc"/> <classpathentry kind="output" path="bin"/> </classpath> diff --git a/tests/testsrc/TestsModuleTests.java b/tests/testsrc/TestsModuleTests.java new file mode 100644 index 000000000..2c79a7dd4 --- /dev/null +++ b/tests/testsrc/TestsModuleTests.java @@ -0,0 +1,42 @@ +/* ******************************************************************* + * Copyright (c) 2005 Contributors. + * All rights reserved. + * This program and the accompanying materials are made available + * under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution and is available at + * http://eclipse.org/legal/epl-v10.html + * + * Contributors: + * Wes Isberg initial implementation + * ******************************************************************/ + +import junit.framework.TestCase; +import junit.framework.Test; +import junit.framework.TestSuite; + +import org.aspectj.systemtest.AllTests; +import org.aspectj.systemtest.AllTests14; +import org.aspectj.systemtest.AllTests15; +import org.aspectj.util.LangUtil; + +public class TestsModuleTests extends TestCase { + + public static Test suite() { + String name = TestsModuleTests.class.getName(); + TestSuite suite = new TestSuite(name); + // compiler tests, wrapped for JUnit + suite.addTest(AllTests.suite()); + if (LangUtil.is15VMOrGreater()) { + suite.addTest(AllTests14.suite()); + suite.addTest(AllTests15.suite()); + } else if (LangUtil.is14VMOrGreater()) { + System.err.println("Skipping tests for 1.5"); + //suite.addTest(TestUtil.skipTest("for 1.5")); + suite.addTest(AllTests14.suite()); + } else { + System.err.println("Skipping tests for 1.4 and 1.5"); + //suite.addTest(TestUtil.skipTest("for 1.4 and 1.5")); + } + return suite; + } +} |