blob: 5c75e125a8e2848bb11d127ba51b5122cf0d11a1 [file] [log] [blame]
package org.checkerframework.checker.test.junit.wpirunners;
import java.io.File;
import java.util.List;
import org.checkerframework.checker.testchecker.wholeprograminference.WholeProgramInferenceTestChecker;
import org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest;
import org.junit.experimental.categories.Category;
import org.junit.runners.Parameterized.Parameters;
/**
* Runs whole-program inference and inserts annotations into source code.
*
* <p>IMPORTANT: The errors captured in the tests located in tests/wpi-testchecker/ are not
* relevant. The meaning of this test class is to test if the generated .jaif files are similar to
* the expected ones. The errors on .java files must be ignored.
*/
@Category(WholeProgramInferenceTestCheckerJaifsTest.class)
public class WholeProgramInferenceTestCheckerJaifsTest extends CheckerFrameworkPerDirectoryTest {
/** @param testFiles the files containing test code, which will be type-checked */
public WholeProgramInferenceTestCheckerJaifsTest(List<File> testFiles) {
super(
testFiles,
WholeProgramInferenceTestChecker.class,
"wpi-testchecker/non-annotated",
"-Anomsgtext",
"-Ainfer=jaifs",
"-Awarns");
}
@Parameters
public static String[] getTestDirs() {
return new String[] {"wpi-testchecker/non-annotated"};
}
}