2018-01-11 04:36:57 +00:00
|
|
|
apply plugin: 'com.github.hauner.jarTest'
|
2018-01-15 04:50:52 +00:00
|
|
|
apply plugin: 'eclipse'
|
|
|
|
|
|
|
|
eclipse.project.natures 'org.eclipse.pde.PluginNature'
|
2017-12-21 15:09:27 +00:00
|
|
|
|
|
|
|
sourceSets.test {
|
2017-12-26 21:54:35 +00:00
|
|
|
java.srcDirs = ['src']
|
|
|
|
resources.srcDirs = ['dat']
|
2017-11-27 08:34:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-01-11 03:56:27 +00:00
|
|
|
testCompile(
|
2018-02-14 20:53:56 +00:00
|
|
|
'eclipse-deps:org.eclipse.core.runtime:+',
|
2018-01-11 03:56:27 +00:00
|
|
|
'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'),
|
|
|
|
)
|
2017-11-28 01:45:05 +00:00
|
|
|
}
|
2018-01-17 20:59:22 +00:00
|
|
|
|
2018-01-17 22:59:49 +00:00
|
|
|
processTestResources {
|
|
|
|
def testdata = project(':com.ibm.wala.core.testdata')
|
2018-02-23 22:37:35 +00:00
|
|
|
dependsOn testdata.compileTestJava
|
2018-02-08 16:27:12 +00:00
|
|
|
dependsOn testdata.extractBcel
|
|
|
|
|
2018-01-17 22:59:49 +00:00
|
|
|
from testdata.collectJLex
|
|
|
|
from testdata.collectTestData
|
|
|
|
from testdata.downloadJavaCup
|
2018-02-08 16:27:12 +00:00
|
|
|
from files(testdata.extractBcel)[0]
|
2018-01-17 22:59:49 +00:00
|
|
|
from testdata.generateHelloHash
|
|
|
|
}
|
|
|
|
|
2018-01-17 20:59:22 +00:00
|
|
|
test {
|
2018-01-17 22:59:49 +00:00
|
|
|
maxHeapSize = '800M'
|
2018-01-17 23:52:21 +00:00
|
|
|
systemProperty 'com.ibm.wala.junit.analyzingJar', 'true'
|
|
|
|
systemProperty 'com.ibm.wala.junit.profile', 'short'
|
2018-02-23 22:37:35 +00:00
|
|
|
classpath += files project(':com.ibm.wala.core.testdata').sourceSets.test.java.outputDir
|
2018-01-17 20:59:22 +00:00
|
|
|
}
|
2018-01-28 21:27:35 +00:00
|
|
|
|
|
|
|
task cleanTest(type: Delete) {
|
|
|
|
delete 'report'
|
|
|
|
}
|
|
|
|
|
|
|
|
clean.dependsOn cleanTest
|