| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 'use strict'; | 7 'use strict'; |
| 8 | 8 |
| 9 // Install several packages. | 9 // Install several packages. |
| 10 // This test must be run before any tests that use these packages. | 10 // This test must be run before any tests that use these packages. |
| 11 TEST_F(DevEnvTest, 'testPackageInstall', function() { | 11 TEST_F(DevEnvTest, 'testPackageInstall', function() { |
| 12 var self = this; | 12 var self = this; |
| 13 return Promise.resolve().then(function() { | 13 return Promise.resolve().then(function() { |
| 14 return self.installPackage('corelibs'); |
| 15 }).then(function() { |
| 14 return self.installPackage('coreutils'); | 16 return self.installPackage('coreutils'); |
| 15 }).then(function() { | 17 }).then(function() { |
| 16 return self.installPackage('git'); | 18 return self.installPackage('git'); |
| 17 }).then(function() { | 19 }).then(function() { |
| 18 return self.installPackage('make'); | 20 return self.installPackage('make'); |
| 19 }).then(function() { | 21 }).then(function() { |
| 20 return self.installPackage('python'); | 22 return self.installPackage('python'); |
| 21 }).then(function() { | 23 }).then(function() { |
| 22 return self.installPackage('curl'); | 24 return self.installPackage('curl'); |
| 23 }); | 25 }); |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 'curl https://nacltools.storage.googleapis.com/io2014/voronoi.zip -O'); | 293 'curl https://nacltools.storage.googleapis.com/io2014/voronoi.zip -O'); |
| 292 }).then(function() { | 294 }).then(function() { |
| 293 return self.checkCommand('unzip voronoi.zip'); | 295 return self.checkCommand('unzip voronoi.zip'); |
| 294 }).then(function() { | 296 }).then(function() { |
| 295 return self.readFile('/home/user/voronoi/Makefile'); | 297 return self.readFile('/home/user/voronoi/Makefile'); |
| 296 }).then(function(data) { | 298 }).then(function(data) { |
| 297 // Check there's something in the makefile. | 299 // Check there's something in the makefile. |
| 298 ASSERT_GT(data.length, 100); | 300 ASSERT_GT(data.length, 100); |
| 299 }); | 301 }); |
| 300 }); | 302 }); |
| OLD | NEW |