Lines Matching refs:term
778 struct parse_events_term *term; in test__checkterms_simple() local
781 term = list_entry(terms->terms.next, struct parse_events_term, list); in test__checkterms_simple()
783 term->type_term == PARSE_EVENTS__TERM_TYPE_CONFIG); in test__checkterms_simple()
785 term->type_val == PARSE_EVENTS__TERM_TYPE_NUM); in test__checkterms_simple()
786 TEST_ASSERT_VAL("wrong val", term->val.num == 10); in test__checkterms_simple()
787 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "config")); in test__checkterms_simple()
790 term = list_entry(term->list.next, struct parse_events_term, list); in test__checkterms_simple()
792 term->type_term == PARSE_EVENTS__TERM_TYPE_CONFIG1); in test__checkterms_simple()
794 term->type_val == PARSE_EVENTS__TERM_TYPE_NUM); in test__checkterms_simple()
795 TEST_ASSERT_VAL("wrong val", term->val.num == 1); in test__checkterms_simple()
796 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "config1")); in test__checkterms_simple()
799 term = list_entry(term->list.next, struct parse_events_term, list); in test__checkterms_simple()
801 term->type_term == PARSE_EVENTS__TERM_TYPE_CONFIG2); in test__checkterms_simple()
803 term->type_val == PARSE_EVENTS__TERM_TYPE_NUM); in test__checkterms_simple()
804 TEST_ASSERT_VAL("wrong val", term->val.num == 3); in test__checkterms_simple()
805 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "config2")); in test__checkterms_simple()
808 term = list_entry(term->list.next, struct parse_events_term, list); in test__checkterms_simple()
810 term->type_term == PARSE_EVENTS__TERM_TYPE_CONFIG3); in test__checkterms_simple()
812 term->type_val == PARSE_EVENTS__TERM_TYPE_NUM); in test__checkterms_simple()
813 TEST_ASSERT_VAL("wrong val", term->val.num == 4); in test__checkterms_simple()
814 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "config3")); in test__checkterms_simple()
817 term = list_entry(term->list.next, struct parse_events_term, list); in test__checkterms_simple()
819 term->type_term == PARSE_EVENTS__TERM_TYPE_USER); in test__checkterms_simple()
821 term->type_val == PARSE_EVENTS__TERM_TYPE_NUM); in test__checkterms_simple()
822 TEST_ASSERT_VAL("wrong val", term->val.num == 1); in test__checkterms_simple()
823 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "umask")); in test__checkterms_simple()
832 term = list_entry(term->list.next, struct parse_events_term, list); in test__checkterms_simple()
834 term->type_term == PARSE_EVENTS__TERM_TYPE_RAW); in test__checkterms_simple()
836 term->type_val == PARSE_EVENTS__TERM_TYPE_STR); in test__checkterms_simple()
837 TEST_ASSERT_VAL("wrong val", !strcmp(term->val.str, "read")); in test__checkterms_simple()
838 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "raw")); in test__checkterms_simple()
846 term = list_entry(term->list.next, struct parse_events_term, list); in test__checkterms_simple()
848 term->type_term == PARSE_EVENTS__TERM_TYPE_RAW); in test__checkterms_simple()
850 term->type_val == PARSE_EVENTS__TERM_TYPE_STR); in test__checkterms_simple()
851 TEST_ASSERT_VAL("wrong val", !strcmp(term->val.str, "r0xead")); in test__checkterms_simple()
852 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "raw")); in test__checkterms_simple()