Home
last modified time | relevance | path

Searched refs:STRV_MAKE (Results 1 – 25 of 79) sorted by relevance

1234

/systemd-251/src/test/
Dtest-socket-bind.c16 char **candidates = STRV_MAKE("ncat", "nc", "netcat"); in find_netcat_executable()
141 …cket_bind(m, "socket_bind_test.service", netcat_path, "2000", STRV_MAKE("2000"), STRV_MAKE("any"))… in main()
142 …bind(m, "socket_bind_test.service", netcat_path, "2000", STRV_MAKE("ipv6:2001-2002"), STRV_MAKE("a… in main()
143 …ind(m, "socket_bind_test.service", netcat_path, "6666", STRV_MAKE("ipv4:6666", "6667"), STRV_MAKE(… in main()
144 …ind(m, "socket_bind_test.service", netcat_path, "6666", STRV_MAKE("6667", "6668", ""), STRV_MAKE("… in main()
146 …ocket_bind(m, "socket_bind_test.service", netcat_path, "8888", STRV_MAKE("any"), STRV_MAKE("any"))… in main()
147 …nd(m, "socket_bind_test.service", netcat_path, "8888", STRV_MAKE("ipv6:tcp:8888-8889"), STRV_MAKE(… in main()
148 …d(m, "socket_bind_test.service", netcat_path, "10000", STRV_MAKE("ipv6:udp:9999-10000"), STRV_MAKE in main()
149 …_bind(m, "socket_bind_test.service", netcat_path, "6666", STRV_MAKE("ipv4:tcp:6666"), STRV_MAKE("a… in main()
150 …_bind(m, "socket_bind_test.service", netcat_path, "6666", STRV_MAKE("ipv4:udp:6666"), STRV_MAKE("a… in main()
[all …]
Dtest-strv.c139 _cleanup_free_ char *s = strv_join(STRV_MAKE("1", "2", "3,3"), ","); in TEST()
169 _cleanup_free_ char *r = strv_join_full(STRV_MAKE("a", "a;b", "a:c"), ";", NULL, true); in TEST()
173 …_cleanup_free_ char *s = strv_join_full(STRV_MAKE("a", "a;b", "a;;c", ";", ";x"), ";", NULL, true); in TEST()
177 _cleanup_free_ char *t = strv_join_full(STRV_MAKE("a", "a;b", "a:c", ";"), ";", "=", true); in TEST()
225 …test_strv_unquote_one(" foo=bar \"waldo\" zzz ", STRV_MAKE("foo=bar", "waldo", "zzz")… in TEST()
229 test_strv_unquote_one(" x", STRV_MAKE("x")); in TEST()
230 test_strv_unquote_one("x ", STRV_MAKE("x")); in TEST()
231 test_strv_unquote_one(" x ", STRV_MAKE("x")); in TEST()
232 test_strv_unquote_one(" \"x\" ", STRV_MAKE("x")); in TEST()
233 test_strv_unquote_one(" 'x' ", STRV_MAKE("x")); in TEST()
[all …]
Dtest-path-util.c237 …assert_se(find_executable_full(test_file_name, NULL, STRV_MAKE("/doesnotexist", "/tmp", "/bin"), f… in TEST()
243 …assert_se(find_executable_full(test_file_name, NULL, STRV_MAKE("/doesnotexist", "/tmp", "/bin"), f… in TEST()
298 r = fexecve_or_execve(fd, t, STRV_MAKE(t, "--version"), STRV_MAKE(NULL)); in test_find_executable_exec_one()
645 test_path_find_first_component_one("a/b/c", false, STRV_MAKE("a", "b", "c"), 0); in TEST()
646 …test_path_find_first_component_one("././//.///aa/bbb//./ccc", false, STRV_MAKE("aa", "bbb", "ccc")… in TEST()
647 …test_path_find_first_component_one("././//.///aa/.../../bbb//./ccc/.", false, STRV_MAKE("aa", "...… in TEST()
648 …st_component_one("//./aaa///.//./.bbb/..///c.//d.dd///..eeee/.", false, STRV_MAKE("aaa", ".bbb"), … in TEST()
649 test_path_find_first_component_one("a/foo./b", false, STRV_MAKE("a", "foo.", "b"), 0); in TEST()
657 test_path_find_first_component_one("..", true, STRV_MAKE(".."), 0); in TEST()
658 test_path_find_first_component_one("/..", true, STRV_MAKE(".."), 0); in TEST()
[all …]
Dtest-specifier.c38 test_specifier_escape_strv_one(STRV_MAKE(NULL), STRV_MAKE(NULL)); in TEST()
39 test_specifier_escape_strv_one(STRV_MAKE(""), STRV_MAKE("")); in TEST()
40 test_specifier_escape_strv_one(STRV_MAKE("foo"), STRV_MAKE("foo")); in TEST()
41 test_specifier_escape_strv_one(STRV_MAKE("%"), STRV_MAKE("%%")); in TEST()
42 … test_specifier_escape_strv_one(STRV_MAKE("foo", "%", "foo%", "%foo", "foo%foo", "quux", "%%%"), in TEST()
43STRV_MAKE("foo", "%%", "foo%%", "%%foo", "foo%%foo", "quux", "%%%%%%")); in TEST()
Dtest-conf-files.c102 char **dirs = STRV_MAKE("/dir1", "/dir2", "/dir3"); in test_conf_files_insert_one()
112 assert_se(strv_equal(s, STRV_MAKE(foo2))); in test_conf_files_insert_one()
116 assert_se(strv_equal(s, STRV_MAKE(foo2))); in test_conf_files_insert_one()
120 assert_se(strv_equal(s, STRV_MAKE(foo2))); in test_conf_files_insert_one()
124 assert_se(strv_equal(s, STRV_MAKE(foo1))); in test_conf_files_insert_one()
128 assert_se(strv_equal(s, STRV_MAKE(bar2, foo1))); in test_conf_files_insert_one()
132 assert_se(strv_equal(s, STRV_MAKE(bar2, foo1, zzz3))); in test_conf_files_insert_one()
139 assert_se(strv_equal(s, STRV_MAKE(bar2, foo1, zzz3))); in test_conf_files_insert_one()
144 assert_se(strv_equal(s, STRV_MAKE(bar2, foo1, zzz3))); in test_conf_files_insert_one()
148 assert_se(strv_equal(s, STRV_MAKE(bar2, foo1, whatever, zzz3))); in test_conf_files_insert_one()
Dtest-libcrypt-util.c88 assert_se(test_password_many(STRV_MAKE(hashed), i) == true); in test_hash_password_full()
89 assert_se(test_password_many(STRV_MAKE(hashed), "foobar") == false); in test_hash_password_full()
90 … assert_se(test_password_many(STRV_MAKE(hashed, hashed, hashed), "foobar") == false); in test_hash_password_full()
91 … assert_se(test_password_many(STRV_MAKE("$y$j9T$dlCXwkX0GC5L6B8Gf.4PN/$VCyEH", in test_hash_password_full()
95 …assert_se(test_password_many(STRV_MAKE("$W$j9T$dlCXwkX0GC5L6B8Gf.4PN/$VCyEH", /* no such method ex… in test_hash_password_full()
99 … assert_se(test_password_many(STRV_MAKE("$y$j9T$dlCXwkX0GC5L6B8Gf.4PN/$VCyEH", in test_hash_password_full()
103 …assert_se(test_password_many(STRV_MAKE("$W$j9T$dlCXwkX0GC5L6B8Gf.4PN/$VCyEH", /* no such method ex… in test_hash_password_full()
Dtest-verbs.c32 test_dispatch_one(STRV_MAKE("command-not-found"), verbs, -EINVAL); in TEST()
35 test_dispatch_one(STRV_MAKE("show"), verbs, 0); in TEST()
38 test_dispatch_one(STRV_MAKE("copy-to", "foo"), verbs, -EINVAL); in TEST()
41 test_dispatch_one(STRV_MAKE("status", "foo", "bar"), verbs, 0); in TEST()
44 … test_dispatch_one(STRV_MAKE("copy-to", "foo", "bar", "baz", "quux", "qaax"), verbs, -EINVAL); in TEST()
56 test_dispatch_one(STRV_MAKE(NULL), verbs, -EINVAL); in TEST()
Dtest-cgroup-util.c369 … r = cg_get_keyed_attribute("cpu", "/init.scope", "no_such_file", STRV_MAKE("no_such_attr"), &val); in TEST()
383 …assert_se(cg_get_keyed_attribute("cpu", "/init.scope", "cpu.stat", STRV_MAKE("no_such_attr"), &val… in TEST()
384 …assert_se(cg_get_keyed_attribute_graceful("cpu", "/init.scope", "cpu.stat", STRV_MAKE("no_such_att… in TEST()
387 …assert_se(cg_get_keyed_attribute("cpu", "/init.scope", "cpu.stat", STRV_MAKE("usage_usec"), &val) … in TEST()
390 …assert_se(cg_get_keyed_attribute_graceful("cpu", "/init.scope", "cpu.stat", STRV_MAKE("usage_usec"… in TEST()
393 …assert_se(cg_get_keyed_attribute("cpu", "/init.scope", "cpu.stat", STRV_MAKE("usage_usec", "no_suc… in TEST()
394 …assert_se(cg_get_keyed_attribute_graceful("cpu", "/init.scope", "cpu.stat", STRV_MAKE("usage_usec"… in TEST()
398 …assert_se(cg_get_keyed_attribute("cpu", "/init.scope", "cpu.stat", STRV_MAKE("usage_usec", "usage_… in TEST()
399 …assert_se(cg_get_keyed_attribute_graceful("cpu", "/init.scope", "cpu.stat", STRV_MAKE("usage_usec"… in TEST()
404STRV_MAKE("usage_usec", "user_usec", "system_usec"), vals3) == 0); in TEST()
[all …]
Dtest-format-table.c157 TABLE_STRV, STRV_MAKE("three", "different", "lines"), in TEST()
158 TABLE_STRV, STRV_MAKE("two", "lines")) >= 0); in TEST()
199 TABLE_STRV, STRV_MAKE("a", "pair")) >= 0); in TEST()
202 TABLE_STRV, STRV_MAKE("short2"), in TEST()
203 TABLE_STRV, STRV_MAKE("a", "four", "line", "cell")) >= 0); in TEST()
269 TABLE_STRV_WRAPPED, STRV_MAKE("three", "different", "lines"), in TEST()
270 TABLE_STRV_WRAPPED, STRV_MAKE("two", "lines")) >= 0); in TEST()
306 TABLE_STRV_WRAPPED, STRV_MAKE("a", "pair")) >= 0); in TEST()
309 TABLE_STRV_WRAPPED, STRV_MAKE("short2"), in TEST()
310 TABLE_STRV_WRAPPED, STRV_MAKE("a", "eight", "line", "ćęłł", in TEST()
[all …]
Dtest-install-root.c60 …assert_se(unit_file_mask(LOOKUP_SCOPE_SYSTEM, 0, root, STRV_MAKE("a.service"), &changes, &n_change… in TEST()
76 …assert_se(unit_file_enable(LOOKUP_SCOPE_SYSTEM, 0, root, STRV_MAKE("a.service"), &changes, &n_chan… in TEST()
80 …assert_se(unit_file_unmask(LOOKUP_SCOPE_SYSTEM, 0, root, STRV_MAKE("a.service"), &changes, &n_chan… in TEST()
88 …assert_se(unit_file_enable(LOOKUP_SCOPE_SYSTEM, 0, root, STRV_MAKE("a.service"), &changes, &n_chan… in TEST()
103 …assert_se(unit_file_enable(LOOKUP_SCOPE_SYSTEM, 0, root, STRV_MAKE("a.service"), &changes, &n_chan… in TEST()
108 …assert_se(unit_file_disable(LOOKUP_SCOPE_SYSTEM, 0, root, STRV_MAKE("a.service"), &changes, &n_cha… in TEST()
122 …assert_se(unit_file_disable(LOOKUP_SCOPE_SYSTEM, 0, root, STRV_MAKE("a.service"), &changes, &n_cha… in TEST()
128 …assert_se(unit_file_enable(LOOKUP_SCOPE_SYSTEM, 0, root, STRV_MAKE("d.service"), &changes, &n_chan… in TEST()
144 …assert_se(unit_file_reenable(LOOKUP_SCOPE_SYSTEM, 0, root, STRV_MAKE("b.service"), &changes, &n_ch… in TEST()
186 …assert_se(unit_file_enable(LOOKUP_SCOPE_SYSTEM, 0, root, STRV_MAKE("f.service"), &changes, &n_chan… in TEST()
[all …]
Dtest-bpf-lsm.c97 …strict_filesystems_test.service", "/sys/kernel/tracing/printk_formats", STRV_MAKE("@common-block")… in main()
98 …strict_filesystems_test.service", "/sys/kernel/tracing/printk_formats", STRV_MAKE("tracefs", "@com… in main()
99 …strict_filesystems_test.service", "/sys/kernel/tracing/printk_formats", STRV_MAKE("tracefs", "@com… in main()
100 …m, "restrict_filesystems_test.service", "/sys/kernel/debug/sleep_time", STRV_MAKE("@common-block")… in main()
101 …m, "restrict_filesystems_test.service", "/sys/kernel/debug/sleep_time", STRV_MAKE("debugfs", "@com… in main()
102 …m, "restrict_filesystems_test.service", "/sys/kernel/debug/sleep_time", STRV_MAKE("~debugfs")) < 0… in main()
Dtest-conf-parser.c166 test_config_parse_strv_one("foo", STRV_MAKE("foo")); in TEST()
167 test_config_parse_strv_one("foo bar foo", STRV_MAKE("foo", "bar", "foo")); in TEST()
168 test_config_parse_strv_one("\"foo bar\" foo", STRV_MAKE("foo bar", "foo")); in TEST()
169 test_config_parse_strv_one("\xc3\x80", STRV_MAKE("\xc3\x80")); in TEST()
170 test_config_parse_strv_one("\xc3\x7f", STRV_MAKE("\xc3\x7f")); in TEST()
Dtest-escape.c210 test_quote_command_line_one(STRV_MAKE("true", "true"), in TEST()
212 test_quote_command_line_one(STRV_MAKE("true", "with a space"), in TEST()
214 test_quote_command_line_one(STRV_MAKE("true", "with a 'quote'"), in TEST()
216 test_quote_command_line_one(STRV_MAKE("true", "with a \"quote\""), in TEST()
218 test_quote_command_line_one(STRV_MAKE("true", "$dollar"), in TEST()
Dtest-path-lookup.c33 assert_se(strv_equal(lp_with_env.search_path, STRV_MAKE(systemd_unit_path))); in test_paths_one()
117 assert_se(strv_equal(gp_with_env, STRV_MAKE(systemd_generator_path))); in test_generator_binary_paths_one()
118 assert_se(strv_equal(env_gp_with_env, STRV_MAKE(systemd_env_generator_path))); in test_generator_binary_paths_one()
Dtest-string-util.c425 STRV_MAKE("test", in TEST()
440 STRV_MAKE("test"), in TEST()
756 assert_se(string_contains_word_strv("a b cc", NULL, STRV_MAKE("a", "b"), NULL)); in TEST()
758 assert_se(string_contains_word_strv("a b cc", NULL, STRV_MAKE("a", "b"), &w)); in TEST()
761 assert_se(!string_contains_word_strv("a b cc", NULL, STRV_MAKE("d"), &w)); in TEST()
764 assert_se(string_contains_word_strv("a b cc", NULL, STRV_MAKE("b", "a"), &w)); in TEST()
767 assert_se(string_contains_word_strv("b a b cc", NULL, STRV_MAKE("b", "a", "b"), &w)); in TEST()
770 assert_se(string_contains_word_strv("a b cc", NULL, STRV_MAKE("b", ""), &w)); in TEST()
773 assert_se(!string_contains_word_strv("a b cc", NULL, STRV_MAKE(""), &w)); in TEST()
776 assert_se(string_contains_word_strv("a b cc", " ", STRV_MAKE(""), &w)); in TEST()
Dtest-serialize.c96 char **strv = STRV_MAKE("a", "b", "foo foo", in TEST()
111 assert_se(serialize_strv(f, "strv4", STRV_MAKE(long_string)) == -EINVAL); in TEST()
144 assert_se(strv_equal(env, STRV_MAKE("A=1", "B=2", "FOO%%=a\177b\nc\td e"))); in TEST()
Dtest-env-util.c36 char **l = STRV_MAKE("ONE_OR_TWO=1", "THREE=3", "ONE_OR_TWO=2", "FOUR=4"); in TEST()
44 …char **l = STRV_MAKE("ONE_OR_TWO", "1", "THREE", "3", "ONE_OR_TWO", "2", "FOUR", "4", "FIVE", "5",… in TEST()
66 char **a = STRV_MAKE("FOO=BAR", "WALDO=WALDO", "WALDO=", "PIEP", "SCHLUMPF=SMURF", "EQ==="); in TEST()
67 char **b = STRV_MAKE("FOO=KKK", "FOO=", "PIEP=", "SCHLUMPF=SMURFF", "NANANANA=YES"); in TEST()
Dtest-install.c181 …r = unit_file_disable(LOOKUP_SCOPE_SYSTEM, 0, NULL, STRV_MAKE(basename(files2[0])), &changes, &n_c… in main()
208 …r = unit_file_disable(LOOKUP_SCOPE_SYSTEM, 0, NULL, STRV_MAKE(basename(files2[0])), &changes, &n_c… in main()
249 …r = unit_file_disable(LOOKUP_SCOPE_SYSTEM, 0, NULL, STRV_MAKE(basename(files2[0])), &changes, &n_c… in main()
/systemd-251/src/basic/
Dstrv.h182 #define STR_IN_SET(x, ...) strv_contains(STRV_MAKE(__VA_ARGS__), x)
186 _x && strv_contains(STRV_MAKE(__VA_ARGS__), _x); \
189 #define STRCASE_IN_SET(x, ...) strv_contains_case(STRV_MAKE(__VA_ARGS__), x)
193 _x && strv_contains_case(STRV_MAKE(__VA_ARGS__), _x); \
200 STRV_FOREACH(_i, STRV_MAKE(__VA_ARGS__)) { \
212 STRV_FOREACH(_i, STRV_MAKE(__VA_ARGS__)) { \
Ddef.h55 STRV_MAKE(CONF_PATHS_USR(n))
58 STRV_MAKE(CONF_PATHS(n))
/systemd-251/src/home/
Duser-record-util.c810 r = json_variant_filter(&priv, STRV_MAKE("hashedPassword")); in user_record_make_hashed_password()
843 r = json_variant_filter(&priv, STRV_MAKE("hashedPassword")); in user_record_set_hashed_password()
907 r = json_variant_filter(&w, STRV_MAKE("password")); in user_record_set_password()
969 r = json_variant_filter(&w, STRV_MAKE("tokenPin")); in user_record_set_token_pin()
1005 … r = json_variant_filter(&w, STRV_MAKE("pkcs11ProtectedAuthenticationPathPermitted")); in user_record_set_pkcs11_protected_authentication_path_permitted()
1012 r = json_variant_filter(&h->json, STRV_MAKE("secret")); in user_record_set_pkcs11_protected_authentication_path_permitted()
1036 r = json_variant_filter(&w, STRV_MAKE("fido2UserPresencePermitted")); in user_record_set_fido2_user_presence_permitted()
1043 r = json_variant_filter(&h->json, STRV_MAKE("secret")); in user_record_set_fido2_user_presence_permitted()
1064 r = json_variant_filter(&w, STRV_MAKE("fido2UserVerificationPermitted")); in user_record_set_fido2_user_verification_permitted()
1071 r = json_variant_filter(&h->json, STRV_MAKE("secret")); in user_record_set_fido2_user_verification_permitted()
[all …]
Dpam_systemd_home.c321 r = user_record_set_password(secret, STRV_MAKE(newp), true); in handle_generic_user_record_error()
348 r = user_record_set_password(secret, STRV_MAKE(newp), true); in handle_generic_user_record_error()
374 r = user_record_set_password(secret, STRV_MAKE(newp), true); in handle_generic_user_record_error()
394 r = user_record_set_token_pin(secret, STRV_MAKE(newp), false); in handle_generic_user_record_error()
456 r = user_record_set_token_pin(secret, STRV_MAKE(newp), false); in handle_generic_user_record_error()
477 r = user_record_set_token_pin(secret, STRV_MAKE(newp), false); in handle_generic_user_record_error()
498 r = user_record_set_token_pin(secret, STRV_MAKE(newp), false); in handle_generic_user_record_error()
599 … r = user_record_set_password(secret, STRV_MAKE(cached_password), true); in acquire_home()
1064 r = user_record_set_password(old_secret, STRV_MAKE(old_password), true); in pam_sm_chauthtok()
1075 r = user_record_set_password(new_secret, STRV_MAKE(new_password), true); in pam_sm_chauthtok()
/systemd-251/src/xdg-autostart-generator/
Dtest-xdg-autostart.c69 assert_se(strv_equal(service->only_show_in, STRV_MAKE("A", "B"))); in test_xdg_desktop_parse_one()
70 assert_se(strv_equal(service->not_show_in, STRV_MAKE("C", "D\\;", "E"))); in test_xdg_desktop_parse_one()
/systemd-251/src/libsystemd-network/
Dfuzz-dhcp6-client.c89 assert_se(sd_dhcp6_client_set_request_user_class(client, STRV_MAKE("u1", "u2", "u3")) >= 0); in LLVMFuzzerTestOneInput()
90 … assert_se(sd_dhcp6_client_set_request_vendor_class(client, STRV_MAKE("v1", "v2", "v3")) >= 0); in LLVMFuzzerTestOneInput()
/systemd-251/src/fuzz/
Dfuzz-json.c102 r = json_variant_set_field_strv(&v, "e", STRV_MAKE("e-1", "e-2", "e-3")); in LLVMFuzzerTestOneInput()
105 r = json_variant_filter(&v, STRV_MAKE("a", "b", "c", "d", "e")); in LLVMFuzzerTestOneInput()

1234