forked from typetools/checker-framework
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Werner Dietl <[email protected]>
- Loading branch information
1 parent
304774a
commit 304e999
Showing
28 changed files
with
131 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
.PHONY: all | ||
.PHONY: all clean | ||
|
||
all: | ||
-$(JAVAC) -processor regex,org.checkerframework.checker.tainting.TaintingChecker TwoCheckers.java > out.txt 2>&1 | ||
diff -u expected.txt out.txt | ||
|
||
clean: | ||
rm -f out.txt | ||
rm -f *.class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
.PHONY: all | ||
.PHONY: all clean | ||
|
||
all: | ||
rm -f Out.txt CompatTest.class lib/Lib.class javax/annotation/Nullable.class | ||
-$(JAVAC) -processor org.checkerframework.checker.nullness.NullnessChecker lib/Lib.java javax/annotation/Nullable.java CompatTest.java > Out.txt 2>&1 | ||
diff -u Expected.txt Out.txt | ||
|
||
clean: | ||
rm -f Out.txt CompatTest.class lib/Lib.class javax/annotation/Nullable.class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
.PHONY: all | ||
.PHONY: all clean | ||
|
||
all: | ||
mkdir -p bin | ||
$(JAVAC) -processor org.checkerframework.checker.nullness.NullnessChecker *.java -d bin/ | ||
$(JAVAC) -processor org.checkerframework.checker.nullness.NullnessChecker Delta.java -cp bin/ -d bin/ | ||
|
||
clean: | ||
rm bin/*.class | ||
rmdir bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
.PHONY: all | ||
.PHONY: all clean | ||
|
||
all: | ||
rm -f Out.txt | ||
mkdir -p bin | ||
$(JAVAC) lib/*.java -d bin/ | ||
rm -f bin/lib/Anno.class | ||
jar cvf lib.jar -C bin/ lib/ | ||
$(JAVAC) -processor org.checkerframework.checker.nullness.NullnessChecker -Anomsgtext Issue348.java -d bin/ -cp lib.jar > Out.txt 2>&1 | ||
diff -u Expected.txt Out.txt | ||
rm Out.txt lib.jar bin/*.class bin/lib/*.class | ||
rmdir bin/lib bin/ | ||
|
||
clean: | ||
rm -f Out.txt lib.jar | ||
rmdir bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
.PHONY: all | ||
.PHONY: all clean | ||
|
||
all: | ||
rm -f Out.txt | ||
-$(JAVAC) -processor org.checkerframework.checker.nullness.NullnessChecker *.java > Out.txt 2>&1 | ||
diff -u Expected.txt Out.txt | ||
|
||
clean: | ||
rm -f Out.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
.PHONY: all | ||
.PHONY: all clean | ||
|
||
all: | ||
rm -f Out.txt | ||
-$(JAVAC) -processor org.checkerframework.checker.nullness.NullnessChecker test/*.java > Out.txt 2>&1 | ||
diff -u Expected.txt Out.txt | ||
|
||
clean: | ||
rm -f Out.txt | ||
rm -f test/*.class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
.PHONY: all nullnessOnly nullnessRegex nullnessBad nonsense | ||
.PHONY: all clean nullnessOnly nullnessRegex nullnessBad nonsense | ||
|
||
all: nullnessOnly nullnessRegex nullnessBad nonsense | ||
|
||
nullnessOnly: | ||
rm -f Out.txt | ||
-$(JAVAC) -processor NullnessChecker -XDrawDiagnostics -Anomsgtext -Awarns NullnessRegexWithErrors.java > Out.txt 2>&1 | ||
diff -u NullnessOnlyExpected.txt Out.txt | ||
|
||
nullnessRegex: | ||
rm -f Out.txt | ||
-$(JAVAC) -processor NullnessChecker,RegexChecker -XDrawDiagnostics -Anomsgtext -Awarns NullnessRegexWithErrors.java > Out.txt 2>&1 | ||
diff -u NullnessRegexExpected.txt Out.txt | ||
|
||
nullnessBad: | ||
rm -f Out.txt | ||
-$(JAVAC) -processor nullness.NullnessChecker -XDrawDiagnostics -Anomsgtext -Awarns NullnessRegexWithErrors.java > Out.txt 2>&1 | ||
diff -u NullnessBadExpected.txt Out.txt | ||
|
||
nonsense: | ||
rm -f Out.txt | ||
-$(JAVAC) -processor NonsenseChecker -XDrawDiagnostics -Anomsgtext -Awarns NullnessRegexWithErrors.java > Out.txt 2>&1 | ||
diff -u NonsenseExpected.txt Out.txt | ||
|
||
clean: | ||
rm -f Out.txt | ||
rm -f *.class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
clean { | ||
delete('api/') | ||
doLast { | ||
exec { | ||
workingDir = file('examples') | ||
commandLine 'make', 'clean' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,29 @@ | ||
JAVAC ?= $(realpath ../../checker/bin/javac) | ||
|
||
.PHONY: all | ||
.PHONY: all clean | ||
|
||
all: compile | ||
|
||
compile: | ||
$(JAVAC) *.java | ||
cd fenum-extension && $(MAKE) | ||
cd subtyping-extension && $(MAKE) | ||
cd units-extension && $(MAKE) | ||
# The Maven example downloads a lot. Try twice in case of network lossage. | ||
cd MavenExample && ($(MAKE) || (sleep 60 && echo "Trying again:" && $(MAKE))) | ||
cd lombok && $(MAKE) | ||
cd errorprone && $(MAKE) | ||
cd BazelExample && $(MAKE) | ||
$(MAKE) -C fenum-extension | ||
$(MAKE) -C subtyping-extension | ||
$(MAKE) -C units-extension | ||
# The Maven example downloads a lot. Try twice in case of network lossage. | ||
$(MAKE) -C MavenExample || (sleep 60 && echo "Trying again:" && $(MAKE) -C MavenExample) | ||
$(MAKE) -C lombok | ||
$(MAKE) -C errorprone | ||
$(MAKE) -C BazelExample | ||
|
||
# TODO: type check the different files with the right checker; | ||
# some tests expect errors, compare against expected errors. | ||
|
||
clean: | ||
rm -f *.class | ||
$(MAKE) -C fenum-extension clean | ||
$(MAKE) -C subtyping-extension clean | ||
$(MAKE) -C units-extension clean | ||
$(MAKE) -C MavenExample clean | ||
$(MAKE) -C lombok clean | ||
$(MAKE) -C errorprone clean | ||
$(MAKE) -C BazelExample clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.