WALA/com.ibm.wala.core.tests/build.gradle
Ben Liblit f287ee5c41 Add "com.ibm.wala.core.testdata" to classpath for testing
This lets the "DynamicCallGraphTest" tests pass.  The tests in that
class expect to find some element of the classpath that includes the
substring "com.ibm.wala.core.testdata".  They then treat that as a
collection of bytecode files to instrument.
2018-04-17 15:02:36 -05:00

52 lines
1.2 KiB
Groovy

apply plugin: 'com.github.hauner.jarTest'
apply plugin: 'eclipse'
eclipse.project.natures 'org.eclipse.pde.PluginNature'
sourceSets.test {
java.srcDirs = ['src']
resources.srcDirs = ['dat']
}
dependencies {
testCompile(
'eclipse-deps:org.eclipse.core.runtime:+',
'junit:junit:4.11',
'org.apache.ant:ant:1.8.2',
'org.hamcrest:hamcrest-core:1.3',
'org.osgi:org.osgi.core:4.2.0',
project(':com.ibm.wala.core'),
project(':com.ibm.wala.shrike'),
project(':com.ibm.wala.util'),
)
}
processTestResources {
def testdata = project(':com.ibm.wala.core.testdata')
dependsOn testdata.compileTestJava
dependsOn testdata.extractBcel
dependsOn testdata.verifyJavaCup
from testdata.collectJLex
from testdata.collectTestData
from testdata.downloadJavaCup
from files(testdata.extractBcel)[0]
from testdata.generateHelloHash
}
test {
maxHeapSize = '800M'
systemProperty 'com.ibm.wala.junit.analyzingJar', 'true'
systemProperty 'com.ibm.wala.junit.profile', 'short'
classpath += files project(':com.ibm.wala.core.testdata').sourceSets.test.java.outputDir
// https://github.com/liblit/WALA/issues/5
exclude '**/PruneArrayOutOfBoundExceptionEdge.class'
}
task cleanTest(type: Delete) {
delete 'report'
}
clean.dependsOn cleanTest