From: wisberg Date: Fri, 2 May 2003 19:09:11 +0000 (+0000) Subject: passing incremental tests from testing-drivers/testdata/harness/incremental X-Git-Tag: V1_1_0_RC2~91 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d65c2ae14065d41e0d6e5d0c29cede9514299183;p=aspectj.git passing incremental tests from testing-drivers/testdata/harness/incremental --- diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml index b7ad971d5..6a164462d 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -13,6 +13,7 @@ so there may only be one copy marked "messages-vary" here. new-messages-vary like messages-vary, except need to make ajcTest10 variant + incremental-test incremental test. All tests using inc-compile. fail-{...} test fails in some configuration fail-unimplmented eajc throwing "unimplemented" exception fail-commandLine fails in ajc on command line (move to ajcTestsBroken.xml) @@ -5744,7 +5745,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/incremental/initialTests/TestNoTester.java b/tests/incremental/initialTests/TestNoTester.java new file mode 100644 index 000000000..c411c1514 --- /dev/null +++ b/tests/incremental/initialTests/TestNoTester.java @@ -0,0 +1,5 @@ + +public class TestNoTester { + public static void main (String[] args) { + } +} diff --git a/tests/incremental/initialTests/classAdded/main/Main.20.java b/tests/incremental/initialTests/classAdded/main/Main.20.java new file mode 100644 index 000000000..aae295f7f --- /dev/null +++ b/tests/incremental/initialTests/classAdded/main/Main.20.java @@ -0,0 +1,11 @@ +package main; + +public class Main { + public static void main (String[] args) { + new Target().run(); + } +} + +class Target { + void run() {} +} diff --git a/tests/incremental/initialTests/classAdded/main/Main.java b/tests/incremental/initialTests/classAdded/main/Main.java new file mode 100644 index 000000000..185ed42bf --- /dev/null +++ b/tests/incremental/initialTests/classAdded/main/Main.java @@ -0,0 +1,7 @@ + +package main; + +public class Main { + public static void main (String[] args) { + } +} diff --git a/tests/incremental/initialTests/classRemoved/main/Main.20.java b/tests/incremental/initialTests/classRemoved/main/Main.20.java new file mode 100644 index 000000000..dbe5d38ca --- /dev/null +++ b/tests/incremental/initialTests/classRemoved/main/Main.20.java @@ -0,0 +1,8 @@ + +package main; + +public class Main { + public static void main (String[] args) { + } +} + diff --git a/tests/incremental/initialTests/classRemoved/main/Main.java b/tests/incremental/initialTests/classRemoved/main/Main.java new file mode 100644 index 000000000..aae295f7f --- /dev/null +++ b/tests/incremental/initialTests/classRemoved/main/Main.java @@ -0,0 +1,11 @@ +package main; + +public class Main { + public static void main (String[] args) { + new Target().run(); + } +} + +class Target { + void run() {} +} diff --git a/tests/incremental/initialTests/classUnchanged/main/Main.20.java b/tests/incremental/initialTests/classUnchanged/main/Main.20.java new file mode 100644 index 000000000..fba791e7a --- /dev/null +++ b/tests/incremental/initialTests/classUnchanged/main/Main.20.java @@ -0,0 +1,12 @@ + +package main; + +public class Main { + public static void main (String[] args) { + String s = "" + new Target(); + } +} + +class Target { + void run() {} +} diff --git a/tests/incremental/initialTests/classUnchanged/main/Main.java b/tests/incremental/initialTests/classUnchanged/main/Main.java new file mode 100644 index 000000000..aae295f7f --- /dev/null +++ b/tests/incremental/initialTests/classUnchanged/main/Main.java @@ -0,0 +1,11 @@ +package main; + +public class Main { + public static void main (String[] args) { + new Target().run(); + } +} + +class Target { + void run() {} +} diff --git a/tests/incremental/initialTests/classUpdated/main/Main.20.java b/tests/incremental/initialTests/classUpdated/main/Main.20.java new file mode 100644 index 000000000..d0b9d37b4 --- /dev/null +++ b/tests/incremental/initialTests/classUpdated/main/Main.20.java @@ -0,0 +1,8 @@ +package main; + +public class Main { + public static void main (String[] args) { + new Main().run(); + } + void run() {} +} diff --git a/tests/incremental/initialTests/classUpdated/main/Main.java b/tests/incremental/initialTests/classUpdated/main/Main.java new file mode 100644 index 000000000..185ed42bf --- /dev/null +++ b/tests/incremental/initialTests/classUpdated/main/Main.java @@ -0,0 +1,7 @@ + +package main; + +public class Main { + public static void main (String[] args) { + } +} diff --git a/tests/incremental/initialTests/defaultPackage-list/Main.30.java b/tests/incremental/initialTests/defaultPackage-list/Main.30.java new file mode 100644 index 000000000..a46687d78 --- /dev/null +++ b/tests/incremental/initialTests/defaultPackage-list/Main.30.java @@ -0,0 +1,8 @@ + +// default package + +public class Main { + public static void main (String[] args) { + new Target().run(); + } +} diff --git a/tests/incremental/initialTests/defaultPackage-list/Main.50.java b/tests/incremental/initialTests/defaultPackage-list/Main.50.java new file mode 100644 index 000000000..7616df98c --- /dev/null +++ b/tests/incremental/initialTests/defaultPackage-list/Main.50.java @@ -0,0 +1,7 @@ + +// default package + +public class Main { + public static void main (String[] args) { + } +} diff --git a/tests/incremental/initialTests/defaultPackage-list/Main.java b/tests/incremental/initialTests/defaultPackage-list/Main.java new file mode 100644 index 000000000..66b7433e4 --- /dev/null +++ b/tests/incremental/initialTests/defaultPackage-list/Main.java @@ -0,0 +1,7 @@ + +// default package + +public class Main { + public static void main (String[] args) { + } +} diff --git a/tests/incremental/initialTests/defaultPackage-list/Target.delete.40.java b/tests/incremental/initialTests/defaultPackage-list/Target.delete.40.java new file mode 100644 index 000000000..187c8a8e6 --- /dev/null +++ b/tests/incremental/initialTests/defaultPackage-list/Target.delete.40.java @@ -0,0 +1,2 @@ + +// delete this file \ No newline at end of file diff --git a/tests/incremental/initialTests/defaultPackage-list/Target.java b/tests/incremental/initialTests/defaultPackage-list/Target.java new file mode 100644 index 000000000..d67b06569 --- /dev/null +++ b/tests/incremental/initialTests/defaultPackage-list/Target.java @@ -0,0 +1,9 @@ + +// default package + +public class Target { + public static void main(String[] args) { + new Target().run(); + } + void run() {} +} diff --git a/tests/incremental/initialTests/defaultPackage/Main.30.java b/tests/incremental/initialTests/defaultPackage/Main.30.java new file mode 100644 index 000000000..a46687d78 --- /dev/null +++ b/tests/incremental/initialTests/defaultPackage/Main.30.java @@ -0,0 +1,8 @@ + +// default package + +public class Main { + public static void main (String[] args) { + new Target().run(); + } +} diff --git a/tests/incremental/initialTests/defaultPackage/Main.50.java b/tests/incremental/initialTests/defaultPackage/Main.50.java new file mode 100644 index 000000000..7616df98c --- /dev/null +++ b/tests/incremental/initialTests/defaultPackage/Main.50.java @@ -0,0 +1,7 @@ + +// default package + +public class Main { + public static void main (String[] args) { + } +} diff --git a/tests/incremental/initialTests/defaultPackage/Main.java b/tests/incremental/initialTests/defaultPackage/Main.java new file mode 100644 index 000000000..66b7433e4 --- /dev/null +++ b/tests/incremental/initialTests/defaultPackage/Main.java @@ -0,0 +1,7 @@ + +// default package + +public class Main { + public static void main (String[] args) { + } +} diff --git a/tests/incremental/initialTests/defaultPackage/Target.20.java b/tests/incremental/initialTests/defaultPackage/Target.20.java new file mode 100644 index 000000000..d67b06569 --- /dev/null +++ b/tests/incremental/initialTests/defaultPackage/Target.20.java @@ -0,0 +1,9 @@ + +// default package + +public class Target { + public static void main(String[] args) { + new Target().run(); + } + void run() {} +} diff --git a/tests/incremental/initialTests/defaultPackage/Target.delete.40.java b/tests/incremental/initialTests/defaultPackage/Target.delete.40.java new file mode 100644 index 000000000..187c8a8e6 --- /dev/null +++ b/tests/incremental/initialTests/defaultPackage/Target.delete.40.java @@ -0,0 +1,2 @@ + +// delete this file \ No newline at end of file diff --git a/tests/incremental/initialTests/expClasses/Main.java b/tests/incremental/initialTests/expClasses/Main.java new file mode 100644 index 000000000..66b7433e4 --- /dev/null +++ b/tests/incremental/initialTests/expClasses/Main.java @@ -0,0 +1,7 @@ + +// default package + +public class Main { + public static void main (String[] args) { + } +} diff --git a/tests/incremental/initialTests/expClasses/expected/Main.class b/tests/incremental/initialTests/expClasses/expected/Main.class new file mode 100644 index 000000000..fba840b69 Binary files /dev/null and b/tests/incremental/initialTests/expClasses/expected/Main.class differ diff --git a/tests/incremental/initialTests/readme.txt b/tests/incremental/initialTests/readme.txt new file mode 100644 index 000000000..c4ef5e1d3 --- /dev/null +++ b/tests/incremental/initialTests/readme.txt @@ -0,0 +1,15 @@ + +These tests were brought over from testing-drivers. + +The test specifications are in ajcTests{Failing}.xml. + +Some files are old and unused in this directory: + +- The files suite.xml, suiteFails.xml, and selectionTest.xml + show the old test specifications. + - Note that you can run "incremental" tests without the + -incremental option, and it will work even when listing + files (rather than using sourceroots), except that + deleting listed files causes an error. + +- It's possible not all sources are used. diff --git a/tests/incremental/initialTests/selectionTest.xml b/tests/incremental/initialTests/selectionTest.xml new file mode 100644 index 000000000..1657317e8 --- /dev/null +++ b/tests/incremental/initialTests/selectionTest.xml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/incremental/initialTests/sourceAdded/main/Main.30.java b/tests/incremental/initialTests/sourceAdded/main/Main.30.java new file mode 100644 index 000000000..59564d39c --- /dev/null +++ b/tests/incremental/initialTests/sourceAdded/main/Main.30.java @@ -0,0 +1,12 @@ + +package main; + +import org.aspectj.testing.Tester; + +public class Main { + public static void main (String[] args) { + new Target().run(); + Tester.expectEvent("Target.run()"); + Tester.checkAllEvents(); + } +} diff --git a/tests/incremental/initialTests/sourceAdded/main/Main.java b/tests/incremental/initialTests/sourceAdded/main/Main.java new file mode 100644 index 000000000..185ed42bf --- /dev/null +++ b/tests/incremental/initialTests/sourceAdded/main/Main.java @@ -0,0 +1,7 @@ + +package main; + +public class Main { + public static void main (String[] args) { + } +} diff --git a/tests/incremental/initialTests/sourceAdded/main/Target.20.java b/tests/incremental/initialTests/sourceAdded/main/Target.20.java new file mode 100644 index 000000000..985587eec --- /dev/null +++ b/tests/incremental/initialTests/sourceAdded/main/Target.20.java @@ -0,0 +1,9 @@ +package main; + +import org.aspectj.testing.Tester; + +public class Target { + void run() { + Tester.event("Target.run()"); + } +} diff --git a/tests/incremental/initialTests/sourceDeleted/delete/DeleteMe.delete.20.java b/tests/incremental/initialTests/sourceDeleted/delete/DeleteMe.delete.20.java new file mode 100644 index 000000000..345047b16 --- /dev/null +++ b/tests/incremental/initialTests/sourceDeleted/delete/DeleteMe.delete.20.java @@ -0,0 +1,2 @@ + +// delete file DeleteMe.java \ No newline at end of file diff --git a/tests/incremental/initialTests/sourceDeleted/delete/DeleteMe.java b/tests/incremental/initialTests/sourceDeleted/delete/DeleteMe.java new file mode 100644 index 000000000..9057235ff --- /dev/null +++ b/tests/incremental/initialTests/sourceDeleted/delete/DeleteMe.java @@ -0,0 +1,7 @@ + +package delete; + +public class DeleteMe { + static void run() { + } +} diff --git a/tests/incremental/initialTests/sourceDeleted/delete/Main.java b/tests/incremental/initialTests/sourceDeleted/delete/Main.java new file mode 100644 index 000000000..e180e46c8 --- /dev/null +++ b/tests/incremental/initialTests/sourceDeleted/delete/Main.java @@ -0,0 +1,8 @@ + +package delete; + +public class Main { + public static void main(String[] args) { + Target.run(); + } +} diff --git a/tests/incremental/initialTests/sourceDeleted/delete/Target.30.java b/tests/incremental/initialTests/sourceDeleted/delete/Target.30.java new file mode 100644 index 000000000..1678b7055 --- /dev/null +++ b/tests/incremental/initialTests/sourceDeleted/delete/Target.30.java @@ -0,0 +1,7 @@ + +package delete; + +public class Target { + static void run() { + } +} diff --git a/tests/incremental/initialTests/sourceDeleted/delete/Target.java b/tests/incremental/initialTests/sourceDeleted/delete/Target.java new file mode 100644 index 000000000..a19401904 --- /dev/null +++ b/tests/incremental/initialTests/sourceDeleted/delete/Target.java @@ -0,0 +1,8 @@ + +package delete; + +public class Target { + static void run() { + DeleteMe.run(); // CE 6 after DeleteMe deleted + } +} diff --git a/tests/incremental/initialTests/suite.xml b/tests/incremental/initialTests/suite.xml new file mode 100644 index 000000000..b6b568384 --- /dev/null +++ b/tests/incremental/initialTests/suite.xml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/incremental/initialTests/suiteFails.xml b/tests/incremental/initialTests/suiteFails.xml new file mode 100644 index 000000000..8bf7f7404 --- /dev/null +++ b/tests/incremental/initialTests/suiteFails.xml @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +