Lines Matching +full:u +full:- +full:boot +full:- +full:env
2 # Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
4 # SPDX-License-Identifier: GPL-2.0
6 # Implementation of pytest run-time hook functions. These are invoked by
9 # - Parsing custom command-line options.
10 # - Pullilng in user-specified board configuration.
11 # - Creating the U-Boot console test fixture.
12 # - Creating the HTML log file.
13 # - Monitoring each test's results.
14 # - Implementing custom pytest markers.
27 # Globals: The HTML log file, and the connection to the U-Boot console.
53 """pytest hook: Add custom command-line options to the cmdline parser.
56 parser: The pytest command-line parser.
62 parser.addoption('--build-dir', default=None,
63 help='U-Boot build directory (O=)')
64 parser.addoption('--result-dir', default=None,
65 help='U-Boot test result/tmp directory')
66 parser.addoption('--persistent-data-dir', default=None,
67 help='U-Boot test persistent generated data directory')
68 parser.addoption('--board-type', '--bd', '-B', default='sandbox',
69 help='U-Boot board type')
70 parser.addoption('--board-identity', '--id', default='na',
71 help='U-Boot board identity/instance')
72 parser.addoption('--build', default=False, action='store_true',
73 help='Compile U-Boot before running tests')
74 parser.addoption('--gdbserver', default=None,
96 board_type_filename = board_type.replace('-', '_')
99 board_identity_filename = board_identity.replace('-', '_')
103 build_dir = source_dir + '/build-' + board_type
113 persistent_data_dir = build_dir + '/persistent-data'
118 raise Exception('--gdbserver only supported with sandbox')
121 log = multiplexed_log.Logfile(result_dir + '/test-log.html')
129 ['make', o_opt, '-s', board_type + '_defconfig'],
130 ['make', o_opt, '-s', '-j8'],
144 ubconfig.env = dict()
148 (ubconfig.env, 'u_boot_boardenv_' + board_type_filename),
149 (ubconfig.env, 'u_boot_boardenv_' + board_type_filename + '_' +
165 'try passing --build option?')
203 re_ut_test_list = re.compile(r'_u_boot_list_2_(dm|env)_test_2_\1_test_(.*)\s*$')
207 Determines the set of unit tests built into a U-Boot binary by parsing the
219 fn = console.config.build_dir + '/u-boot.sym'
238 """Provide parametrization for {env,brd}__ fixtures.
241 or env__xxx, the brd and env configuration dictionaries are consulted to
255 'env': console.config.env,
442 Such a marker lists some U-Boot configuration feature that the test
443 requires. If tests are being executed on an U-Boot build that doesn't