Lines Matching refs:client

45 	pkgconf_client_t *client = test_client_new();  in test_emit_text_and_eval()  local
55 TEST_ASSERT_TRUE(pkgconf_bytecode_eval(client, &vars, &bc, &out, &saw_sysroot)); in test_emit_text_and_eval()
61 pkgconf_client_free(client); in test_emit_text_and_eval()
82 pkgconf_client_t *client = test_client_new(); in test_emit_var_and_eval() local
95 TEST_ASSERT_TRUE(pkgconf_bytecode_eval(client, &vars, &bc, &out, &saw_sysroot)); in test_emit_var_and_eval()
101 pkgconf_client_free(client); in test_emit_var_and_eval()
107 pkgconf_client_t *client = test_client_new(); in test_emit_sysroot_and_eval() local
113 pkgconf_client_set_sysroot_dir(client, "/sysroot"); in test_emit_sysroot_and_eval()
120 TEST_ASSERT_TRUE(pkgconf_bytecode_eval(client, &vars, &bc, &out, &saw_sysroot)); in test_emit_sysroot_and_eval()
127 pkgconf_client_free(client); in test_emit_sysroot_and_eval()
133 pkgconf_client_t *client = test_client_new(); in test_eval_null_args() local
140 TEST_ASSERT_FALSE(pkgconf_bytecode_eval(client, &vars, NULL, &out, NULL)); in test_eval_null_args()
141 TEST_ASSERT_FALSE(pkgconf_bytecode_eval(client, &vars, &bc, NULL, NULL)); in test_eval_null_args()
145 pkgconf_client_free(client); in test_eval_null_args()
162 pkgconf_client_t *client = test_client_new(); in test_dollar_escape() local
167 char *out = pkgconf_bytecode_eval_str(client, &vars, "price: $$5 and $${notavar}", &saw_sysroot); in test_dollar_escape()
173 pkgconf_client_free(client); in test_dollar_escape()
179 pkgconf_client_t *client = test_client_new(); in test_malformed_unclosed() local
184 char *out = pkgconf_bytecode_eval_str(client, &vars, "broken ${unclosed", &saw_sysroot); in test_malformed_unclosed()
190 pkgconf_client_free(client); in test_malformed_unclosed()
196 pkgconf_client_t *client = test_client_new(); in test_empty_braces() local
201 char *out = pkgconf_bytecode_eval_str(client, &vars, "empty ${} here", &saw_sysroot); in test_empty_braces()
207 pkgconf_client_free(client); in test_empty_braces()
213 pkgconf_client_t *client = test_client_new(); in test_compile_time_sysroot() local
217 pkgconf_client_set_sysroot_dir(client, "/sysroot"); in test_compile_time_sysroot()
220 char *out = pkgconf_bytecode_eval_str(client, &vars, "${pc_sysrootdir}/usr/lib", &saw_sysroot); in test_compile_time_sysroot()
227 pkgconf_client_free(client); in test_compile_time_sysroot()
233 pkgconf_client_t *client = test_client_new(); in test_sysroot_dot_disables() local
238 pkgconf_client_set_sysroot_dir(client, "."); in test_sysroot_dot_disables()
240 char *out = pkgconf_bytecode_eval_str(client, &vars, "${pc_sysrootdir}/usr/lib", &saw_sysroot); in test_sysroot_dot_disables()
246 pkgconf_client_free(client); in test_sysroot_dot_disables()
252 pkgconf_client_t *client = test_client_new(); in test_sysroot_root_disables() local
257 pkgconf_client_set_sysroot_dir(client, "/"); in test_sysroot_root_disables()
259 char *out = pkgconf_bytecode_eval_str(client, &vars, "${pc_sysrootdir}/usr/lib", &saw_sysroot); in test_sysroot_root_disables()
265 pkgconf_client_free(client); in test_sysroot_root_disables()
271 pkgconf_client_t *client = test_client_new(); in test_sysroot_trailing_slash_trimmed() local
276 pkgconf_client_set_sysroot_dir(client, "/sysroot///"); in test_sysroot_trailing_slash_trimmed()
278 char *out = pkgconf_bytecode_eval_str(client, &vars, "${pc_sysrootdir}/usr/lib", &saw_sysroot); in test_sysroot_trailing_slash_trimmed()
285 pkgconf_client_free(client); in test_sysroot_trailing_slash_trimmed()
291 pkgconf_client_t *client = test_client_new(); in test_sysroot_normalizes_to_root_disables() local
297 pkgconf_client_set_sysroot_dir(client, "//"); in test_sysroot_normalizes_to_root_disables()
299 char *out = pkgconf_bytecode_eval_str(client, &vars, "${pc_sysrootdir}/usr/lib", &saw_sysroot); in test_sysroot_normalizes_to_root_disables()
305 pkgconf_client_free(client); in test_sysroot_normalizes_to_root_disables()
311 pkgconf_client_t *client = test_client_new(); in test_circular_reference() local
318 char *out = pkgconf_bytecode_eval_str(client, &vars, "${loop}", &saw_sysroot); in test_circular_reference()
326 pkgconf_client_free(client); in test_circular_reference()
361 pkgconf_client_t *client = test_client_new(); in test_rewrite_selfrefs() local
378 TEST_ASSERT_TRUE(pkgconf_bytecode_eval(client, &vars, &bc, &out, &saw_sysroot)); in test_rewrite_selfrefs()
386 pkgconf_client_free(client); in test_rewrite_selfrefs()
392 pkgconf_client_t *client = test_client_new(); in test_rewrite_selfrefs_no_match() local
412 TEST_ASSERT_TRUE(pkgconf_bytecode_eval(client, &vars, &bc, &out, &saw_sysroot)); in test_rewrite_selfrefs_no_match()
420 pkgconf_client_free(client); in test_rewrite_selfrefs_no_match()
426 pkgconf_client_t *client = test_client_new(); in test_eval_plain_text() local
431 char *out = pkgconf_bytecode_eval_str(client, &vars, "plain text value", &saw_sysroot); in test_eval_plain_text()
439 pkgconf_client_free(client); in test_eval_plain_text()
445 pkgconf_client_t *client = test_client_new(); in test_eval_variable_substitution() local
451 char *out = pkgconf_bytecode_eval_str(client, &vars, "${prefix}/lib", &saw_sysroot); in test_eval_variable_substitution()
459 pkgconf_client_free(client); in test_eval_variable_substitution()
465 pkgconf_client_t *client = test_client_new(); in test_eval_nested_variables() local
473 char *out = pkgconf_bytecode_eval_str(client, &vars, "-L${libdir}", &saw_sysroot); in test_eval_nested_variables()
480 pkgconf_client_free(client); in test_eval_nested_variables()
486 pkgconf_client_t *client = test_client_new(); in test_eval_undefined_variable() local
491 char *out = pkgconf_bytecode_eval_str(client, &vars, "prefix=${nonexistent}/end", &saw_sysroot); in test_eval_undefined_variable()
498 pkgconf_client_free(client); in test_eval_undefined_variable()
504 pkgconf_client_t *client = test_client_new(); in test_eval_multiple_variables() local
511 …char *out = pkgconf_bytecode_eval_str(client, &vars, "-I${prefix}/include -L${exec_prefix}/lib", &… in test_eval_multiple_variables()
518 pkgconf_client_free(client); in test_eval_multiple_variables()
524 pkgconf_client_t *client = test_client_new(); in test_eval_empty_input() local
528 char *out = pkgconf_bytecode_eval_str(client, &vars, "", &saw_sysroot); in test_eval_empty_input()
538 pkgconf_client_free(client); in test_eval_empty_input()
544 pkgconf_client_t *client = test_client_new(); in test_eval_sysroot_detection() local
548 pkgconf_client_set_sysroot_dir(client, "/sysroot"); in test_eval_sysroot_detection()
553 char *out = pkgconf_bytecode_eval_str(client, &vars, "${includedir}", &saw_sysroot); in test_eval_sysroot_detection()
560 pkgconf_client_free(client); in test_eval_sysroot_detection()
579 pkgconf_client_t *client = test_client_new(); in test_compile_eval_roundtrip() local
592 char *out = pkgconf_variable_eval_str(client, &vars, v, &saw_sysroot); in test_compile_eval_roundtrip()
598 pkgconf_client_free(client); in test_compile_eval_roundtrip()