Esempio n. 1
0
#!/usr/bin/env python
# Copyright (c) 2014 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Large tests of the devenv app."""

import os
import sys

SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
SRC_DIR = os.path.dirname(os.path.dirname(SCRIPT_DIR))
sys.path.append(SRC_DIR)
TOOLCHAIN = os.environ.get('TOOLCHAIN', 'newlib')
DEVENV_OUT_DIR = os.path.join(SRC_DIR, 'out', 'publish', 'devenv', TOOLCHAIN)

import chrome_test

app = os.path.join(DEVENV_OUT_DIR, 'app')
test_dir = os.path.join(SCRIPT_DIR, 'tests')

chrome_test.Main([
    '-C', test_dir, '-p', 'TOOLCHAIN=' + TOOLCHAIN, '-t', '180',
    '--enable-nacl', '--load-extension', app, 'devenv_large_test.html'
] + sys.argv[1:])
Esempio n. 2
0
#!/usr/bin/env python
# Copyright (c) 2014 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Tests of the devenv app."""

import os
import sys

SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(SCRIPT_DIR, '../..'))
SRC_DIR = os.path.dirname(os.path.dirname(SCRIPT_DIR))
TOOLCHAIN = os.environ.get('TOOLCHAIN', 'newlib')
DEVENV_OUT_DIR = os.path.join(SRC_DIR, 'out/publish/devenv', TOOLCHAIN)

import chrome_test

app = os.path.join(DEVENV_OUT_DIR, 'app')
test_dir = os.path.join(SCRIPT_DIR, 'tests')
test_out_dir = os.path.join(DEVENV_OUT_DIR, 'tests')

chrome_test.Main([
    '-C', test_dir, '-C', test_out_dir, '-t', '60', '--enable-nacl',
    '--load-extension', app, 'devenv_small_test.html'
] + sys.argv[1:])
Esempio n. 3
0
#!/usr/bin/env python
# Copyright (c) 2014 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Tests of the jseval utility."""

import os
import sys

SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(SCRIPT_DIR, '../..'))
SRC_DIR = os.path.dirname(os.path.dirname(SCRIPT_DIR))
TOOLCHAIN = os.environ.get('TOOLCHAIN', 'newlib')
DEVENV_OUT_DIR = os.path.join(SRC_DIR, 'out/publish/devenv', TOOLCHAIN)

import chrome_test

test_dir = os.path.join(SCRIPT_DIR, 'tests')
app = os.path.join(DEVENV_OUT_DIR, 'app')

chrome_test.Main([
    '-C', test_dir, '-C', app, '-t', '60', '--unlimited-storage',
    'jseval_test.html'
] + sys.argv[1:])
Esempio n. 4
0
#!/usr/bin/env python
# Copyright (c) 2014 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Tests of gdb and debugger."""

import os
import sys

SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(SCRIPT_DIR, '../..'))
SRC_DIR = os.path.dirname(os.path.dirname(SCRIPT_DIR))
LIBC = os.environ.get('TOOLCHAIN', 'newlib')
GDB_OUT_DIR = os.path.join(SRC_DIR, 'out/publish/gdb', LIBC)

import chrome_test

gdb_app = os.path.join(GDB_OUT_DIR, 'gdb_app')
debug_extension = os.path.join(GDB_OUT_DIR, 'debug_extension')
test_dir = os.path.join(SCRIPT_DIR, 'tests')
test_out_dir = os.path.join(GDB_OUT_DIR, 'tests')

if __name__ == '__main__':
    chrome_test.Main([
        '-C', test_dir, '-C', test_out_dir, '-t', '60', '--enable-nacl',
        '--enable-nacl-debug', '--load-and-launch-app', gdb_app,
        '--load-extension', debug_extension, 'debugger_test.html'
    ] + sys.argv[1:])
Esempio n. 5
0
#!/usr/bin/env python
# Copyright (c) 2014 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A test of the extension testing system itself."""

import os
import sys

SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
SRC_DIR = os.path.dirname(SCRIPT_DIR)
sys.path.insert(0, SRC_DIR)

import chrome_test

chrome_test.Main([
    '-C',
    os.path.join(SCRIPT_DIR, 'tests'), '--load-extension',
    os.path.join(SCRIPT_DIR, 'pinger'), 'plumbing_test.html'
] + sys.argv[1:])
Esempio n. 6
0
#!/usr/bin/env python
# Copyright (c) 2014 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Test of Google I/O 2014 tutorial."""

import os
import sys

SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(SCRIPT_DIR, '../..'))
SRC_DIR = os.path.dirname(os.path.dirname(SCRIPT_DIR))
TOOLCHAIN = os.environ.get('TOOLCHAIN', 'newlib')
DEVENV_OUT_DIR = os.path.join(SRC_DIR, 'out/publish/devenv', TOOLCHAIN)

import chrome_test

app = os.path.join(DEVENV_OUT_DIR, 'app')
test_dir = os.path.join(SCRIPT_DIR, 'tests')

chrome_test.Main([
    '-C', test_dir, '-p', 'TOOLCHAIN=' + TOOLCHAIN, '-t', '400',
    '--enable-nacl', '--load-extension', app, 'io2014_test.html'
] + sys.argv[1:])