WALA/com.ibm.wala.core.tests/build.gradle

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.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'
// https://github.com/liblit/WALA/issues/5
exclude '**/DynamicCallGraphTest.class'
exclude '**/GetTargetsTest.class'
exclude '**/PruneArrayOutOfBoundExceptionEdge.class'
}
task cleanTest(type: Delete) {
delete 'report'
}
clean.dependsOn cleanTest