Home
last modified time | relevance | path

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

1234567

/openbmc/phosphor-power/phosphor-regulators/test/
H A Dvalidate-regulators-config_tests.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
44 "comments": [ "Config file for a FooBar one-chassis system" ],
46 "rules": [
140 "../phosphor-regulators/tools/validate-regulators-config.py -s \ in getValidationToolCommand()
141 ../phosphor-regulators/schema/config_schema.json -c "; in getValidationToolCommand()
172 if (returnValue == -1) in runToolForOutputWithCommand()
264 TEST(ValidateRegulatorsConfigTest, Action) in TEST() function
274 configFile["rules"][0]["actions"][0]["comments"][0] = in TEST()
290 configFile["rules"][0]["actions"].push_back(andAction); in TEST()
296 configFile["rules"][0]["actions"][1]["compare_presence"]["fru"] = in TEST()
[all …]
H A Dsystem_tests.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
61 TEST(SystemTests, Constructor) in TEST() function
63 // Create Rules in TEST()
64 std::vector<std::unique_ptr<Rule>> rules{}; in TEST() local
65 rules.emplace_back(createRule("set_voltage_rule")); in TEST()
75 System system{std::move(rules), std::move(chassis)}; in TEST()
77 EXPECT_EQ(system.getChassis()[0]->getNumber(), 1); in TEST()
83 EXPECT_EQ(system.getRules()[0]->getID(), "set_voltage_rule"); in TEST()
86 TEST(SystemTests, ClearCache) in TEST() function
110 std::vector<std::unique_ptr<Rule>> rules{}; in TEST() local
[all …]
H A Dconfiguration_tests.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
56 TEST(ConfigurationTests, Constructor) in TEST() function
58 // Test where volts value specified in TEST()
72 // Test where volts value not specified in TEST()
85 // Test for execute(Services&, System&, Chassis&, Device&)
86 TEST(ConfigurationTests, ExecuteForDevice) in TEST() function
88 // Test where works: Volts value not specified in TEST()
133 std::vector<std::unique_ptr<Rule>> rules{}; in TEST() local
136 System system{std::move(rules), std::move(chassisVec)}; in TEST()
139 configurationPtr->execute(services, system, *chassisPtr, *devicePtr); in TEST()
[all …]
H A Drail_tests.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
54 TEST(RailTests, Constructor) in TEST() function
56 // Test where only required parameters are specified in TEST()
64 // Test where all parameters are specified in TEST()
85 EXPECT_EQ(rail.getConfiguration()->getVolts().has_value(), true); in TEST()
86 EXPECT_EQ(rail.getConfiguration()->getVolts().value(), 1.3); in TEST()
87 EXPECT_EQ(rail.getConfiguration()->getActions().size(), 2); in TEST()
89 EXPECT_EQ(rail.getSensorMonitoring()->getActions().size(), 1); in TEST()
93 TEST(RailTests, ClearErrorHistory) in TEST() function
134 std::vector<std::unique_ptr<Rule>> rules{}; in TEST() local
[all …]
/openbmc/webui-vue/docs/guide/coding-standards/
H A Dreadme.md6 - [ESLint](https://eslint.org/)
7 - [Prettier](https://prettier.io/)
8 - [ESLint Plugin for Vue](https://eslint.vuejs.org/)
12 - [Vue Recommended](https://eslint.vuejs.org/rules/#priority-c-recommended-minimizing-arbitrary-cho…
13 - [ESLint Recommended](https://eslint.org/docs/rules/)
14 - [Prettier](https://prettier.io/docs/en/options.html)
16 The rules are applied in the following order:
18 1. Vue rules
27 ## Running the lint test
29 To test all files for linting, run `npm run lint`. This command will evaluate
[all …]
/openbmc/openbmc/poky/meta/recipes-multimedia/alsa/
H A Dalsa-utils_1.2.14.bb4 HOMEPAGE = "http://www.alsa-project.org"
5 BUGTRACKER = "http://alsa-project.org/main/index.php/Bug_Tracking"
7 # Some parts are GPL-2.0-or-later, some are GPL-2.0-only (e.g. axfer, alsactl)
8 # so result is GPL-2.0-only
9 LICENSE = "GPL-2.0-only"
12 DEPENDS = "alsa-lib ncurses libsamplerate0"
21 PACKAGECONFIG[bat] = "--enable-bat,--disable-bat,fftwf"
23 PACKAGECONFIG[udev] = "--with-udev-rules-dir=`pkg-config --variable=udevdir udev`/rules.d,--with-ud…
24 PACKAGECONFIG[manpages] = "--enable-xmlto, --disable-xmlto, xmlto-native docbook-xml-dtd4-native do…
26 # alsa-utils specified in SRC_URI due to alsa-utils-scripts recipe
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/linuxconsole/
H A Dlinuxconsole_1.7.1.bb3 utilities to test and configure joysticks, connect legacy devices to the kernel's \
4 input subsystem (providing support for serial mice, touchscreens etc.), and test \
8 LICENSE = "GPL-2.0-only"
14 ${SOURCEFORGE_MIRROR}/linuxconsole/linuxconsoletools-${PV}.tar.bz2 \
15 file://0001-utils-Use-name-of-the-first-prerequisite-in-rule.patch \
16 file://51-these-are-not-joysticks-rm.rules \
17 file://60-joystick.rules \
24 S = "${WORKDIR}/linuxconsoletools-${PV}"
28 EXTRA_OEMAKE = "DESTDIR=${D} PREFIX=${prefix} -C utils"
43 sed '/^PROGRAMS/s/ffmvforce *//g' -i ${S}/utils/Makefile
[all …]
/openbmc/openbmc/poky/meta/recipes-support/apr/
H A Dapr-util_1.6.3.bb8 LICENSE = "Apache-2.0"
12 SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.gz \
14 file://0001-test_transformation-Check-if-transform-is-supported-.patch \
15 file://run-ptest \
20 EXTRA_OECONF = "--with-apr=${STAGING_BINDIR_CROSS}/apr-1-config \
21 --without-odbc \
22 --without-pgsql \
23 --without-sqlite2 \
24 --with-expat=${STAGING_DIR_HOST}${prefix}"
29 MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/apu-1-config"
[all …]
/openbmc/qemu/docs/devel/testing/
H A Dblkdebug.rst5 Copyright (C) 2014-2015 Red Hat Inc
8 the COPYING file in the top-level directory.
10 The ``blkdebug`` block driver is a rule-based error injection engine. It can be
17 ----------
23 Error injection allows test cases to trigger I/O errors at specific points.
26 Rules chapter
27 -----
28 The ``blkdebug`` block driver takes a list of "rules" that tell the error injection
31 Each I/O request is evaluated against the rules. If a rule matches the request
34 Rules can be placed in a configuration file; the configuration file
[all …]
/openbmc/openbmc/meta-security/recipes-mac/smack/smack-test/
H A Dsmack_test_file_access.sh11 python3 $TMP/notroot.py $uid "TheOther" $ECHO 'TEST' > $test_file
12 chsmack -a "TheOther" $test_file
15 delrule="TheOne TheOther -----"
16 rule_ro="TheOne TheOther r----"
18 # Remove pre-existent rules for "TheOne TheOther <access>"
19 echo -n "$delrule" > $SMACK_PATH/load
20 python3 $TMP/notroot.py $uid "TheOne" $CAT $test_file 2>&1 1>/dev/null | grep -q "Permission denied…
21 if [ $RC -ne 0 ]; then
22 echo "Process with different label than the test file and no read access on it can read it"
27 echo -n "$rule_ro" > $SMACK_PATH/load
[all …]
/openbmc/openbmc/meta-security/recipes-ids/tripwire/files/
H A Dtripwire.txt1 Post-Installation Instructions
4 2. Initialize the Tripwire database file. (/usr/sbin/tripwire--init)
5 3. Run the first integrity check. (/usr/sbin/tripwire--check)
9 …u modify the policy file after running the configuration script, you must re-run the configuration…
14 …ripwire/twpol.txt. An example policy file (located at /usr/doc/tripwire-VER#-REL#/policyguide.tx…
16 After you modify the policy file, follow the Post-Installation Instructions (run the configuration …
27 …e, Tripwire software builds a database of filesystem objects based on the rules in the policy file…
28 tripwire --init
32 tripwire --check
34 Printing Reports - twprint Print Report Mode
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/multipath-tools/files/
H A D0001-RH-fixup-udev-rules-for-redhat.patch3 Date: Thu, 13 Apr 2017 07:22:23 -0500
4 Subject: [PATCH] RH: fixup udev rules for redhat
6 The multipath rules need to run after scsi_id is run. This means moving
7 them after 60-persistent-storage.rules for redhat. Redhat also uses a
12 Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
15 Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
18 Signed-off-by: Changqing Li <changqing.li@windriver.com>
20 Upstream-Status: Pending
23 Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
24 ---
[all …]
/openbmc/sdbusplus/test/gen/
H A Dtest_aserver_emit_interfaces_added_signal.cpp1 #include "server/Test/aserver.hpp"
2 #include "server/Test/common.hpp"
10 class A : public sdbusplus::aserver::server::Test<A>
14 sdbusplus::async::match& ifcAdded) -> sdbusplus::async::task<> in waitForMatch()
22 -> sdbusplus::async::task<> in shouldEmitSignal()
29 sdbusplus::common::server::Test::properties_t props{ in shouldEmitSignal()
32 auto t2 = std::make_unique<sdbusplus::aserver::server::Test<A>>( in shouldEmitSignal()
33 ctx, "/test/something", props); in shouldEmitSignal()
35 t2->emit_added(); in shouldEmitSignal()
52 sdbusplus::server::manager_t manager(ctx.get_bus(), "/test"); in main()
[all …]
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/
H A DREADME.md1 # phosphor-regulators Configuration File
5 - [Overview](#overview)
6 - [Data Format](#data-format)
7 - [Example](#example)
8 - [Name](#name)
9 - [Contents](#contents)
10 - [Validation](#validation)
11 - [Installation](#installation)
12 - [Loading and Reloading](#loading-and-reloading)
13 - [Testing](#testing)
[all …]
/openbmc/phosphor-fan-presence/monitor/test/
H A Dpower_off_rule_test.cpp10 TEST(PowerOffRuleTest, TestRules) in TEST() function
63 auto rules = getPowerOffRules(faultConfig, powerIface, func); in TEST() local
64 ASSERT_EQ(rules.size(), 4); in TEST()
73 rules[0]->check(PowerRuleState::runtime, health); in TEST()
74 EXPECT_FALSE(rules[0]->active()); in TEST()
76 rules[0]->check(PowerRuleState::atPgood, health); in TEST()
77 EXPECT_TRUE(rules[0]->active()); in TEST()
85 rules[0]->cancel(); in TEST()
86 EXPECT_FALSE(rules[0]->active()); in TEST()
91 rules[1]->check(PowerRuleState::runtime, health); in TEST()
[all …]
/openbmc/openbmc-test-automation/docs/
H A Dredfish_coding_guidelines.md3 - For robot programs wishing to run Redfish commands, include the following in
12 - This git repository has some redfish wrapper modules:
13 - [redfish_plus.py](../lib/redfish_plus.py)
14 - [bmc_redfish.py](../lib/bmc_redfish.py)
15 - [bmc_redfish_utils.py](../lib/bmc_redfish_utils.py)
16 - Redfish wrapper module features:
19 - Support for python-like strings for all arguments which allows callers to
36 - Support for **valid_status_codes** argument and auto-failure:
66 - Login defaults for path, username and password are
69 - Many utility functions are available. Examples:;
[all …]
/openbmc/qemu/tests/unit/
H A Dcheck-block-qdict.c2 * Unit-tests for Block layer QDict extras
4 * Copyright (c) 2013-2018 Red Hat, Inc.
7 * See the COPYING.LIB file in the top-level directory.
49 * Test the flattening of in qdict_flatten_test()
135 * Test that we can clone and flatten in qdict_clone_flatten_test()
168 * Test the split of in qdict_array_split_test()
249 * Test the split of in qdict_array_split_test()
270 * That is, test whether splitting stops if there is both an entry with key in qdict_array_split_test()
312 g_assert_cmpint(qdict_array_entries(dict, "foo."), ==, -EINVAL); in qdict_array_entries_test()
316 g_assert_cmpint(qdict_array_entries(dict, "foo."), ==, -EINVAL); in qdict_array_entries_test()
[all …]
/openbmc/phosphor-led-sysfs/
H A Dmeson.build2 'phosphor-ledcontroller',
15 phosphor_dbus_interfaces_dep = dependency('phosphor-dbus-interfaces')
16 phosphor_logging_dep = dependency('phosphor-logging')
34 ['udev' / 'rules.d' / '70-leds.rules'],
35 install_dir: udevdir / 'rules.d',
40 ['systemd' / 'system' / 'phosphor-ledcontroller.service'],
44 ['systemd' / 'system' / 'sysfs-led@.service'],
48 dbus = dependency('dbus-1')
51 'dbus-1' / 'system-services' / 'xyz.openbmc_project.LED.Controller.service',
64 'phosphor-ledcontroller',
[all …]
/openbmc/openbmc/poky/meta/recipes-core/udev/
H A Deudev_3.2.14.bb2 HOMEPAGE = "https://github.com/eudev-project/eudev"
4 LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later"
5 LICENSE:libudev = "LGPL-2.1-or-later"
8 DEPENDS = "gperf-native"
15 file://local.rules \
16 file://0001-random-util.c-sync-dev_urandom-implementation-to-sys.patch \
21 GITHUB_BASE_URI = "https://github.com/eudev-project/eudev/releases"
23 inherit autotools update-rc.d pkgconfig features_check manpages github-releases
28 --sbindir=${base_sbindir} \
29 --with-rootlibdir=${base_libdir} \
[all …]
/openbmc/qemu/tests/tcg/
H A DMakefile.target1 # -*- Mode: makefile -*-
7 # ones we have cross-compilers for or docker images with
8 # cross-compilers.
11 # cross-compilers don't always have a large amount of libraries
15 # bother with the common rules.mk. We expect the following:
17 # CC - the C compiler command
18 # EXTRA_CFLAGS - any extra CFLAGS
19 # BUILD_STATIC - are we building static binaries
23 # cross-compiler can only build dynamic libraries the user might need
29 # We also expect to be in the tests build dir for the FOO-(linux-user|softmmu).
[all …]
/openbmc/openbmc/meta-arm/meta-arm/recipes-security/optee/optee-client/
H A D0001-tee-supplicant-add-udev-rule-and-systemd-service-fil.patch4 Subject: [PATCH] tee-supplicant: add udev rule and systemd service file
6 tee-supplicant startup with systemd init based
7 is non-trivial. Add sample udev rule and systemd
8 service files here so that distros can co-operate maintaining
11 Files are from meta-arm https://git.yoctoproject.org/meta-arm
21 BSD-2-Clause like rest of optee client repo.
25 tee-supplicant. Additionally state directory /var/lib/tee
43 Once these are setup, udev will start tee-supplicant in initramfs
48 stopping tee-supplicant, the ftpm kernel modules are removed and only
50 may be removed once RPMB kernel and optee patches without tee-supplicant
[all …]
/openbmc/obmc-console/
H A Dmeson.build2 'obmc-console',
15 add_project_arguments('-D_GNU_SOURCE', language: 'c')
21 'conf/obmc-console@.service.in',
22 'conf/obmc-console@.socket.in',
23 rename: ['obmc-console@.service', 'obmc-console@.socket'],
28 'conf/obmc-console-ssh@.service.in',
29 rename: ['obmc-console-ssh@.service'],
34 if get_option('concurrent-servers')
43 'conf/obmc-console-ssh.socket.in',
44 rename: ['obmc-console-ssh.socket'],
[all …]
/openbmc/phosphor-hwmon/
H A Dmeson.build2 'phosphor-hwmon',
5 license: 'Apache-2.0',
11 conf.set_quoted('BUSNAME_PREFIX', get_option('busname-prefix'))
12 conf.set_quoted('SENSOR_ROOT', get_option('sensor-root'))
13 conf.set10('NEGATIVE_ERRNO_ON_FAIL', get_option('negative-errno-on-fail'))
14 conf.set10('UPDATE_FUNCTIONAL_ON_FAIL', get_option('update-functional-on-fail'))
37 dependency('phosphor-dbus-interfaces'),
38 dependency('phosphor-logging'),
69 # CLI11 might not have a pkg-config. It is header only so just make
85 'phosphor-hwmon-readd',
[all …]
/openbmc/docs/designs/
H A Dfirmware-update-via-usb.md1 # In-Band Update of BMC Firmware using USB
5 Created: 2021-10-12
14 The openbmc project currently has a [phosphor-software-manager][1] repository.
26 - Monitor whether the USB key is inserted.
27 - The first tar file found in the sorted list of files on the USB device is
29 - Manually trigger firmware upgrade.
30 - Disable automatic reboot the BMC firmware after upgrade is complete to prevent
32 - This mechanism attempts to maintain security, for example this feature is
37 The new code would be part of the phosphor-software-manager repository(eg:
38 phosphor-usb-code-update). The design process is as follows:
[all …]
/openbmc/qemu/docs/devel/
H A Dbuild-system.rst14 - build artifacts outside of QEMU source tree entirely::
22 - build artifacts in a subdir of QEMU source tree::
38 - detect the host architecture
40 - list the targets for which to build emulators; the list of
43 - find the compilers (native and cross) used to build executables,
45 fragments (``config-host.mak``) or a Meson machine file
46 (``config-meson.cross``)
48 - create a virtual environment in which all Python code runs during
51 - invoke Meson in the virtual environment, to perform the actual
55 which a same-named Meson option exists; dashes in the command line are
[all …]

1234567