mesa/src/util/tests
Illia Abernikhin 0e47171abe utils: Move functions from debug.* to u_debug.*
Add unit tests for debug_get_bool_option and debug_get_num_option
Merge env_var_as_boolean and debug_get_bool_option and implement
 env_var_as_boolean with debug_get_bool_option in a stricter side.
Merge env_var_as_unsigned and debug_get_num_option and implement
 env_var_as_unsigned with debug_get_num_option in a stricter side.
Move debug_control, parse_debug_string, parse_enable_string,
 comma_separated_list_contains from debug.* to u_debug.*

Main changes:
os_get_option() is used instead of getenv() for env_var_as_boolean
 and env_var_as_unsigned;
also debug_get_bool_option() has logic like "true" always if not "false";
env_var_as_boolean() now uses different logic:
 if env variable is neither "true" nor "false" returns the default value,
 we left the second one; but if you want the behavior to be the same as in
 the old version of debug_get_bool_option() use dfault=true

Signed-off-by: Illia Abernikhin <illia.abernikhin@globallogic.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19336>
2022-11-02 07:25:39 +00:00
..
drirc_configdir
drirc_home
format util/format: Remove format desc null checks 2022-07-21 12:48:01 +00:00
hash_table
vma
bitset_test.cpp util/bitset: Support larger ranges in BITSET_TEST/CLEAR_RANGE 2022-05-10 11:23:14 -05:00
blob_test.cpp
cache_test.cpp util/disk_cache: Add new mesa-db cache type 2022-08-04 17:52:49 +00:00
dag_test.cpp
fast_idiv_by_const_test.cpp
fast_urem_by_const_test.cpp
half_float_test.cpp util: fix test on msvc 2022-05-03 19:33:20 +00:00
int_min_max.cpp
mesa-sha1_test.cpp util: Fix [-Wdeprecated-declarations] in mesa-sha1_test.cpp 2022-08-23 15:19:16 +00:00
process_test.c util: Fixes typo in test_util_get_process_exec_path 2022-05-26 23:27:50 +00:00
rb_tree_test.cpp
register_allocate_test.cpp
roundeven_test.cpp
set_test.cpp
sparse_array_test.cpp
string_buffer_test.cpp
timespec_test.cpp util: Add unittest for timespec_get 2022-06-09 17:23:34 +00:00
u_atomic_test.cpp util: Implement atomic operations consistently across compilers and testing for it 2022-10-13 13:51:18 +00:00
u_call_once_test.cpp util: Add util_call_once for optimize call to util_call_once_with_context out for hot path 2022-09-22 04:16:29 +00:00
u_debug_stack_test.cpp
u_debug_test.cpp utils: Move functions from debug.* to u_debug.* 2022-11-02 07:25:39 +00:00
u_printf_test.cpp util: Fixes memory leak in u_printf_test.cpp 2022-08-12 18:06:36 +00:00
u_qsort_test.cpp
vector_test.cpp
xmlconfig.cpp