Home
last modified time | relevance | path

Searched +full:tcs +full:- +full:config (Results 1 – 25 of 87) sorted by relevance

1234

/freebsd/contrib/kyua/utils/config/
H A Dnodes_test.cpp29 #include "utils/config/nodes.ipp"
31 #include <atf-c++.hpp>
35 #include "utils/config/exceptions.hpp"
36 #include "utils/config/keys.hpp"
39 namespace config = utils::config;
46 class validation_node : public config::int_node {
56 throw config::value_error("Custom validate method"); in validate()
62 class set_validation_node : public config::strings_set_node {
74 throw config::value_error("Custom validate method"); in validate()
85 config::bool_node node; in ATF_TEST_CASE_BODY()
[all …]
H A Dtree_test.cpp29 #include "utils/config/tree.ipp"
31 #include <atf-c++.hpp>
33 #include "utils/config/nodes.ipp"
37 namespace config = utils::config;
71 class wrapped_int_node : public config::typed_leaf_node< int_wrapper > {
75 /// \return A dynamically-allocated node.
80 new_node->_value = _value; in deep_copy()
91 config::typed_leaf_node< int_wrapper >::value().value()); in push_lua()
103 config::typed_leaf_node< int_wrapper >::set(new_value); in set_lua()
113 config::typed_leaf_node< int_wrapper >::set(new_value); in set_string()
[all …]
H A Dlua_module_test.cpp29 #include "utils/config/lua_module.hpp"
31 #include <atf-c++.hpp>
37 #include "utils/config/tree.ipp"
40 namespace config = utils::config;
46 /// Non-native type to use as a leaf node.
62 class custom_node : public config::typed_leaf_node< custom_type > {
66 /// \return A dynamically-allocated node.
71 new_node->_value = _value; in deep_copy()
125 config::tree tree; in ATF_TEST_CASE_BODY()
126 tree.define< config::bool_node >("top_boolean"); in ATF_TEST_CASE_BODY()
[all …]
H A Dexceptions_test.cpp29 #include "utils/config/exceptions.hpp"
33 #include <atf-c++.hpp>
35 #include "utils/config/tree.ipp"
37 namespace config = utils::config;
38 namespace detail = utils::config::detail;
44 const config::error e("Some text"); in ATF_TEST_CASE_BODY()
56 const config::bad_combination_error e(key, "Failed to combine '%s'"); in ATF_TEST_CASE_BODY()
64 const config::invalid_key_error e("Some text"); in ATF_TEST_CASE_BODY()
76 const config::invalid_key_value e(key, "foo bar"); in ATF_TEST_CASE_BODY()
85 const config::syntax_error e("Some text"); in ATF_TEST_CASE_BODY()
[all …]
H A Dkeys_test.cpp29 #include "utils/config/keys.hpp"
31 #include <atf-c++.hpp>
33 #include "utils/config/exceptions.hpp"
35 namespace config = utils::config;
41 config::detail::tree_key key; in ATF_TEST_CASE_BODY()
43 ATF_REQUIRE_EQ("foo", config::detail::flatten_key(key)); in ATF_TEST_CASE_BODY()
50 config::detail::tree_key key; in ATF_TEST_CASE_BODY()
54 ATF_REQUIRE_EQ("foo.1.bar", config::detail::flatten_key(key)); in ATF_TEST_CASE_BODY()
61 config::detail::tree_key exp_key; in ATF_TEST_CASE_BODY()
63 ATF_REQUIRE(exp_key == config::detail::parse_key("one")); in ATF_TEST_CASE_BODY()
[all …]
H A Dparser_test.cpp29 #include "utils/config/parser.hpp"
33 #include <atf-c++.hpp>
35 #include "utils/config/exceptions.hpp"
36 #include "utils/config/parser.hpp"
37 #include "utils/config/tree.ipp"
41 namespace config = utils::config;
49 class mock_parser : public config::parser {
56 setup(config::tree& tree, const int syntax_version) in setup()
61 tree.define< config::string_node >("top_string"); in setup()
62 tree.define< config::int_node >("inner.int"); in setup()
[all …]
/freebsd/contrib/kyua/engine/
H A Drequirements_test.cpp31 #include <atf-c++.hpp>
33 #include "engine/config.hpp"
35 #include "utils/config/tree.ipp"
43 namespace config = utils::config;
65 config::tree user_config = engine::default_config(); in ATF_TEST_CASE_BODY()
79 config::tree user_config = engine::default_config(); in ATF_TEST_CASE_BODY()
96 config::tree user_config = engine::default_config(); in ATF_TEST_CASE_BODY()
112 config::tree user_config = engine::default_config(); in ATF_TEST_CASE_BODY()
127 config::tree user_config = engine::default_config(); in ATF_TEST_CASE_BODY()
141 config::tree user_config = engine::default_config(); in ATF_TEST_CASE_BODY()
[all …]
H A Dconfig_test.cpp29 #include "engine/config.hpp"
32 # include "config.h"
38 #include <atf-c++.hpp>
43 #include "utils/config/tree.ipp"
46 namespace config = utils::config;
68 /// Checks that the default values of a config object match our expectations.
70 /// This fails the test case if any field of the input config object is not
73 /// \param config The configuration to validate.
75 validate_defaults(const config::tree& config) in validate_defaults() argument
79 config.lookup< config::string_node >("architecture")); in validate_defaults()
[all …]
H A Dkyuafile_test.cpp38 #include <atf-c++.hpp>
50 #include "utils/config/tree.ipp"
57 namespace config = utils::config;
70 atf::utils::create_file("config", "syntax(2)\n"); in ATF_TEST_CASE_BODY()
73 fs::path("config"), none, config::tree(), handle); in ATF_TEST_CASE_BODY()
88 "config", in ATF_TEST_CASE_BODY()
90 "test_suite('one-suite')\n" in ATF_TEST_CASE_BODY()
95 "include('dir/config')\n"); in ATF_TEST_CASE_BODY()
99 "dir/config", in ATF_TEST_CASE_BODY()
101 "atf_test_program{name='1st', test_suite='other-suite'}\n" in ATF_TEST_CASE_BODY()
[all …]
H A Datf_test.cpp37 #include <atf-c++.hpp>
39 #include "engine/config.hpp"
45 #include "utils/config/tree.ipp"
56 namespace config = utils::config;
71 /// \param names_filter Whitespace-separated list of test cases that the helper
73 /// \param user_config User-provided configuration.
80 config::tree user_config = engine::empty_config()) in list_one()
85 "atf", fs::path(program_name), root, "the-suite", in list_one()
104 /// \param names_filter Whitespace-separated list of test cases that the helper
116 const model::test_case& test_case = test_cases.begin()->second; in check_list_one_fail()
[all …]
H A Dscheduler_test.cpp43 #include <atf-c++.hpp>
45 #include "engine/config.hpp"
52 #include "utils/config/tree.ipp"
70 namespace config = utils::config;
129 /// wasn't because doing so deletes on-disk files and we want to leave them
147 atf::utils::create_file("second-file", ""); in exec_create_files_and_fail()
160 const int exit_code = ::system("rm *") == -1 in exec_delete_all()
192 /// \param vars User-provided variables to pass to the test program.
196 const config::properties_map& vars) const in exec_print_params()
201 for (config::properties_map::const_iterator iter = vars.begin(); in exec_print_params()
[all …]
H A Dtap_test.cpp35 #include <atf-c++.hpp>
37 #include "engine/config.hpp"
43 #include "utils/config/tree.ipp"
52 namespace config = utils::config;
71 const fs::path srcdir(tc->get_config_var("srcdir")); in copy_tap_helper()
83 /// \param user_config User-provided configuration variables.
88 const config::tree& user_config = engine::empty_config()) in run_one()
92 "tap", fs::path(test_case_name), fs::current_path(), "the-suite") in run_one()
102 atf::utils::cat_file(result_handle->stdout_file().str(), "stdout: "); in run_one()
103 atf::utils::cat_file(result_handle->stderr_file().str(), "stderr: "); in run_one()
[all …]
H A Dplain_test.cpp35 #include <atf-c++.hpp>
37 #include "engine/config.hpp"
43 #include "utils/config/tree.ipp"
52 namespace config = utils::config;
71 const fs::path srcdir(tc->get_config_var("srcdir")); in copy_plain_helper()
83 /// \param user_config User-provided configuration variables.
88 const config::tree& user_config = engine::empty_config()) in run_one()
92 "plain", fs::path(test_case_name), fs::current_path(), "the-suite") in run_one()
102 atf::utils::cat_file(result_handle->stdout_file().str(), "stdout: "); in run_one()
103 atf::utils::cat_file(result_handle->stderr_file().str(), "stderr: "); in run_one()
[all …]
H A Datf_helpers.cpp45 #include <atf-c++.hpp>
75 if (!test_case->has_config_var(directory)) in create_cookie()
76 test_case->fail(std::string(name) + " not provided"); in create_cookie()
78 const fs::path control_dir(test_case->get_config_var(directory)); in create_cookie()
81 test_case->fail("Failed to create the control cookie"); in create_cookie()
92 set_md_var("require.config", "control_dir"); in ATF_TEST_CASE_HEAD()
272 set_md_var("descr", "Always-passing test case"); in ATF_TEST_CASE_HEAD()
297 set_md_var("require.config", "control_dir"); in ATF_TEST_CASE_HEAD()
302 if (pid == -1) in ATF_TEST_CASE_BODY()
351 ATF_REQUIRE(utils::getenv("HOME").get() != "fake-value"); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/kyua/cli/
H A Dconfig_test.cpp29 #include "cli/config.hpp"
31 #include <atf-c++.hpp>
33 #include "engine/config.hpp"
37 #include "utils/config/tree.ipp"
44 namespace config = utils::config;
80 fs::mkdir(fs::path("system-dir"), 0755); in mock_system_config()
81 utils::setenv("KYUA_CONFDIR", (fs::current_path() / "system-dir").str()); in mock_system_config()
82 create_mock_config("system-dir/kyua.conf", cookie); in mock_system_config()
93 fs::mkdir(fs::path("user-dir"), 0755); in mock_user_config()
94 fs::mkdir(fs::path("user-dir/.kyua"), 0755); in mock_user_config()
[all …]
H A Dmain_test.cpp37 #include <atf-c++.hpp>
57 namespace config = utils::config;
84 const config::tree& /* user_config */) in run()
122 const config::tree& /* user_config */) in run()
151 const config::tree& /* user_config */) in run()
153 ui->out("stdout message from subcommand"); in run()
154 ui->err("stderr message from subcommand"); in run()
172 fs::path("/home/fake/.kyua/logs/progname1.20110221-211030.log"), in ATF_TEST_CASE_BODY()
185 ATF_REQUIRE_EQ(fs::path("/a/b/c/progname2.20110221-211050.log"), in ATF_TEST_CASE_BODY()
198 ATF_REQUIRE_EQ(fs::path("/tmp/progname3.20110221-211500.log"), in ATF_TEST_CASE_BODY()
[all …]
H A Dcmd_config_test.cpp33 #include <atf-c++.hpp>
36 #include "engine/config.hpp"
40 #include "utils/config/tree.ipp"
44 namespace config = utils::config;
55 /// The user configuration is populated with a collection of test-suite
59 static config::tree
62 config::tree user_config = engine::default_config(); in fake_config()
63 user_config.set_string("architecture", "the-architecture"); in fake_config()
64 user_config.set_string("execenvs", "the-env"); in fake_config()
66 user_config.set_string("platform", "the-platform"); in fake_config()
[all …]
H A Dcmd_help_test.cpp35 #include <atf-c++.hpp>
38 #include "engine/config.hpp"
45 #include "utils/config/tree.ipp"
50 # include "config.h"
54 namespace config = utils::config;
82 const config::tree& /* user_config */) in run()
113 const config::tree& /* user_config */) in run()
216 expected.push_back(" --flag_a Flag A."); in ATF_TEST_CASE_BODY()
217 expected.push_back(" -c X, --lc=X Flag C."); in ATF_TEST_CASE_BODY()
245 "^See kyua-mock_simple\\(1\\) for more details.", ui.out_log())); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/soc/qcom/
H A Dqcom,rpmh-rsc.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/soc/qcom/qcom,rpmh-rsc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Bjorn Andersson <bjorn.andersson@linaro.org>
15 resources can be written to the Trigger Command Set (TCS) registers and
16 using a (addr, val) pair and triggered. Messages in the TCS are then sent in
25 A TCS may be triggered from Linux or triggered by the F/W after all the CPUs
26 have powered off to facilitate idle power saving. TCS could be classified as::
27 ACTIVE - Triggered by Linux
[all …]
H A Drpmh-rsc.txt2 ------------
6 can be written to the Trigger Command Set (TCS) registers and using a (addr,
7 val) pair and triggered. Messages in the TCS are then sent in sequence over an
16 A TCS may be triggered from Linux or triggered by the F/W after all the CPUs
17 have powered off to facilitate idle power saving. TCS could be classified as -
35 - compatible:
38 Definition: Should be "qcom,rpmh-rsc".
40 - reg:
42 Value type: <prop-encoded-array>
45 The tcs-offset specifies the start address of the
[all …]
/freebsd/contrib/atf/atf-c++/
H A Dmacros_test.cpp26 #include "atf-c++/macros.hpp"
38 #include <atf-c++.hpp>
40 #include "atf-c++/detail/fs.hpp"
41 #include "atf-c++/detail/process.hpp"
42 #include "atf-c++/detail/sanity.hpp"
43 #include "atf-c++/detail/test_helpers.hpp"
44 #include "atf-c++/detail/text.hpp"
45 #include "atf-c++/utils.hpp"
47 // ------------------------------------------------------------------------
49 // ------------------------------------------------------------------------
[all …]
H A Dtests.cpp26 #include "atf-c++/tests.hpp"
29 #include "config.h"
55 #include "atf-c/error.h"
56 #include "atf-c/tc.h"
57 #include "atf-c/utils.h"
60 #include "atf-c++/detail/application.hpp"
61 #include "atf-c++/detail/auto_array.hpp"
62 #include "atf-c++/detail/env.hpp"
63 #include "atf-c++/detail/exceptions.hpp"
64 #include "atf-c++/detail/fs.hpp"
[all …]
/freebsd/contrib/kyua/model/
H A Dmetadata_test.cpp33 #include <atf-c++.hpp>
71 architectures.insert("1-architecture"); in ATF_TEST_CASE_BODY()
72 architectures.insert("2-architecture"); in ATF_TEST_CASE_BODY()
75 platforms.insert("1-platform"); in ATF_TEST_CASE_BODY()
76 platforms.insert("2-platform"); in ATF_TEST_CASE_BODY()
79 custom["1-custom"] = "first"; in ATF_TEST_CASE_BODY()
80 custom["2-custom"] = "second"; in ATF_TEST_CASE_BODY()
83 configs.insert("1-config"); in ATF_TEST_CASE_BODY()
84 configs.insert("2-config"); in ATF_TEST_CASE_BODY()
87 files.insert(fs::path("1-file")); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/kyua/drivers/
H A Dlist_tests_test.cpp41 #include <atf-c++.hpp>
46 #include "engine/config.hpp"
53 #include "utils/config/tree.ipp"
59 namespace config = utils::config;
78 return fs::path(test_case->get_config_var("srcdir")) / in helpers()
122 ATF_REQUIRE(::mkdir(source_root.c_str(), 0755) != -1); in create_helpers()
123 ATF_REQUIRE(::mkdir((source_root / "dir").c_str(), 0755) != -1); in create_helpers()
125 ATF_REQUIRE(::mkdir(build_root.c_str(), 0755) != -1); in create_helpers()
126 ATF_REQUIRE(::mkdir((build_root / "dir").c_str(), 0755) != -1); in create_helpers()
129 (build_root / "dir/program").c_str()) != -1); in create_helpers()
[all …]
/freebsd/contrib/kyua/utils/process/
H A Disolation_test.cpp44 #include <atf-c++.hpp>
83 const process::status status = child->wait(); in fork_and_run()
98 fs::mkdir(fs::path("some-directory"), 0755); in check_clean_environment()
99 process::isolate_child(none, fs::path("some-directory")); in check_clean_environment()
114 if (utils::getenv_with_default("HOME", "") != "some-directory") { in check_clean_environment()
119 if (utils::getenv_with_default("TMPDIR", "") != "some-directory") { in check_clean_environment()
129 if (utils::getenv_with_default("LEAVE_ME_ALONE", "") != "kill-some-day") { in check_clean_environment()
175 if (::getgroups(1, groups) == -1) { in operator ()()
259 "-i", in check_no_terminal()
260 "-c", in check_no_terminal()
[all …]

1234