Test API internal functions
include/test/test_api_internal.h View source View on GitHubMacros
Section titled “Macros”TEST_INTENSITY_LOG
Section titled “TEST_INTENSITY_LOG”#define TEST_INTENSITY_LOG(min, def, max, unit_str) source 1D piecewise-log
Expansion
#define TEST_INTENSITY_LOG(min, def, max, unit_str) \
.flags = TEST_FLAG_HONORS_INTENSITY, .intensity_desc = { \
.curve = SCALE_PIECEWISE_LOG, \
.min_val = (min), \
.def_val = (def), \
.max_val = (max), \
.unit = (unit_str), \
} TEST_INTENSITY_LINEAR
Section titled “TEST_INTENSITY_LINEAR”#define TEST_INTENSITY_LINEAR(min, def, max, unit_str) source Linear scaling
Expansion
#define TEST_INTENSITY_LINEAR(min, def, max, unit_str) \
.flags = TEST_FLAG_HONORS_INTENSITY, .intensity_desc = { \
.curve = SCALE_PIECEWISE_LINEAR, \
.min_val = (min), \
.def_val = (def), \
.max_val = (max), \
.unit = (unit_str), \
} TEST_INTENSITY_CORES
Section titled “TEST_INTENSITY_CORES”#define TEST_INTENSITY_CORES(min_per_core, def_per_core, max_per_core, \ unit_str) source Core-scaled thread counts (threads = base * core_count)
Expansion
#define TEST_INTENSITY_CORES(min_per_core, def_per_core, max_per_core, \
unit_str) \
.flags = TEST_FLAG_HONORS_INTENSITY, .intensity_desc = { \
.curve = SCALE_CORE_MULTIPLIER, \
.min_val = (min_per_core), \
.def_val = (def_per_core), \
.max_val = (max_per_core), \
.unit = (unit_str), \
} TEST_INTENSITY_CUSTOM_PRINT
Section titled “TEST_INTENSITY_CUSTOM_PRINT”#define TEST_INTENSITY_CUSTOM_PRINT(scale, min, def, max, unit_str, print_fn) source set scale with min and max
Expansion
#define TEST_INTENSITY_CUSTOM_PRINT(scale, min, def, max, unit_str, print_fn) \
.flags = TEST_FLAG_HONORS_INTENSITY, .intensity_desc = { \
.curve = scale, \
.min_val = (min), \
.def_val = (def), \
.max_val = (max), \
.unit = (unit_str), \
.custom_print = (print_fn), \
} TEST_INTENSITY_CUSTOM
Section titled “TEST_INTENSITY_CUSTOM”#define TEST_INTENSITY_CUSTOM(scale_fn, print_fn) source Entirely custom
Expansion
#define TEST_INTENSITY_CUSTOM(scale_fn, print_fn) \
.flags = TEST_FLAG_HONORS_INTENSITY, .intensity_desc = { \
.curve = SCALE_CUSTOM, \
.custom_scale = (scale_fn), \
.custom_print = (print_fn), \
} TEST_DEFINE_SMOKE
Section titled “TEST_DEFINE_SMOKE”#define TEST_DEFINE_SMOKE(grp, id, ...) source Expansion
#define TEST_DEFINE_SMOKE(grp, id, ...) \
TEST_DEFINE(grp, id, .tier = TEST_TIER_SMOKE, ##__VA_ARGS__) TEST_DEFINE_UNIT
Section titled “TEST_DEFINE_UNIT”#define TEST_DEFINE_UNIT(grp, id, ...) source Expansion
#define TEST_DEFINE_UNIT(grp, id, ...) \
TEST_DEFINE(grp, id, .tier = TEST_TIER_UNIT, ##__VA_ARGS__) TEST_DEFINE_INTEGRATION
Section titled “TEST_DEFINE_INTEGRATION”#define TEST_DEFINE_INTEGRATION(grp, id, ...) source Expansion
#define TEST_DEFINE_INTEGRATION(grp, id, ...) \
TEST_DEFINE(grp, id, .tier = TEST_TIER_INTEGRATION, ##__VA_ARGS__) TEST_DEFINE_SMOKE
Section titled “TEST_DEFINE_SMOKE”#define TEST_DEFINE_SMOKE(grp, id, ...) source Expansion
#define TEST_DEFINE_SMOKE(grp, id, ...) \
TEST_DEFINE(grp, id, .tier = TEST_TIER_SMOKE, ##__VA_ARGS__) TEST_DEFINE_UNIT
Section titled “TEST_DEFINE_UNIT”#define TEST_DEFINE_UNIT(grp, id, ...) source Expansion
#define TEST_DEFINE_UNIT(grp, id, ...) \
TEST_DEFINE(grp, id, .tier = TEST_TIER_UNIT, ##__VA_ARGS__) TEST_DEFINE_INTEGRATION
Section titled “TEST_DEFINE_INTEGRATION”#define TEST_DEFINE_INTEGRATION(grp, id, ...) source Expansion
#define TEST_DEFINE_INTEGRATION(grp, id, ...) \
TEST_DEFINE(grp, id, .tier = TEST_TIER_INTEGRATION, ##__VA_ARGS__) __test_group_TEST_GROUP_NONE
Section titled “__test_group_TEST_GROUP_NONE”#define __test_group_TEST_GROUP_NONE test_group_orphan_parent source Goofy macros needed for the EXTERN macro, TODO: do something about this HACK:
__test_group_none
Section titled “__test_group_none”#define __test_group_none test_group_orphan_parent source __test_group_orphan
Section titled “__test_group_orphan”#define __test_group_orphan test_group_orphan_parent source __test_group_test_group_orphan_parent
Section titled “__test_group_test_group_orphan_parent”#define __test_group_test_group_orphan_parent test_group_orphan_parent source