WALA/com.ibm.wala.dalvik.test/build.gradle

40 lines
1.1 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 = '/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
}