Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run test configuration with combination. #50

Merged
merged 2 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions teeio-validator/include/ide_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,17 +365,19 @@ typedef struct {

typedef struct _ide_run_test_case_result_t ide_run_test_case_result_t;
struct _ide_run_test_case_result_t {
ide_run_test_case_result_t* next;

char class[MAX_NAME_LENGTH];
char name[MAX_NAME_LENGTH];
IDE_COMMON_TEST_CASE_RESULT case_result;
IDE_COMMON_TEST_CONFIG_RESULT config_result;
ide_run_test_case_result_t* next;
};

typedef struct _ide_run_test_group_result_t ide_run_test_group_result_t;
struct _ide_run_test_group_result_t {
char name[MAX_NAME_LENGTH];
ide_run_test_group_result_t* next;

char name[MAX_NAME_LENGTH];
ide_run_test_case_result_t* case_result;
};

Expand All @@ -388,18 +390,26 @@ typedef bool(*ide_common_test_config_support_func_t) (void *test_context);
// test config support function which is to check if some funciton is successfully enabled/disabled
typedef bool(*ide_common_test_config_check_func_t) (void *test_context);

typedef struct _ide_run_test_config_item_t ide_run_test_config_item_t;
struct _ide_run_test_config_item_t {
ide_run_test_config_item_t *next;

IDE_TEST_CONFIGURATION_TYPE type;

ide_common_test_config_enable_func_t enable_func;
ide_common_test_config_disable_func_t disable_func;
ide_common_test_config_support_func_t support_func;
ide_common_test_config_check_func_t check_func;
};

typedef struct _ide_run_test_config ide_run_test_config_t;
struct _ide_run_test_config {
ide_run_test_config_t *next;
char name[MAX_NAME_LENGTH];
void *test_context;

ide_run_test_group_result_t* group_result;

ide_common_test_config_enable_func_t enable_func;
ide_common_test_config_disable_func_t disable_func;
ide_common_test_config_support_func_t support_func;
ide_common_test_config_check_func_t check_func;
ide_run_test_config_item_t* config_item;
};

typedef struct {
Expand Down
Loading