diff options
author | wisberg <wisberg> | 2005-02-11 05:11:18 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2005-02-11 05:11:18 +0000 |
commit | 0e00ca5fc891fcc70cd7fea1e666dde988a7764a (patch) | |
tree | 7f7f3ce44ad702bfc50946911c4a2d70b6a1437d /build/testsrc | |
parent | 0bf0bcc26001960e9d36d4b0153d10f2f7929f17 (diff) | |
download | aspectj-0e00ca5fc891fcc70cd7fea1e666dde988a7764a.tar.gz aspectj-0e00ca5fc891fcc70cd7fea1e666dde988a7764a.zip |
testing aspectj5rt module
Diffstat (limited to 'build/testsrc')
-rw-r--r-- | build/testsrc/org/aspectj/internal/build/BuildModuleTest.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/build/testsrc/org/aspectj/internal/build/BuildModuleTest.java b/build/testsrc/org/aspectj/internal/build/BuildModuleTest.java index 2cbe7e7ca..8c4ca2bc9 100644 --- a/build/testsrc/org/aspectj/internal/build/BuildModuleTest.java +++ b/build/testsrc/org/aspectj/internal/build/BuildModuleTest.java @@ -45,6 +45,10 @@ import junit.framework.TestCase; public class BuildModuleTest extends TestCase { private static boolean printedMessage; + // skip those requiring ajdoc, which requires tools.jar + // also skip those requiring java5 unless manually set up + private static final String[] SKIPS + = {"ajbrowser", "aspectjtools", "ajdoc", "aspectj5rt"}; private static final String SKIP_MESSAGE = "Define \"run.build.tests\" as a system property to run tests to build "; private static final String BUILD_CONFIG; @@ -105,6 +109,12 @@ public class BuildModuleTest extends TestCase { checkBuild("runtime"); } + public void testAspectj5rt() { + checkBuild("aspectj5rt", + "org.aspectj.lang.annotation.Main", + new String[] {}); // compiler version + } + public void testAjbrowser() { checkBuild("ajbrowser", "org.aspectj.tools.ajbrowser.Main", @@ -122,6 +132,7 @@ public class BuildModuleTest extends TestCase { new String[] {"-help"}); } + // ajdoc relies on tools.jar public void testAspectjtools() { if (!shouldBuild("aspectjtools")) { return; @@ -239,6 +250,12 @@ public class BuildModuleTest extends TestCase { System.err.println(SKIP_MESSAGE + target + " (this is the only warning)"); printedMessage = true; } + for (int i = 0; i < SKIPS.length; i++) { + if (SKIPS[i].equals(target)) { + System.err.println(target + " expressly skipped..."); + return false; + } + } return building; } void checkBuild(String module, |