Home
last modified time | relevance | path

Searched +full:test +full:- +full:path (Results 1 – 25 of 1171) sorted by relevance

12345678910>>...47

/openbmc/phosphor-dbus-monitor/src/example/
H A Dtest.yaml1 # Test PDM configuration file. This file validates that all
6 - name: test path group
8 group: path
10 - meta: PATH
11 path: /xyz/openbmc_project/testing/inst1
12 - meta: PATH
13 path: /xyz/openbmc_project/testing/inst2
14 - meta: PATH
15 path: /xyz/openbmc_project/testing/inst3
16 - meta: PATH
[all …]
/openbmc/phosphor-dbus-monitor/src/test/yaml/conditiongentest/
H A Dtest.yaml3 - name: test path group 1
5 group: path
7 - meta: PATH
8 path: /xyz/openbmc_project/testing/inst4
10 - name: test path group 2
12 group: path
14 - meta: PATH
15 path: /xyz/openbmc_project/testing/inst4
16 - meta: PATH
17 path: /xyz/openbmc_project/testing/inst6
[all …]
/openbmc/linux/drivers/thunderbolt/
H A Dtest.c1 // SPDX-License-Identifier: GPL-2.0
9 #include <kunit/test.h>
20 res->data = ida; in __ida_init()
26 struct ida *ida = res->data; in __ida_destroy()
31 static void kunit_ida_init(struct kunit *test, struct ida *ida) in kunit_ida_init() argument
33 kunit_alloc_resource(test, __ida_init, __ida_destroy, GFP_KERNEL, ida); in kunit_ida_init()
36 static struct tb_switch *alloc_switch(struct kunit *test, u64 route, in alloc_switch() argument
43 sw = kunit_kzalloc(test, sizeof(*sw), GFP_KERNEL); in alloc_switch()
47 sw->config.upstream_port_number = upstream_port; in alloc_switch()
48 sw->config.depth = tb_route_length(route); in alloc_switch()
[all …]
/openbmc/phosphor-dbus-monitor/src/test/yaml/callbackgroupgentest/
H A Dtest.yaml3 - name: test path group 1
5 group: path
7 - meta: PATH
8 path: /xyz/openbmc_project/testing/inst4
10 - name: test path group 2
12 group: path
14 - meta: PATH
15 path: /xyz/openbmc_project/testing/inst4
16 - meta: PATH
17 path: /xyz/openbmc_project/testing/inst6
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/icecc-create-env/icecc-create-env/
H A Dicecc-create-env2 # icecc -- A simple distributed compiler system
13 if test -n "$log_path"; then
14 echo "$@" | tee -a "$log_path"
23 if test -n "$debug"; then
31 … (file -L "$1" | grep 'ELF' > /dev/null 2>&1) && (! file -L "$1" | grep 'static' > /dev/null 2>&1)
39 # known chroot path to the executables directory
40 local path="$1"
42 if ! is_dynamic_elf "$path"; then
45 local old_rpath="`$PATCHELF --print-rpath "$path"`"
50 if test -n "$new_rpath"; then
[all …]
/openbmc/phosphor-objmgr/src/test/
H A Dhandler.cpp16 class TestHandler : public testing::Test
21 "/test/object_path_0",
25 "/test/object_path_0/child",
29 "/test/object_path_0/child/grandchild",
33 "/test/object_path_0/child/grandchild/dog",
37 "/test/object_path_0/child1",
41 "/test/object_path_0/grandchild/child1",
50 "/test/object_path_0/descendent",
54 "/test/object_path_0/child",
55 "/test/object_path_0/child/grandchild",
[all …]
/openbmc/phosphor-dbus-monitor/src/test/yaml/propertywatchgentest/
H A Dwatchone.yaml1 - name: test path group 1
3 group: path
5 - meta: PATH
6 path: /xyz/openbmc_project/testing/inst1
7 - meta: PATH
8 path: /xyz/openbmc_project/testing/inst2
9 - meta: PATH
10 path: /xyz/openbmc_project/testing/inst3
11 - meta: PATH
12 path: /xyz/openbmc_project/testing/inst4
[all …]
H A Dwatchtwo.yaml1 - name: test path group 1
3 group: path
5 - meta: PATH
6 path: /xyz/openbmc_project/testing/inst4
8 - name: test path group 3
10 group: path
12 - meta: PATH
13 path: /xyz/openbmc_project/testing/inst4
14 - meta: PATH
15 path: /xyz/openbmc_project/testing/inst6
[all …]
/openbmc/phosphor-dbus-monitor/src/test/yaml/callbackgentest/
H A Done.yaml6 - name: test path group 1
8 group: path
10 - meta: PATH
11 path: /xyz/openbmc_project/testing/inst4
13 - name: test path group 2
15 group: path
17 - meta: PATH
18 path: /xyz/openbmc_project/testing/inst4
19 - meta: PATH
20 path: /xyz/openbmc_project/testing/inst6
[all …]
/openbmc/phosphor-led-manager/manager/lamptest/
H A Dlamptest.cpp3 #include <phosphor-logging/lg2.hpp>
13 static const fs::path lampTestIndicator =
14 "/var/lib/phosphor-led-manager/lamp-test-running";
19 // If the physical LED status is updated during the lamp test, it should be in processLEDUpdates()
20 // saved to Queue, and the queue will be processed after the lamp test is in processLEDUpdates()
24 // Physical LEDs will be updated during lamp test in processLEDUpdates()
27 std::string path = std::string(phyLedPath) + it.name; in processLEDUpdates() local
30 [&path](const auto& name) { return name == path; }); in processLEDUpdates()
35 path, Layout::Action::Off, it.dutyOn, it.period); in processLEDUpdates()
41 std::string path = std::string(phyLedPath) + it.name; in processLEDUpdates() local
[all …]
/openbmc/phosphor-power/phosphor-power-sequencer/test/
H A Dconfig_file_parser_tests.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
45 void writeConfigFile(const fs::path& pathName, const std::string& contents) in writeConfigFile()
51 void writeConfigFile(const fs::path& pathName, const json& contents) in writeConfigFile()
57 TEST(ConfigFileParserTests, Find) in TEST() function
64 // Test where works: Fully qualified system type: First in list in TEST()
67 fs::path configFileDirPath = configFileDir.getPath(); in TEST()
69 fs::path configFilePath = configFileDirPath; in TEST()
73 fs::path pathFound = find(compatibleSystemTypes, configFileDirPath); in TEST()
77 // Test where works: Fully qualified system type: Second in list in TEST()
80 fs::path configFileDirPath = configFileDir.getPath(); in TEST()
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/
H A Doetest.py4 # SPDX-License-Identifier: MIT
26 # Exported test doesn't require sdkext
97 # Check if test needs to run
148 if msg[-1] != "\n":
165 path = [os.path.dirname(os.path.abspath(__file__))]
168 path = d.getVar("BBPATH").split(':')
171 self.testslist = self._get_tests_list(path, extrapath)
174 self.filesdir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "runtime/files")
175 self.corefilesdir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "files")
180 # if path is a relative path, then relative to build/conf/
[all …]
/openbmc/qemu/tests/qtest/
H A Dqos-test.c21 #include "libqtest-single.h"
25 #include "qapi/qobject-input-visitor.h"
26 #include "qapi/qapi-visit-machine.h"
27 #include "qapi/qapi-visit-qom.h"
28 #include "libqos/libqos-malloc.h"
40 * This function firstly starts QEMU with "-machine none" option,
59 qtest_start("-machine none"); in qos_set_machines_devices_available()
60 response = qmp("{ 'execute': 'query-machines' }"); in qos_set_machines_devices_available()
74 response = qmp("{'execute': 'qom-list-types'," in qos_set_machines_devices_available()
89 static void restart_qemu_or_continue(char *path) in restart_qemu_or_continue() argument
[all …]
/openbmc/phosphor-power/test/
H A Dtemporary_file_tests.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
33 * @param path path to the file
35 inline void makeFileUnRemovable(const fs::path& path) in makeFileUnRemovable() argument
38 fs::path savePath{path.native() + ".save"}; in makeFileUnRemovable()
39 fs::rename(path, savePath); in makeFileUnRemovable()
41 // Create a directory at the original file path in makeFileUnRemovable()
42 fs::create_directory(path); in makeFileUnRemovable()
45 // if the path is a non-empty directory. in makeFileUnRemovable()
46 std::ofstream childFile{path / "childFile"}; in makeFileUnRemovable()
54 * @param path path to the file
[all …]
H A Dtemporary_subdirectory_tests.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
28 TEST(TemporarySubDirectoryTests, DefaultConstructor) in TEST() function
32 fs::path path = subdirectory.getPath(); in TEST() local
33 EXPECT_FALSE(path.empty()); in TEST()
34 EXPECT_TRUE(fs::exists(path)); in TEST()
35 EXPECT_TRUE(fs::is_directory(path)); in TEST()
37 fs::path parentDir = path.parent_path(); in TEST()
40 std::string baseName = path.filename(); in TEST()
41 EXPECT_TRUE(baseName.starts_with("phosphor-power-")); in TEST()
44 TEST(TemporarySubDirectoryTests, MoveConstructor) in TEST() function
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Dwic.py4 # SPDX-License-Identifier: GPL-2.0-only
9 """Test cases for wic."""
30 extract file names from the output of debugfs -R 'ls -p',
54 """Wic test class."""
60 """This code is executed before each test method."""
61 self.resultdir = os.path.join(self.builddir, "wic-tmp")
69 self.skipTest('wic-tools needs USE_NLS=yes')
71 bitbake('wic-tools core-image-minimal core-image-minimal-mtdutils')
81 """Generate and obtain the path to <image>.env"""
83 bitbake('%s -c do_rootfs_wicenv' % image)
[all …]
/openbmc/qemu/tests/avocado/avocado_qemu/
H A D__init__.py1 # Test class and utilities for functional tests
9 # later. See the COPYING file in the top-level directory.
21 from avocado.utils.path import find_command
32 BUILD_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
39 @skipUnless(*has_cmd('sudo -n', ('sudo', '-n', 'true')))
50 exitcode = -1
65 @skipUnless(*has_cmds(('cmd1', ('cmd1', '--some-parameter')),
91 def is_readable_executable_file(path): argument
92 return os.path.isfile(path) and os.access(path, os.R_OK | os.X_OK)
95 def pick_default_qemu_bin(bin_prefix='qemu-system-', arch=None):
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A Dtestrunner.py3 # Copyright (c) 2020-2021 Virtuozzo International GmbH
20 from pathlib import Path
39 def silent_unlink(path: Path) -> None: argument
41 path.unlink()
46 def file_diff(file1: str, file2: str) -> List[str]:
47 with open(file1, encoding="utf-8") as f1, \
48 open(file2, encoding="utf-8") as f2:
61 """ Cache for elapsed time for tests, to show it during new test run
64 use it inside with-block or use save() after update().
66 def __init__(self, cache_file: str, env: TestEnv) -> None:
[all …]
/openbmc/openbmc-test-automation/bin/
H A Dgenerate_testsuite_info.py4 Use robot framework API to extract test data from test suites.
5 Refer to https://robot-framework.readthedocs.io/en/3.0.1/autodoc/robot.parsing.html
13 sys.path.append(os.path.join(os.path.dirname(__file__), "../lib"))
27 ";%(prog)s will print test suite information to stdout. This "
29 " the suite name, test case names, tag names and doc"
30 " strings. Example for generated test case names "
32 " Verify Front And Rear LED At Standby Power On Test"
34 " Verify Uptime Average Against Threshold Test SSH"
38 prefix_chars="-+",
42 "--source_path", "-s", help="The robot test file or directory path."
[all …]
/openbmc/u-boot/test/py/
H A Dconftest.py1 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
5 # Implementation of pytest run-time hook functions. These are invoked by
7 # test, at shutdown etc. These hooks perform functions such as:
8 # - Parsing custom command-line options.
9 # - Pullilng in user-specified board configuration.
10 # - Creating the U-Boot console test fixture.
11 # - Creating the HTML log file.
12 # - Monitoring each test's results.
13 # - Implementing custom pytest markers.
[all …]
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/test/
H A Dfirmware_json_unittest.cpp18 static constexpr auto TESTFNAME = "./test/test.json";
20 TEST(FirmwareJsonTest, InvalidHandlerType) in TEST() function
27 "path" : "/run/initramfs/bmc-image" in TEST()
32 "unit" : "phosphor-ipmi-flash-bmc-prepare.target" in TEST()
36 "unit" : "phosphor-ipmi-flash-bmc-verify.target", in TEST()
37 "path" : "/tmp/bmc.verify" in TEST()
48 TEST(FirmwareJsonTest, InvalidPreparationType) in TEST() function
55 "path" : "/run/initramfs/bmc-image" in TEST()
60 "unit" : "phosphor-ipmi-flash-bmc-prepare.target" in TEST()
64 "unit" : "phosphor-ipmi-flash-bmc-verify.target", in TEST()
[all …]
/openbmc/phosphor-misc/http-redirect/
H A Dtest.awk5 script = "http-redirect.awk"
6 invoke="awk -f " script
9 invoke = invoke " -v tracefile=" tracefile
28 function test(code, expect, request, headers) function
77 function mkrequest(method, path, version)
79 return method " " path " " version
93 path="/"
96 othermethods(path, version, headers)
97 test(505, "", mkrequest(method, path, "HTTP/1"), headers)
98 test(505, "", mkrequest(method, path, "HTTP/2.0"), headers)
[all …]
/openbmc/linux/scripts/
H A Drustdoc_test_gen.rs1 // SPDX-License-Identifier: GPL-2.0
3 //! Generates KUnit tests from saved `rustdoc`-generated tests.
5 //! KUnit passes a context (`struct kunit *`) to each test, which should be forwarded to the other
10 //! - Test code should not care about the implementation.
12 //! - Documentation looks worse if it needs to carry extra details unrelated to the piece
15 //! - Test code should be able to define functions and call them, without having to carry
18 //! - Later on, we may want to be able to test non-kernel code (e.g. `core`, `alloc` or
19 //! third-party crates) which likely use the standard library `assert*!` macros.
22 //! (i.e. `current->kunit_test`).
24 //! Note that this means other threads/tasks potentially spawned by a given test, if failing, will
[all …]
/openbmc/qemu/tests/functional/
H A Dtest_acpi_bits.py23 # pylint: disable=invalid-name
24 # pylint: disable=consider-using-f-string
29 This test uses a fork of the upstream bits and has numerous fixes
31 https://gitlab.com/qemu-project/biosbits-bits .
45 from pathlib import Path
55 deps = ["xorriso", "mformat"] # dependent tools needed in the test setup/box.
56 supported_platforms = ['x86_64'] # supported test platforms.
58 # default timeout of 120 secs is sometimes not enough for bits test.
62 """ looks up the full path for @tool, returns None if not found
65 paths=os.getenv('PATH')
[all …]
/openbmc/openbmc/poky/meta/classes-recipe/
H A Dptest-cargo.bbclass4 RUST_TEST_ARGS[doc] = "Arguments to give to the test binaries (e.g. --shuffle)"
9 # Sadly, generated test binaries have no deterministic names (https://github.com/rust-lang/cargo/is…
10 # This forces us to parse the cargo output in json format to find those test binaries.
15 cargo = bb.utils.which(d.getVar("PATH"), d.getVar("CARGO"))
19 project_manifest_path = os.path.normpath(manifest_path)
20 manifest_dir = os.path.dirname(manifest_path)
24 cmd = f"{cargo} build --tests --message-format json {cargo_build_flags}"
30 bb.fatal(f"Cannot build test with cargo: {e}")
39 bb.fatal(f"Unable to compile test with cargo, '{cmd}' failed")
41 …# Definition of the format: https://doc.rust-lang.org/cargo/reference/external-tools.html#json-mes…
[all …]

12345678910>>...47