From ab64b605f3bb81f3852a81440969d54e20a10308 Mon Sep 17 00:00:00 2001 From: wisberg Date: Wed, 8 Jun 2005 23:48:36 +0000 Subject: [PATCH] testsrc/TestsModulesTests for consistency. Now to run compiler tests, just `cd tests; ant test` --- tests/.classpath | 1 + tests/testsrc/TestsModuleTests.java | 42 +++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 tests/testsrc/TestsModuleTests.java diff --git a/tests/.classpath b/tests/.classpath index c7247db05..92e29f3bb 100644 --- a/tests/.classpath +++ b/tests/.classpath @@ -13,5 +13,6 @@ + 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; + } +} -- 2.39.5