| 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, chrometest, DevEnvTest */ |
| 8 |
| 7 'use strict'; | 9 'use strict'; |
| 8 | 10 |
| 9 // Run the command "bash -c 'exit 42'" and check the exit code. | 11 // Run the command "bash -c 'exit 42'" and check the exit code. |
| 10 TEST_F(DevEnvTest, 'testExit', function() { | 12 TEST_F(DevEnvTest, 'testExit', function() { |
| 11 return this.checkCommand('exit 42', 42, ''); | 13 return this.checkCommand('exit 42', 42, ''); |
| 12 }); | 14 }); |
| 13 | 15 |
| 14 // Run the command "bash -c 'echo hello'" and check the exit code. | 16 // Run the command "bash -c 'echo hello'" and check the exit code. |
| 15 TEST_F(DevEnvTest, 'testEcho', function() { | 17 TEST_F(DevEnvTest, 'testEcho', function() { |
| 16 return this.checkCommand('echo hello', 0, 'hello\n'); | 18 return this.checkCommand('echo hello', 0, 'hello\n'); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 chrometest.harnessURL('devenv_small_test.zip') + | 58 chrometest.harnessURL('devenv_small_test.zip') + |
| 57 ' devenv_small_test.zip', 0); | 59 ' devenv_small_test.zip', 0); |
| 58 }).then(function() { | 60 }).then(function() { |
| 59 return self.checkCommand('unzip devenv_small_test.zip', 0); | 61 return self.checkCommand('unzip devenv_small_test.zip', 0); |
| 60 }).then(function() { | 62 }).then(function() { |
| 61 return self.checkCommand( | 63 return self.checkCommand( |
| 62 'LD_LIBRARY_PATH=${PWD}/${PACKAGE_LIB_DIR}:$LD_LIBRARY_PATH ' + | 64 'LD_LIBRARY_PATH=${PWD}/${PACKAGE_LIB_DIR}:$LD_LIBRARY_PATH ' + |
| 63 './devenv_small_test_${NACL_BOOT_ARCH}', 0); | 65 './devenv_small_test_${NACL_BOOT_ARCH}', 0); |
| 64 }); | 66 }); |
| 65 }); | 67 }); |
| OLD | NEW |