Lines Matching +full:run +full:- +full:time
2 # SPDX-License-Identifier: GPL-2.0
13 import time
54 request: KunitConfigRequest) -> KunitResult:
57 config_start = time.time()
59 config_end = time.time()
63 config_end - config_start)
66 config_end - config_start)
69 request: KunitBuildRequest) -> KunitResult:
72 build_start = time.time()
77 build_end = time.time()
81 build_end - build_start)
85 build_end - build_start)
88 build_end - build_start)
91 request: KunitExecRequest) -> KunitResult:
93 test_start = time.time()
98 test_end = time.time()
102 test_end - test_start)
104 def parse_tests(request: KunitParseRequest) -> KunitResult:
105 parse_start = time.time()
115 parse_end = time.time()
128 parse_end - parse_start)
131 parse_end - parse_start)
135 request: KunitRequest) -> KunitResult:
136 run_start = time.time()
163 run_end = time.time()
166 'Elapsed time: %.3fs total, %.3fs configuring, %.3fs ' +
168 run_end - run_start,
175 parser.add_argument('--build_dir',
179 parser.add_argument('--make_options',
182 parser.add_argument('--alltests',
183 help='Run all KUnit tests through allyesconfig',
187 parser.add_argument('--jobs',
189 'jobs (commands) to run simultaneously."',
193 parser.add_argument('--timeout',
195 'to run. This does not include time taken to build the '
202 parser.add_argument('--raw_output', help='don\'t format output from kernel',
204 parser.add_argument('--json',
216 # The 'run' command will config, build, exec, and parse in one go.
217 run_parser = subparser.add_parser('run', help='Runs KUnit tests.')
232 exec_parser = subparser.add_parser('exec', help='Run a kernel with KUnit tests')
239 # and the '--file' argument is not relevant to 'run', so isn't in
254 if cli_args.subcommand == 'run':
289 'Elapsed time: %.3fs\n') % (
306 'Elapsed time: %.3fs\n') % (
327 'Elapsed time: %.3fs\n') % (