OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
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 """Large tests of the devenv app.""" | 5 """Large tests of the devenv app.""" |
6 | 6 |
7 import os | 7 import os |
8 import sys | 8 import sys |
9 | 9 |
10 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) | 10 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) |
11 SRC_DIR = os.path.dirname(os.path.dirname(SCRIPT_DIR)) | 11 SRC_DIR = os.path.dirname(os.path.dirname(SCRIPT_DIR)) |
12 sys.path.append(SRC_DIR) | 12 sys.path.append(SRC_DIR) |
13 TOOLCHAIN = os.environ.get('TOOLCHAIN', 'newlib') | 13 TOOLCHAIN = os.environ.get('TOOLCHAIN', 'newlib') |
14 DEVENV_OUT_DIR = os.path.join(SRC_DIR, 'out', 'publish', 'devenv', TOOLCHAIN) | 14 DEVENV_OUT_DIR = os.path.join(SRC_DIR, 'out', 'publish', 'devenv', TOOLCHAIN) |
15 | 15 |
16 import chrome_test | 16 import chrome_test |
17 | 17 |
18 | 18 |
19 app = os.path.join(DEVENV_OUT_DIR, 'app') | 19 app = os.path.join(DEVENV_OUT_DIR, 'app') |
20 test_dir = os.path.join(SCRIPT_DIR, 'tests') | 20 test_dir = os.path.join(SCRIPT_DIR, 'tests') |
21 | 21 |
22 chrome_test.main([ | 22 chrome_test.main([ |
23 '-C', test_dir, | 23 '-C', test_dir, |
24 '-p', 'TOOLCHAIN=' + TOOLCHAIN, | 24 '-p', 'TOOLCHAIN=' + TOOLCHAIN, |
25 '-t', '210', | 25 '-t', '400', |
26 '--enable-nacl', | 26 '--enable-nacl', |
27 '--load-extension', app, | 27 '--load-extension', app, |
28 'devenv_large_test.html'] + sys.argv[1:]) | 28 'devenv_large_test.html'] + sys.argv[1:]) |
OLD | NEW |