blob: 295498b1116a0ba21c16076a9f14d2e6c2afe98b [file] [edit]
#!/usr/bin/env python3
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Run unittests in a new browser."""
from __future__ import print_function
import os
import subprocess
import sys
import hterm
import libdot
# Path to our html test page.
TEST_PAGE = os.path.join(hterm.DIR, 'html', 'hterm_test.html')
def mkdeps(_opts):
"""Build the required deps for the test suite."""
subprocess.check_call([os.path.join(hterm.BIN_DIR, 'mkdist')])
def main(argv):
"""The main func!"""
return libdot.load_tests.test_runner_main(
argv, 'file://%s' % (TEST_PAGE,), mkdeps=mkdeps)
if __name__ == '__main__':
sys.exit(main(sys.argv[1:]))