| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/tests/ |
| H A D | data.py | 18 def __enter__(self): argument 21 def emit(self, record): argument 25 self.handler = handler 28 def __exit__(self, type, value, traceback): argument 30 logger.removeHandler(self.handler) 41 def setUp(self): argument 42 self.d = bb.data.init() 43 self.d["foo"] = "value_of_foo" 44 self.d["bar"] = "value_of_bar" 45 self.d["value_of_foo"] = "value_of_'value_of_foo'" [all …]
|
| H A D | codeparser.py | 22 def setUp(self): argument 23 self.d = bb.data.init() 25 def setEmptyVars(self, varlist): argument 27 self.d.setVar(k, "") 29 def setValues(self, values): argument 31 self.d.setVar(k, v) 33 def assertReferences(self, refs): argument 34 self.assertEqual(self.references, refs) 36 def assertExecs(self, execs): argument 37 self.assertEqual(self.execs, execs) [all …]
|
| H A D | fetch.py | 294 def test_uri(self): argument 295 for test_uri, ref in self.test_uris.items(): 298 self.assertEqual(str(uri), ref['uri']) 301 self.assertEqual(uri.scheme, ref['scheme']) 303 self.assertEqual(uri.userinfo, ref['userinfo']) 304 self.assertEqual(uri.username, ref['username']) 305 self.assertEqual(uri.password, ref['password']) 307 self.assertEqual(uri.hostname, ref['hostname']) 308 self.assertEqual(uri.port, ref['port']) 309 self.assertEqual(uri.hostport, ref['hostport']) [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bs4/tests/ |
| H A D | test_tree.py | 35 def assertSelects(self, tags, should_match): argument 42 self.assertEqual([tag.string for tag in tags], should_match) 44 def assertSelectsIDs(self, tags, should_match): argument 51 self.assertEqual([tag['id'] for tag in tags], should_match) 61 def test_find_tag(self): argument 62 soup = self.soup("<a>1</a><b>2</b><a>3</a><b>4</b>") 63 self.assertEqual(soup.find("b").string, "2") 65 def test_unicode_text_find(self): argument 66 soup = self.soup('<h1>Räksmörgås</h1>') 67 self.assertEqual(soup.find(string='Räksmörgås'), 'Räksmörgås') [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/ |
| H A D | codegen.py | 87 def __init__(self, indent_with, add_line_information=False): argument 88 self.result = [] 89 self.indent_with = indent_with 90 self.add_line_information = add_line_information 91 self.indentation = 0 92 self.new_lines = 0 94 def write(self, x): argument 95 if self.new_lines: 96 if self.result: 97 self.result.append('\n' * self.new_lines) [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/scripts/python/ |
| H A D | exported-sql-viewer.py | 193 def __init__(self, task, param=None, parent=None): argument 194 super(Thread, self).__init__(parent) 195 self.task = task 196 self.param = param 198 def run(self): argument 200 if self.param is None: 201 done, result = self.task() 203 done, result = self.task(self.param) 204 self.done.emit(result) 212 def __init__(self, glb, params, parent=None): argument [all …]
|
| /OK3568_Linux_fs/kernel/scripts/ |
| H A D | bmpconvert | 12 def __init__(self, file_path, force_revers=0, force_swap=0): argument 13 self.file = open(file_path, "rb+") 15 self.bfType = unpack("<h", self.file.read(2))[0] 16 self.bfSize = unpack("<i", self.file.read(4))[0] 17 self.bfReserved1 = unpack("<h", self.file.read(2))[0] 18 self.bfReserved2 = unpack("<h", self.file.read(2))[0] 19 self.bfOffBits = unpack("<i", self.file.read(4))[0] 21 self.biSize = unpack("<i", self.file.read(4))[0] 22 self.biWidth = unpack("<i", self.file.read(4))[0] 23 self.biHeight = unpack("<i", self.file.read(4))[0] [all …]
|
| /OK3568_Linux_fs/buildroot/support/testing/tests/toolchain/ |
| H A D | test_external_bootlin.py | 16 def test_run(self): argument 17 TestExternalToolchain.common_check(self) 30 def test_run(self): argument 31 TestExternalToolchain.common_check(self) 44 def test_run(self): argument 45 TestExternalToolchain.common_check(self) 58 def test_run(self): argument 59 TestExternalToolchain.common_check(self) 72 def test_run(self): argument 73 TestExternalToolchain.common_check(self) [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/pysh/ |
| H A D | pyshlex.py | 129 def __init__(self, heredoc = False): argument 131 self._buffer = [] 134 self._stack = [] 135 self._escapable = None 137 self._heredoc = heredoc 139 def add(self, data, eof=False): argument 145 self._buffer += list(data) 146 self._parse(eof) 148 result = self._stack[0] 149 remaining = ''.join(self._buffer) [all …]
|
| /OK3568_Linux_fs/yocto/poky/scripts/ |
| H A D | runqemu | 29 def __init__(self, message): argument 130 def __init__(self): argument 132 self.d = {'QB_KERNEL_ROOT': '/dev/vda'} 136 self.env_vars = ('MACHINE', 148 self.qemu_opt = '' 149 self.qemu_opt_script = '' 150 self.qemuparams = '' 151 self.nfs_server = '' 152 self.rootfs = '' 157 self.ovmf_bios = [] [all …]
|
| /OK3568_Linux_fs/yocto/poky/scripts/pybootchartgui/pybootchartgui/ |
| H A D | gui.py | 47 def __init__(self, trace, options, xscale): argument 48 gtk.DrawingArea.__init__(self) 50 self.trace = trace 51 self.options = options 53 self.set_can_focus(True) 55 self.add_events(Gdk.EventMask.BUTTON_PRESS_MASK | Gdk.EventMask.BUTTON_RELEASE_MASK) 56 self.connect("button-press-event", self.on_area_button_press) 57 self.connect("button-release-event", self.on_area_button_release) 58 …self.add_events(Gdk.EventMask.POINTER_MOTION_MASK | Gdk.EventMask.POINTER_MOTION_HINT_MASK | Gdk.E… 59 self.connect("motion-notify-event", self.on_area_motion_notify) [all …]
|
| H A D | samples.py | 18 def __init__(self, time): argument 19 self.time = time 20 self.diskdata = [0, 0, 0] 21 def add_diskdata(self, new_diskdata): argument 22 self.diskdata = [ a + b for a, b in zip(self.diskdata, new_diskdata) ] 25 def __init__(self, time, user, sys, io = 0.0, swap = 0.0): argument 26 self.time = time 27 self.user = user 28 self.sys = sys 29 self.io = io [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/share/gcc-10.3.1/python/libstdcxx/v6/ |
| H A D | printers.py | 60 def next(self): argument 61 return self.__next__() 208 def __init__(self, val): argument 209 self.val = val 211 def __iter__(self): argument 212 return self 214 def __next__(self): argument 215 if self.val is None: 217 self.val, val = None, self.val 223 def __init__ (self, typename, val): argument [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/share/gcc-10.3.1/python/libstdcxx/v6/ |
| H A D | printers.py | 60 def next(self): argument 61 return self.__next__() 208 def __init__(self, val): argument 209 self.val = val 211 def __iter__(self): argument 212 return self 214 def __next__(self): argument 215 if self.val is None: 217 self.val, val = None, self.val 223 def __init__ (self, typename, val): argument [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/utils/ |
| H A D | qemurunner.py | 36 …def __init__(self, machine, rootfs, display, tmpdir, deploy_dir_image, logfile, boottime, dump_dir… argument 40 self.runqemu = None 41 self.runqemu_exited = False 43 self.qemupid = None 45 self.ip = None 47 self.server_ip = None 49 self.netmask = None 51 self.machine = machine 52 self.rootfs = rootfs 53 self.display = display [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bs4/ |
| H A D | testing.py | 25 def default_builder(self): argument 28 def soup(self, markup, **kwargs): argument 30 builder = kwargs.pop('builder', self.default_builder) 33 def document_for(self, markup): argument 38 return self.default_builder.test_fragment_to_document(markup) 40 def assertSoupEquals(self, to_parse, compare_parsed_to=None): argument 41 builder = self.default_builder 46 self.assertEqual(obj.decode(), self.document_for(compare_parsed_to)) 48 def assertConnectedness(self, element): argument 55 self.assertEqual(e, earlier.next_element) [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/layerindexlib/tests/ |
| H A D | layerindexobj.py | 10 def setUp(self): argument 13 LayersTest.setUp(self) 15 self.index = LayerIndexObj() 25 self.index.branches = {} 26 self.index.layerItems = {} 27 self.index.layerBranches = {} 28 self.index.layerDependencies = {} 29 self.index.recipes = {} 30 self.index.machines = {} 31 self.index.distros = {} [all …]
|
| /OK3568_Linux_fs/u-boot/tools/binman/ |
| H A D | func_test.py | 57 def setUpClass(self): argument 59 self._binman_dir = os.path.dirname(os.path.realpath(sys.argv[0])) 60 self._binman_pathname = os.path.join(self._binman_dir, 'binman') 63 self._indir = tempfile.mkdtemp(prefix='binmant.') 77 self._output_setup = False 80 with open(self.TestFile('u_boot_ucode_ptr')) as fd: 84 with open(self.TestFile('descriptor.bin')) as fd: 88 def tearDownClass(self): argument 90 if self._indir: 91 shutil.rmtree(self._indir) [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/toaster/tests/functional/ |
| H A D | test_functional_basic.py | 17 def test_create_slenium_project(self): argument 19 self.get('') 20 …self.driver.find_element_by_link_text("To start building, create your first Toaster project").clic… 21 self.driver.find_element_by_id("new-project-name").send_keys(project_name) 22 self.driver.find_element_by_id('projectversion').click() 23 self.driver.find_element_by_id("create-project-button").click() 24 element = self.wait_until_visible('#project-created-notification') 25 …self.assertTrue(self.element_exists('#project-created-notification'),'Project creation notificatio… 26 self.assertTrue(project_name in element.text, 28 self.assertTrue(Project.objects.filter(name=project_name).count(), [all …]
|
| /OK3568_Linux_fs/u-boot/test/py/ |
| H A D | multiplexed_log.py | 22 def __init__(self, logfile, name, chained_file): argument 35 self.logfile = logfile 36 self.name = name 37 self.chained_file = chained_file 39 def close(self): argument 51 def write(self, data, implicit=False): argument 66 self.logfile.write(self, data, implicit) 67 if self.chained_file: 68 self.chained_file.write(data) 70 def flush(self): argument [all …]
|
| H A D | u_boot_console_base.py | 47 def __init__(self, console, check_type): argument 48 self.console = console 49 self.check_type = check_type 51 def __enter__(self): argument 52 self.console.disable_check_count[self.check_type] += 1 53 self.console.eval_bad_patterns() 55 def __exit__(self, extype, value, traceback): argument 56 self.console.disable_check_count[self.check_type] -= 1 57 self.console.eval_bad_patterns() 64 def __init__(self, console, timeout): argument [all …]
|
| /OK3568_Linux_fs/u-boot/tools/buildman/ |
| H A D | kconfiglib.py | 104 def __init__(self, filename="Kconfig", base_dir=None, print_warnings=True, argument 138 self.syms = {} 141 self.syms_iter = self.syms.values 143 self.syms_iter = self.syms.itervalues 148 self.kconfig_syms = [] 152 self.named_choices = {} 155 self.choices = [] 156 self.menus = [] 157 self.comments = [] 163 sym.config = self [all …]
|
| H A D | func_test.py | 178 def setUp(self): argument 179 self._base_dir = tempfile.mkdtemp() 180 self._git_dir = os.path.join(self._base_dir, 'src') 181 self._buildman_pathname = sys.argv[0] 182 self._buildman_dir = os.path.dirname(os.path.realpath(sys.argv[0])) 183 command.test_result = self._HandleCommand 184 self.setupToolchains() 185 self._toolchains.Add('arm-gcc', test=False) 186 self._toolchains.Add('powerpc-gcc', test=False) 189 self._boards = board.Boards() [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/progressbar/ |
| H A D | progressbar.py | 101 def __init__(self, maxval=None, widgets=None, term_width=None, poll=1, argument 107 widgets = list(self._DEFAULT_WIDGETS) 109 self.maxval = maxval 110 self.widgets = widgets 111 self.fd = fd 112 self.left_justify = left_justify 114 self.signal_set = False 116 self.term_width = term_width 119 self._handle_resize(None, None) 120 signal.signal(signal.SIGWINCH, self._handle_resize) [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/ |
| H A D | tinfoil.py | 39 def __init__(self, returncode): argument 40 self.returncode = returncode 41 def __repr__(self): argument 42 return 'UI module main returned %d' % self.returncode 48 def __init__(self, tinfoil, dsindex): argument 49 self.tinfoil = tinfoil 50 self.dsindex = dsindex 52 def remoteCommand(self, cmd, *args, **kwargs): argument 53 … return self.tinfoil.run_command('dataStoreConnectorVarHistCmd', self.dsindex, cmd, args, kwargs) 55 def emit(self, var, oval, val, o, d): argument [all …]
|