| 1 |
.PHONY: all nullnessOnly nullnessRegex nullnessBad nonsense |
| 2 |
|
| 3 |
all: nullnessOnly nullnessRegex nullnessBad nonsense |
| 4 |
|
| 5 |
nullnessOnly: |
| 6 |
rm -f Out.txt |
| 7 |
$(JAVAC) -processor NullnessChecker -XDrawDiagnostics -Anomsgtext -Awarns NullnessRegexWithErrors.java > Out.txt 2>&1 || true |
| 8 |
diff -u NullnessOnlyExpected.txt Out.txt |
| 9 |
|
| 10 |
nullnessRegex: |
| 11 |
rm -f Out.txt |
| 12 |
$(JAVAC) -processor NullnessChecker,RegexChecker -XDrawDiagnostics -Anomsgtext -Awarns NullnessRegexWithErrors.java > Out.txt 2>&1 || true |
| 13 |
diff -u NullnessRegexExpected.txt Out.txt |
| 14 |
|
| 15 |
nullnessBad: |
| 16 |
rm -f Out.txt |
| 17 |
$(JAVAC) -processor nullness.NullnessChecker -XDrawDiagnostics -Anomsgtext -Awarns NullnessRegexWithErrors.java > Out.txt 2>&1 || true |
| 18 |
diff -u NullnessBadExpected.txt Out.txt |
| 19 |
|
| 20 |
nonsense: |
| 21 |
rm -f Out.txt |
| 22 |
$(JAVAC) -processor NonsenseChecker -XDrawDiagnostics -Anomsgtext -Awarns NullnessRegexWithErrors.java > Out.txt 2>&1 || true |
| 23 |
diff -u NonsenseExpected.txt Out.txt |