blob: 7eed1b0d74400e15931ec5e3f7f1ff1874768a59 [file] [log] [blame]
#!/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:])