| /openbmc/phosphor-dbus-monitor/src/example/ |
| H A D | test.yaml | 1 # 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 D | test.yaml | 3 - 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/phosphor-dbus-monitor/src/test/yaml/callbackgroupgentest/ |
| H A D | test.yaml | 3 - 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/phosphor-dbus-monitor/src/test/yaml/propertywatchgentest/ |
| H A D | watchone.yaml | 1 - 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 D | watchtwo.yaml | 1 - 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 D | one.yaml | 6 - 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 …]
|
| H A D | two.yaml | 3 - name: test path group 1 5 group: path 7 - meta: PATH 8 path: /xyz/openbmc_project/testing/inst4 9 - meta: PATH 10 path: /xyz/openbmc_project/testing/inst6 12 - name: test property group 1 17 - interface: xyz.openbmc_project.Sensor.Iface3 21 - name: test journal callback 1 24 paths: test path group 1 [all …]
|
| /openbmc/openbmc/poky/meta/recipes-devtools/icecc-create-env/icecc-create-env/ |
| H A D | icecc-create-env | 2 # 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 D | handler.cpp | 16 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-led-manager/manager/lamptest/ |
| H A D | lamptest.cpp | 3 #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() 34 manager.drivePhysicalLED(path, Layout::Action::Off, it.dutyOn, in processLEDUpdates() 41 std::string path = std::string(phyLedPath) + it.name; in processLEDUpdates() local [all …]
|
| /openbmc/qemu/tests/functional/qemu_test/ |
| H A D | cmd.py | 1 # Test class and utilities for functional tests 5 # Original Author (Avocado-based tests): 12 # later. See the COPYING file in the top-level directory. 16 import os.path 20 """ looks up the full path for @tool, returns None if not found 23 paths=os.getenv('PATH') 24 for p in paths.split(os.path.pathsep): 25 p = os.path.join(p, tool) 30 def is_readable_executable_file(path): argument 31 return os.path.isfile(path) and os.access(path, os.R_OK | os.X_OK) [all …]
|
| /openbmc/openbmc-test-automation/bin/ |
| H A D | generate_testsuite_info.py | 4 Use robot framework API to extract test data from test suites. 5 Refer to https://robot-framework.readthedocs.io/en/latest/autodoc/robot.running.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/overlay/ |
| H A D | test-fdt-overlay.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 7 /dts-v1/; 11 /* Test that we can change an int by another */ 13 target = <&test>; 16 test-int-property = <43>; 20 /* Test that we can replace a string by a longer one */ 22 target = <&test>; 25 test-str-property = "foobar"; 29 /* Test that we add a new property */ 31 target = <&test>; [all …]
|
| /openbmc/phosphor-power/test/ |
| H A D | temporary_subdirectory_tests.cpp | 8 * 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 …]
|
| H A D | temporary_file_tests.cpp | 8 * 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 …]
|
| /openbmc/qemu/tests/qtest/ |
| H A D | qos-test.c | 21 #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/openbmc/poky/meta/lib/oeqa/ |
| H A D | oetest.py | 4 # 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/phosphor-certificate-manager/test/ |
| H A D | argument_test.cpp | 13 TEST(ProcessArguments, OnSuccessClientType) in TEST() function 16 std::vector<const char*> argv = {"binary", "--type", "client", in TEST() 17 "--endpoint", "abc", "--path", in TEST() 18 "def", "--unit", "ghi"}; in TEST() 22 EXPECT_EQ(arguments.path, "def"); in TEST() 26 TEST(ProcessArguments, OnSuccessServerType) in TEST() function 29 std::vector<const char*> argv = {"binary", "--type", "server", in TEST() 30 "--endpoint", "abc", "--path", in TEST() 31 "def", "--unit", "ghi"}; in TEST() 35 EXPECT_EQ(arguments.path, "def"); in TEST() [all …]
|
| /openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
| H A D | wic.py | 4 # 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/phosphor-misc/http-redirect/ |
| H A D | test.awk | 5 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/u-boot/tools/binman/ |
| H A D | elf_test.py | 1 # SPDX-License-Identifier: GPL-2.0+ 5 # Test for the elf module 15 binman_dir = os.path.dirname(os.path.realpath(sys.argv[0])) 55 """Test that we can obtain a symbol from the ELF file""" 56 fname = os.path.join(binman_dir, 'test', 'u_boot_ucode_ptr') 61 """Test that we can obtain from the ELF file by regular expression""" 62 fname = os.path.join(binman_dir, 'test', 'u_boot_ucode_ptr') 71 """Test that a missing file is detected""" 75 syms = elf.LookupAndWriteSymbols('missing-file', entry, section) 76 self.assertIn("Filename 'missing-file' not found in input path", [all …]
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | testrunner.py | 3 # Copyright (c) 2020-2021 Virtuozzo International GmbH 20 from pathlib import Path 34 def silent_unlink(path: Path) -> None: argument 36 path.unlink() 41 def file_diff(file1: str, file2: str) -> List[str]: 42 with open(file1, encoding="utf-8") as f1, \ 43 open(file2, encoding="utf-8") as f2: 56 """ Cache for elapsed time for tests, to show it during new test run 59 use it inside with-block or use save() after update(). 61 def __init__(self, cache_file: str, env: TestEnv) -> None: [all …]
|
| /openbmc/u-boot/test/py/ |
| H A D | conftest.py | 1 # 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 D | firmware_json_unittest.cpp | 18 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/openbmc/poky/meta/classes-recipe/ |
| H A D | ptest-cargo.bbclass | 4 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")) 20 project_manifest_path = os.path.normpath(manifest_path) 21 manifest_dir = os.path.dirname(manifest_path) 25 … cmd = f"{cargo} build --tests --message-format json {cargo_build_flags} {packageconfig_confargs}" 31 bb.fatal(f"Cannot build test with cargo: {e}") 40 bb.fatal(f"Unable to compile test with cargo, '{cmd}' failed") 42 …# Definition of the format: https://doc.rust-lang.org/cargo/reference/external-tools.html#json-mes… [all …]
|