Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
34
gaia/build/test/integration/adb_test.js
Executable file
34
gaia/build/test/integration/adb_test.js
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
'use strict';
|
||||
|
||||
var assert = require('chai').assert;
|
||||
var rmrf = require('rimraf').sync;
|
||||
var helper = require('./helper');
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
|
||||
suite('ADB tests', function() {
|
||||
suiteSetup(function() {
|
||||
helper.cleanupWorkspace();
|
||||
rmrf('build/test/integration/result');
|
||||
});
|
||||
|
||||
suiteTeardown(function() {
|
||||
helper.cleanupWorkspace();
|
||||
rmrf('build/test/integration/result');
|
||||
});
|
||||
|
||||
test('make install-test-media', function(done) {
|
||||
var expectedCommand = 'push test_media/Pictures /sdcard/DCIM\n' +
|
||||
'push test_media/Movies /sdcard/Movies\n' +
|
||||
'push test_media/Music /sdcard/Music\n';
|
||||
|
||||
helper.exec('ADB=build/test/bin/fake-adb make install-test-media',
|
||||
function(error, stdout, stderr) {
|
||||
helper.checkError(error, stdout, stderr);
|
||||
var presetsContent = fs.readFileSync(path.join(process.cwd(), 'build',
|
||||
'test', 'integration', 'result'));
|
||||
assert.equal(presetsContent, expectedCommand);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue