Ejemplo 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.

"""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

if __name__ == '__main__':
  chrome_test.main(
      ['-C', os.path.join(SCRIPT_DIR, 'tests'),
       '--load-extension', os.path.join(SCRIPT_DIR, 'pinger'),
       'plumbing_test.html'] + sys.argv[1:])
Ejemplo 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:])
Ejemplo 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 gdb app component."""

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')
GDB_OUT_DIR = os.path.join(SRC_DIR, 'out/publish/gdb', TOOLCHAIN)

import chrome_test

gdb_app = os.path.join(GDB_OUT_DIR, 'gdb_app')
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,
        'gdb_test.html'
    ] + sys.argv[1:])
Ejemplo 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.
"""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

if __name__ == '__main__':
    chrome_test.main([
        '-C',
        os.path.join(SCRIPT_DIR, 'tests'), '--load-extension',
        os.path.join(SCRIPT_DIR, 'pinger'), 'plumbing_test.html'
    ] + sys.argv[1:])
Ejemplo n.º 5
0
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""Tests of gdb app component."""

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')
GDB_OUT_DIR = os.path.join(SRC_DIR, 'out/publish/gdb', TOOLCHAIN)

import chrome_test


gdb_app = os.path.join(GDB_OUT_DIR, 'gdb_app')
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,
      'gdb_test.html'] + sys.argv[1:])
Ejemplo 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.
"""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:])
Ejemplo n.º 7
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:])
Ejemplo n.º 8
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', '400',
    '--enable-nacl',
    '--load-extension', app,
    'devenv_large_test.html'] + sys.argv[1:])
Ejemplo n.º 9
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', '400',
    '--enable-nacl', '--load-extension', app, 'devenv_large_test.html'
] + sys.argv[1:])
Ejemplo n.º 10
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:])