63 lines
1.9 KiB
Groovy
63 lines
1.9 KiB
Groovy
sourceSets.test {
|
|
java.srcDirs = ['source']
|
|
resources.srcDirs = [
|
|
'data',
|
|
project(':com.ibm.wala.core.testdata').compileTestJava,
|
|
]
|
|
}
|
|
|
|
dependencies {
|
|
testCompile(
|
|
'com.google.android.tools:dx:1.7',
|
|
'junit:junit:4.11',
|
|
'org.osgi:org.osgi.core:4.2.0',
|
|
project(':com.ibm.wala.core'),
|
|
project(':com.ibm.wala.dalvik'),
|
|
project(':com.ibm.wala.shrike'),
|
|
project(':com.ibm.wala.util'),
|
|
project(configuration: 'testArchives', path: ':com.ibm.wala.core.tests'),
|
|
)
|
|
}
|
|
|
|
task cloneDroidBench(type: Exec) {
|
|
// TODO: download to somewhere private to this build tree; update code that looks in "/tmp" accordingly
|
|
def destDir = file('/tmp/DroidBench')
|
|
inputs.property('repository', 'https://github.com/secure-software-engineering/DroidBench.git')
|
|
outputs.dirs destDir
|
|
doFirst { delete destDir }
|
|
commandLine 'git', 'clone', '--depth=1', inputs.properties.repository, destDir
|
|
// TODO: should check out a specific tag or hash
|
|
}
|
|
|
|
processTestResources {
|
|
dependsOn cloneDroidBench
|
|
|
|
def testdata = project(':com.ibm.wala.core.testdata')
|
|
dependsOn testdata.verifyJavaCup
|
|
from testdata.collectJLex
|
|
from testdata.downloadJavaCup
|
|
}
|
|
|
|
test {
|
|
maxHeapSize = '800M'
|
|
|
|
// https://github.com/liblit/WALA/issues/5 and possibly https://github.com/wala/WALA/issues/268
|
|
exclude '**/AliasingTest.class'
|
|
exclude '**/AndroidSpecificTest.class'
|
|
exclude '**/ArraysAndListsTest.class'
|
|
exclude '**/CallbacksTest.class'
|
|
exclude '**/DalvikAnnotationsTest.class'
|
|
exclude '**/DynamicDalvikComparisonJavaLibsTest.class'
|
|
exclude '**/DynamicDalvikComparisonTestForAndroidLibs.class'
|
|
exclude '**/EmulatorDetectionTest.class'
|
|
exclude '**/FieldAndObjectSensitivityTest.class'
|
|
exclude '**/GeneralJavaTest.class'
|
|
exclude '**/ImplicitFlowsTest.class'
|
|
exclude '**/InterAppCommunicationTest.class'
|
|
exclude '**/InterComponentCommunicationTest.class'
|
|
exclude '**/JVMLDalvikComparisonTest.class'
|
|
exclude '**/LifecycleTest.class'
|
|
exclude '**/ReflectionTest.class'
|
|
exclude '**/ThreadingTest.class'
|
|
}
|