switch to (one hopes) a more reliable javacup input file

This commit is contained in:
Julian Dolby 2015-07-24 23:25:08 -04:00
parent 519b98a0ea
commit a1159db2f4
3 changed files with 4 additions and 4 deletions

View File

@ -44,11 +44,11 @@
</target>
<target name="fetchSampleCup" depends="sampleCupPresent" unless="sample.cup.present">
<get src="http://casper.cii.saxion.nl:8083/~vanleeuw/pse/spanje/troff2html.cup" dest="${plugin.destination}/data/troff2html.cup" />
<get src="http://www.cc.gatech.edu/gvu/people/faculty/hudson/java_cup/classes.v0.9e/java_cup/parser.cup" dest="${plugin.destination}/data/sample.cup" />
</target>
<target name="sampleCupPresent" depends="init">
<available file="${plugin.destination}/data/troff2html.cup" property="sample.cup.present"/>
<available file="${plugin.destination}/data/sample.cup" property="sample.cup.present"/>
</target>
<target name="fetchAndroidJar" depends="androidJarPresent" unless="android.jar.present">

View File

@ -22,7 +22,7 @@ public class DynamicDalvikComparisonJavaLibsTest extends DynamicDalvikComparison
@Test
public void testJavaCup() throws ClassHierarchyException, IllegalArgumentException, IOException, CancelException, InterruptedException, ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InvalidClassFileException, FailureException {
File inputFile = testFile("troff2html.cup");
File inputFile = testFile("sample.cup");
test(null, TestConstants.JAVA_CUP_MAIN, TestConstants.JAVA_CUP, inputFile.getAbsolutePath());
}

View File

@ -27,7 +27,7 @@ public class DynamicDalvikComparisonTestForAndroidLibs extends DynamicDalvikComp
@Test
public void testJavaCup() throws ClassHierarchyException, IllegalArgumentException, IOException, CancelException, InterruptedException, ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InvalidClassFileException, FailureException {
File inputFile = testFile("troff2html.cup");
File inputFile = testFile("sample.cup");
test(providedAndroidLibs(), TestConstants.JAVA_CUP_MAIN, TestConstants.JAVA_CUP, inputFile.getAbsolutePath());
}