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:
parent
a4725fe71c
commit
216592a995
12 changed files with 83 additions and 8 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue