Home
last modified time | relevance | path

Searched +full:self +full:- +full:working (Results 1 – 25 of 324) sorted by relevance

12345678910>>...13

/openbmc/openbmc/poky/scripts/
H A Ddevtool5 # Copyright (C) 2014-2015 Intel Corporation
7 # SPDX-License-Identifier: GPL-2.0-only
42 def __init__(self, filename): argument
43 self.config_file = filename
44 self.config_obj = configparser.ConfigParser()
46 def get(self, section, option, default=None): argument
48 ret = self.config_obj.get(section, option)
56 def read(self): argument
57 if os.path.exists(self.config_file):
58 self.config_obj.read(self.config_file)
[all …]
/openbmc/openbmc/poky/scripts/esdk-tools/
H A Ddevtool5 # Copyright (C) 2014-2015 Intel Corporation
7 # SPDX-License-Identifier: GPL-2.0-only
42 def __init__(self, filename): argument
43 self.config_file = filename
44 self.config_obj = configparser.ConfigParser()
46 def get(self, section, option, default=None): argument
48 ret = self.config_obj.get(section, option)
56 def read(self): argument
57 if os.path.exists(self.config_file):
58 self.config_obj.read(self.config_file)
[all …]
/openbmc/openbmc/poky/bitbake/lib/layerindexlib/
H A Dplugin.py1 # Copyright (C) 2016-2018 Wind River Systems, Inc.
3 # SPDX-License-Identifier: GPL-2.0-only
8 # Utility Functions for working on layerindex data
16 def __init__(self, message): argument
17 self.msg = message
18 Exception.__init__(self, message)
20 def __str__(self): argument
21 return self.msg
25 def __init__(self, plugin, url): argument
27 self.plugin = plugin
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Druntime_test.py4 # SPDX-License-Identifier: MIT
18 def test_testexport_basic(self): argument
24 Product: oe-core
33 self.write_config(features)
35 # Build tesexport for core-image-minimal
36 bitbake('core-image-minimal')
37 bitbake('-c testexport core-image-minimal')
39 testexport_dir = get_bb_var('TEST_EXPORT_DIR', 'core-image-minimal')
43 self.assertEqual(True, isdir, 'Failed to create testexport dir: %s' % testexport_dir)
45 with runqemu('core-image-minimal') as qemu:
[all …]
H A Dglibc.py4 # SPDX-License-Identifier: MIT
23 def run_check(self, ssh = None): argument
32 … features.append('EGLIBCPARALLELISM:task-check:pn-glibc-testsuite = "PARALLELMFLAGS="-j1""')
33 self.write_config("\n".join(features))
37 bitbake("glibc-testsuite -c check")
41 builddir = get_bb_var("B", "glibc-testsuite")
43 ptestsuite = "glibc-user" if ssh is None else "glibc"
44 self.ptest_section(ptestsuite, duration = int(end_time - start_time))
47 self.ptest_result(ptestsuite, test, result)
49 def run_check_emulated(self): argument
[all …]
H A Dgcc.py4 # SPDX-License-Identifier: MIT
21 def check_skip(self, suite): argument
22 targets = get_bb_var("RUNTIMETARGET", "gcc-runtime").split()
24 self.skipTest("Target does not use {0}".format(suite))
26 def run_check(self, *suites, ssh = None): argument
30 targets.add("check-gcc-c")
32 targets.add("check-gcc-c++")
34 targets.add("check-target-{}".format(s))
40 features.append('TOOLCHAIN_TEST_TARGET = "linux-ssh"')
44 self.write_config("\n".join(features))
[all …]
/openbmc/u-boot/tools/buildman/
H A Dbuilder.py1 # SPDX-License-Identifier: GPL-2.0+
4 # Bloat-o-meter code used here Copyright 2004 Matt Mackall <mpm@selenic.com>
37 The source repo (self.git_dir) contains all the commits to be built. Each
40 commit and builds it (typically without re-configuring). When it runs out
44 Clearly the builder threads could work either way - they could check out a
54 Many threads can be working at once, but each has its own working directory.
66 Buildman also create working directories for each thread, in a .bm-work/
69 As an example, say we are building branch 'us-net' for boards 'sandbox' and
70 'seaboard', and say that us-net has two commits. We will have directories
73 us-net/ base directory
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/sdk/buildtools-cases/
H A Dhttps.py4 # SPDX-License-Identifier: MIT
13 Verify that HTTPS certificates are working correctly, as this depends on
17 def test_wget(self): argument
18self._run('env -i wget --debug --output-document /dev/null https://yoctoproject.org/connectivity.h…
20 def test_python(self): argument
21 # urlopen() returns a file-like object on success and throws an exception otherwise
22self._run('python3 -c \'import urllib.request; urllib.request.urlopen("https://yoctoproject.org/co…
/openbmc/openbmc/poky/meta/lib/patchtest/
H A Drepo.py2 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
8 # SPDX-License-Identifier: GPL-2.0-only
20 def __init__(self, patch, repodir, commit=None, branch=None): argument
21 self.repodir = repodir
22 self.repo = git.Repo.init(repodir)
23 self.patch = mbox.PatchSeries(patch)
24 self.current_branch = self.repo.active_branch.name
29 if self.patch.branch in self.repo.branches:
30 valid_patch_branch = self.patch.branch
38 self._commit = self._get_commitid(commit) or \
[all …]
/openbmc/bmcweb/include/
H A Dsecurity_headers.hpp12 // Recommendations from https://owasp.org/www-project-secure-headers/ in addSecurityHeaders()
13 // https://owasp.org/www-project-secure-headers/ci/headers_add.json in addSecurityHeaders()
14 res.addHeader(bf::strict_transport_security, "max-age=31536000; " in addSecurityHeaders()
17 res.addHeader(bf::pragma, "no-cache"); in addSecurityHeaders()
21 res.addHeader(bf::cache_control, "no-store, max-age=0"); in addSecurityHeaders()
23 res.addHeader("X-Content-Type-Options", "nosniff"); in addSecurityHeaders()
25 std::string_view contentType = res.getHeaderValue("Content-Type"); in addSecurityHeaders()
29 res.addHeader("Referrer-Policy", "no-referrer"); in addSecurityHeaders()
31 "Permissions-Policy", in addSecurityHeaders()
33 "ambient-light-sensor=()," in addSecurityHeaders()
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D12931 def setUp(self): argument
32 iotests.qemu_img('create', '-f', iotests.imgfmt, self.base_img, "1G")
33 iotests.qemu_img('create', '-f', iotests.imgfmt, self.test_img,
34 "-b", self.base_img, '-F', iotests.imgfmt)
35 iotests.qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x5d 1M 128M',
36 self.test_img)
37 self.vm = iotests.VM()
38 self.vm.add_object('throttle-group,id=tg0,x-bps-total=1024')
41 'node-name=source,' \
42 'throttle-group=tg0,' \
[all …]
/openbmc/openbmc/poky/bitbake/lib/toaster/bldcontrol/
H A Dbbcontroller.py6 # SPDX-License-Identifier: GPL-2.0-only
23 def __init__(self, be): argument
25 self.connection = bb.server.xmlrpcclient._create_server(be.bbaddress,
28 def _runCommand(self, command): argument
29 result, error = self.connection.runCommand(command)
34 def disconnect(self): argument
35 return self.connection.removeClient()
37 def setVariable(self, name, value): argument
38 return self._runCommand(["setVariable", name, value])
40 def getVariable(self, name): argument
[all …]
/openbmc/qemu/tests/functional/
H A Dtest_acpi_bits.py23 # pylint: disable=invalid-name
24 # pylint: disable=consider-using-f-string
31 https://gitlab.com/qemu-project/biosbits-bits .
85 class QEMUBitsMachine(QEMUMachine): # pylint: disable=too-few-public-methods
87 A QEMU VM, with isa-debugcon enabled and bits iso passed
88 using -cdrom to QEMU commandline.
91 def __init__(self, argument
97 debugcon_log: str = "debugcon-log.txt",
100 # pylint: disable=too-many-arguments
103 name = "qemu-bits-%d" % os.getpid()
[all …]
/openbmc/linux/Documentation/networking/device_drivers/ethernet/ti/
H A Dcpsw_switchdev.rst1 .. SPDX-License-Identifier: GPL-2.0
17 ip -d link show dev sw0p1 | grep switchid
26 - The new (cpsw_new.c) driver is operating in dual-emac mode by default, thus
27 working as 2 individual network interfaces. Main differences from legacy CPSW
30 - optimized promiscuous mode: The P0_UNI_FLOOD (both ports) is enabled in
36 - learning disabled on ports as it make not too much sense for
37 segregated ports - no forwarding in HW.
38 - enabled basic support for devlink.
47 name switch_mode type driver-specific
50 name ale_bypass type driver-specific
[all …]
/openbmc/qemu/docs/devel/testing/
H A Davocado.rst1 .. _checkavocado-ref:
18 ``self.vm`` attribute (a QEMUMachine instance)
28 (see ``self.get_data()``)
39 - http://avocado-framework.readthedocs.io/en/latest/api/test/avocado.html#avocado.Test
40 - http://avocado-framework.readthedocs.io/en/latest/api/utils/avocado.utils.html
43 -------------
49 make check-avocado
52 necessary avocado-framework dependencies into the QEMU venv within the
58 ``configure`` is called with ``--python=`` and that those modules are
60 specific version, they may be on packages named ``python3-venv`` and
[all …]
H A Dfunctional.rst1 .. _checkfunctional-ref:
10 is a lot of similarity to those tests here (see :ref:`checkavocado-ref` for
22 that there is no TAP-incompatible output written to stdio, e.g. either by
30 ``self.vm`` attribute (a QEMUMachine instance)
43 -------------
49 make check-functional
56 make check-functional-x86_64
62 to the QEMU binary that should be used for the test. The current working
66 $ export QEMU_TEST_QEMU_BINARY=$PWD/qemu-system-x86_64
76 --------
[all …]
/openbmc/openbmc/meta-arm/meta-arm/lib/fvp/
H A Drunner.py13 if config["fvp-bindir"]:
14 cli.append(os.path.join(config["fvp-bindir"], config["exe"]))
19 cli.extend(["--parameter", f"{param}={value}"])
22 cli.extend(["--data", value])
25 cli.extend(["--application", f"{param}={value}"])
31 # cli.extend(["--parameter", f"{terminal}.mode=raw"])
32 …cli.extend(["--parameter", f"{terminal}.terminal_command={terminals[terminal_choice].command.forma…
35 cli.extend(["--parameter", f"{terminal}.start_telnet=0"])
48 def __init__(self, lines): argument
49 self._lines = lines
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Control/Power/
H A DACPIPowerState.interface.yaml5 - name: SysACPIStatus
6 type: enum[self.ACPI]
11 - name: DevACPIStatus
12 type: enum[self.ACPI]
18 - name: ACPI
22 - name: S0_G0_D0
24 Working, the system is running
25 - name: S1_D1
29 - name: S2_D2
33 - name: S3_D3
[all …]
/openbmc/openbmc-test-automation/ffdc/
H A Dffdc_collector.py39 - plugin:
40 - plugin_name: plugin.foo_func.foo_func_yaml
41 - plugin_args:
42 - arg1
43 - arg2
45 plugin_dir = __file__.split(__file__.split("/")[-1])[0] + "/plugins"
49 if module == "__init__.py" or module[-3:] != ".py":
51 plugin_module = "plugins." + module[:-3]
69 - plugin:
70 - plugin_name: version = plugin.ssh_execution.ssh_execute_cmd
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/fetch2/
H A Dcrate.py2 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
9 # SPDX-License-Identifier: GPL-2.0-only
26 def _cargo_bitbake_path(self, rootdir): argument
29 def supports(self, ud, d): argument
35 def recommends_checksum(self, urldata): argument
38 def urldata_init(self, ud, d): argument
44 self._crate_urldata_init(ud, d)
46 super(Crate, self).urldata_init(ud, d)
48 def _crate_urldata_init(self, ud, d): argument
62 version = parts[-1].split(";")[0]
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/com/google/gbmc/
H A DHoth.interface.yaml5 - name: SendHostCommand
12 - name: Command
17 - name: Response
22 - self.Error.CommandFailure
23 - self.Error.ResponseFailure
24 - self.Error.InterfaceError
25 - xyz.openbmc_project.Common.Error.Timeout
27 - name: SendTrustedHostCommand
34 - name: Command
39 - name: Response
[all …]
/openbmc/qemu/tests/qemu-iotests/tests/
H A Dcopy-before-write35 def tearDown(self): argument
36 self.vm.shutdown()
40 def setUp(self): argument
41 qemu_img_create('-f', iotests.imgfmt, source_img, size)
42 qemu_img_create('-f', iotests.imgfmt, temp_img, size)
43 qemu_io('-c', 'write 0 1M', source_img)
45 opts = ['-nodefaults', '-display', 'none', '-machine', 'none']
46 self.vm = QEMUMachine(iotests.qemu_prog, opts,
48 self.vm.launch()
50 def do_cbw_error(self, on_cbw_error): argument
[all …]
/openbmc/linux/scripts/gdb/linux/
H A Dsymbols.py6 # Copyright (c) Siemens AG, 2011-2013
23 def __init__(self, spec, gdb_command): argument
24 super(LoadModuleBreakpoint, self).__init__(spec, internal=True)
25 self.silent = True
26 self.gdb_command = gdb_command
28 def stop(self): argument
31 cmd = self.gdb_command
36 # Disable pagination while reporting symbol (re-)loading.
57 """(Re-)load symbols of Linux kernel and currently loaded modules.
59 The kernel (vmlinux) is taken from the current working directly. Modules (.ko)
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Dx-powers,axp152.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/mfd/x-powers,axp152.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: X-Powers AXP PMIC
10 - Chen-Yu Tsai <wens@csie.org>
13 - if:
18 - x-powers,axp152
19 - x-powers,axp202
20 - x-powers,axp209
[all …]
/openbmc/linux/Documentation/mm/
H A Dmultigen_lru.rst1 .. SPDX-License-Identifier: GPL-2.0
4 Multi-Gen LRU
6 The multi-gen LRU is an alternative LRU implementation that optimizes
14 ----------
20 * Simple self-correcting heuristics
23 implementations. In the multi-gen LRU, each generation represents a
25 (time-based) common frame of reference and therefore help make better
41 choices; thus self-correction is necessary.
43 The benefits of simple self-correcting heuristics are self-evident.
51 -----------
[all …]

12345678910>>...13