forked from libapps/libapps-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathload_tests
More file actions
executable file
·38 lines (27 loc) · 809 Bytes
/
load_tests
File metadata and controls
executable file
·38 lines (27 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python3
# Copyright 2019 The ChromiumOS Authors
# 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."""
import os
import subprocess
import sys
import hterm
import libdot # pylint: disable=wrong-import-order
# Path to our html test page.
TEST_PAGE = (hterm.DIR / "html" / "hterm_test.html").relative_to(
libdot.LIBAPPS_DIR
)
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,
TEST_PAGE,
serve=True,
mkdeps=mkdeps,
)
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))