| 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() { |
| 16 return self.installPackage('nacl-spawn'); |
| 17 }).then(function() { |
| 14 return self.installPackage('coreutils'); | 18 return self.installPackage('coreutils'); |
| 15 }).then(function() { | 19 }).then(function() { |
| 16 return self.installPackage('git'); | 20 return self.installPackage('zlib'); |
| 21 }).then(function() { |
| 22 return self.installPackage('bzip2'); |
| 23 }).then(function() { |
| 24 return self.installPackage('openssl'); |
| 25 }).then(function() { |
| 26 return self.installPackage('ncurses'); |
| 27 }).then(function() { |
| 28 return self.installPackage('readline'); |
| 29 }).then(function() { |
| 30 return self.installPackage('curl'); |
| 17 }).then(function() { | 31 }).then(function() { |
| 18 return self.installPackage('make'); | 32 return self.installPackage('make'); |
| 19 }).then(function() { | 33 }).then(function() { |
| 20 return self.installPackage('python'); | 34 return self.installPackage('python'); |
| 21 }).then(function() { | 35 }).then(function() { |
| 22 return self.installPackage('curl'); | 36 return self.installPackage('git'); |
| 23 }); | 37 }); |
| 24 }); | 38 }); |
| 25 | 39 |
| 26 // Run a test on devenv, and clean the home directory afterwards. This allows | 40 // Run a test on devenv, and clean the home directory afterwards. This allows |
| 27 // for tests that touch files. Coreutils must be installed before this kind of | 41 // for tests that touch files. Coreutils must be installed before this kind of |
| 28 // test can be run. | 42 // test can be run. |
| 29 function DevEnvFileTest() { | 43 function DevEnvFileTest() { |
| 30 DevEnvTest.call(this); | 44 DevEnvTest.call(this); |
| 31 } | 45 } |
| 32 DevEnvFileTest.prototype = new DevEnvTest(); | 46 DevEnvFileTest.prototype = new DevEnvTest(); |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 'curl https://nacltools.storage.googleapis.com/io2014/voronoi.zip -O'); | 305 'curl https://nacltools.storage.googleapis.com/io2014/voronoi.zip -O'); |
| 292 }).then(function() { | 306 }).then(function() { |
| 293 return self.checkCommand('unzip voronoi.zip'); | 307 return self.checkCommand('unzip voronoi.zip'); |
| 294 }).then(function() { | 308 }).then(function() { |
| 295 return self.readFile('/home/user/voronoi/Makefile'); | 309 return self.readFile('/home/user/voronoi/Makefile'); |
| 296 }).then(function(data) { | 310 }).then(function(data) { |
| 297 // Check there's something in the makefile. | 311 // Check there's something in the makefile. |
| 298 ASSERT_GT(data.length, 100); | 312 ASSERT_GT(data.length, 100); |
| 299 }); | 313 }); |
| 300 }); | 314 }); |
| OLD | NEW |