1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 02:09:32 +02:00

Push vendor files to devices.

This commit is contained in:
Simo Kinnunen 2014-01-29 00:13:29 +09:00
parent a4725fe71c
commit 216592a995
12 changed files with 83 additions and 8 deletions

View file

@ -1,9 +1,27 @@
var util = require('util')
var wire = require('../wire')
var pathutil = require('./pathutil')
var devutil = module.exports = Object.create(null)
devutil.vendorFiles = function(identity) {
return {
bin: {
src: pathutil.vendor(util.format(
'remote/libs/%s/remote', identity.abi))
, dest: '/data/local/tmp/remote'
, mode: 0755
}
, so: {
src: pathutil.vendor(util.format(
'remote/external/android-%d/remote_external.so', identity.sdk))
, dest: '/data/local/tmp/remote_external.so'
, mode: 0755
}
}
}
devutil.platform = function(platform) {
switch (platform) {
case 'android':