OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium 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 import os | 6 import os |
7 import shutil | 7 import shutil |
8 import subprocess | 8 import subprocess |
9 import sys | 9 import sys |
10 import tempfile | 10 import tempfile |
11 import unittest | 11 import unittest |
12 | 12 |
13 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) | 13 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) |
14 LIB_DIR = os.path.dirname(SCRIPT_DIR) | 14 LIB_DIR = os.path.dirname(SCRIPT_DIR) |
15 TOOLS_DIR = os.path.dirname(LIB_DIR) | 15 TOOLS_DIR = os.path.dirname(LIB_DIR) |
16 SDK_DIR = os.path.dirname(TOOLS_DIR) | |
16 DATA_DIR = os.path.join(SCRIPT_DIR, 'data') | 17 DATA_DIR = os.path.join(SCRIPT_DIR, 'data') |
18 BUILD_TOOLS_DIR = os.path.join(SDK_DIR, 'build_tools') | |
17 | 19 |
18 sys.path.append(LIB_DIR) | 20 sys.path.append(LIB_DIR) |
19 sys.path.append(TOOLS_DIR) | 21 sys.path.append(TOOLS_DIR) |
22 sys.path.append(BUILD_TOOLS_DIR) | |
Sam Clegg
2014/06/18 18:21:30
These changes are not needed are they?
binji
2014/06/18 18:29:35
This test script doesn't run from the source direc
| |
20 | 23 |
21 import build_paths | 24 import build_paths |
22 import get_shared_deps | 25 import get_shared_deps |
23 import getos | 26 import getos |
24 | 27 |
25 TOOLCHAIN_OUT = os.path.join(build_paths.OUT_DIR, 'sdk_tests', 'toolchain') | 28 TOOLCHAIN_OUT = os.path.join(build_paths.OUT_DIR, 'sdk_tests', 'toolchain') |
26 NACL_X86_GLIBC_TOOLCHAIN = os.path.join(TOOLCHAIN_OUT, | 29 NACL_X86_GLIBC_TOOLCHAIN = os.path.join(TOOLCHAIN_OUT, |
27 '%s_x86' % getos.GetPlatform(), | 30 '%s_x86' % getos.GetPlatform(), |
28 'nacl_x86_glibc') | 31 'nacl_x86_glibc') |
29 | 32 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
130 | 133 |
131 needed = get_shared_deps.GetNeeded([self.dyn_nexe], | 134 needed = get_shared_deps.GetNeeded([self.dyn_nexe], |
132 lib_path=lib_path, | 135 lib_path=lib_path, |
133 objdump=self.objdump) | 136 objdump=self.objdump) |
134 for arch in needed.itervalues(): | 137 for arch in needed.itervalues(): |
135 self.assertEqual(arch, 'x86-32') | 138 self.assertEqual(arch, 'x86-32') |
136 | 139 |
137 | 140 |
138 if __name__ == '__main__': | 141 if __name__ == '__main__': |
139 unittest.main() | 142 unittest.main() |
OLD | NEW |