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 /* globals TEST_F, ASSERT_EQ, ASSERT_GT, chrometest, DevEnvTest */ | 7 /* globals TEST_F, ASSERT_EQ, ASSERT_GT, chrometest, DevEnvTest */ |
8 | 8 |
9 'use strict'; | 9 'use strict'; |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 }).then(function() { | 84 }).then(function() { |
85 return self.checkCommand( | 85 return self.checkCommand( |
86 'git config --global user.email johndoe@example.com'); | 86 'git config --global user.email johndoe@example.com'); |
87 }).then(function() { | 87 }).then(function() { |
88 return self.checkCommand('git config --global color.ui false'); | 88 return self.checkCommand('git config --global color.ui false'); |
89 }).then(function() { | 89 }).then(function() { |
90 return self.checkCommand('mkdir foo'); | 90 return self.checkCommand('mkdir foo'); |
91 }).then(function() { | 91 }).then(function() { |
92 return self.checkCommandReLines( | 92 return self.checkCommandReLines( |
93 'cd foo && git init', 0, | 93 'cd foo && git init', 0, |
94 ['warning: templates not found ' + | 94 [/^warning: templates not found \/.*\/share\/git-core\/templates/, |
95 '/.*-dummydir/share/git-core/templates', | |
96 'Initialized empty Git repository in /home/user/foo/.git/']); | 95 'Initialized empty Git repository in /home/user/foo/.git/']); |
97 }).then(function() { | 96 }).then(function() { |
98 return self.checkCommand('mkdir foo/bar', 0, ''); | 97 return self.checkCommand('mkdir foo/bar', 0, ''); |
99 }).then(function() { | 98 }).then(function() { |
100 return self.writeFile( | 99 return self.writeFile( |
101 '/home/user/foo/bar/README', 'hello there\n'); | 100 '/home/user/foo/bar/README', 'hello there\n'); |
102 }).then(function() { | 101 }).then(function() { |
103 return self.checkCommand('cd foo && git add .', 0, ''); | 102 return self.checkCommand('cd foo && git add .', 0, ''); |
104 }).then(function() { | 103 }).then(function() { |
105 return self.checkCommandReLines( | 104 return self.checkCommandReLines( |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 'curl https://nacltools.storage.googleapis.com/io2014/voronoi.zip -O'); | 294 'curl https://nacltools.storage.googleapis.com/io2014/voronoi.zip -O'); |
296 }).then(function() { | 295 }).then(function() { |
297 return self.checkCommand('unzip voronoi.zip'); | 296 return self.checkCommand('unzip voronoi.zip'); |
298 }).then(function() { | 297 }).then(function() { |
299 return self.readFile('/home/user/voronoi/Makefile'); | 298 return self.readFile('/home/user/voronoi/Makefile'); |
300 }).then(function(data) { | 299 }).then(function(data) { |
301 // Check there's something in the makefile. | 300 // Check there's something in the makefile. |
302 ASSERT_GT(data.length, 100); | 301 ASSERT_GT(data.length, 100); |
303 }); | 302 }); |
304 }); | 303 }); |
OLD | NEW |