-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…#349) This ports over the changes made in #335 to Windows, and it should also finally fix false positives regarding `check_differences.bat`.
- Loading branch information
1 parent
4d3beb5
commit 0c6ebd9
Showing
5 changed files
with
95 additions
and
98 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
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,41 @@ | ||
@echo off | ||
|
||
rem This script runs javac on a single expected test output. If the test output | ||
rem is compilable, it exits with code 0. If not, it exits with code 1. In all other | ||
rem cases (e.g., if a cd command fails), it exits with code 2. It includes | ||
rem logic for skipping test cases that don't need to compile, etc. It should be | ||
rem run in the directory src/test/resources. | ||
|
||
setlocal enabledelayedexpansion | ||
|
||
set testcase=%1 | ||
|
||
if "%testcase%"=="shared" exit /b 0 | ||
rem https://bugs.openjdk.org/browse/JDK-8319461 wasn't actually fixed (this test is based on that bug) | ||
if "%testcase%"=="superinterfaceextends" exit /b 0 | ||
rem incomplete handling of method references: https://github.com/njit-jerse/specimin/issues/291 | ||
rem this test exists to check that no crash occurs, not that Specimin produces the correct output | ||
if "%testcase%"=="methodref2" exit /b 0 | ||
rem this test will not compile right now; this is a TODO in UnsolvedSymbolVisitor#lookupTypeArgumentFQN | ||
if "%testcase%"=="methodreturnfullyqualifiedgeneric" exit /b 0 | ||
|
||
cd "%testcase%\expected\" || exit /b 2 | ||
|
||
set JAVA_FILES= | ||
for /r %%F in (*.java) do ( | ||
set "JAVA_FILES=!JAVA_FILES! %%F" | ||
) | ||
|
||
javac -classpath "../../shared/checker-qual-3.42.0.jar" !JAVA_FILES! | ||
if errorlevel 1 ( | ||
echo Running javac on %testcase% resulted in one or more errors, which are printed above. | ||
set returnval=1 | ||
) | ||
|
||
rem clean up | ||
for /r %%F in (*.class) do ( | ||
del "%%F" | ||
) | ||
endlocal | ||
|
||
exit /b 0 |
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