Lines Matching refs:term
816 struct parse_events_term *term; in test__checkterms_simple() local
819 term = list_entry(terms->terms.next, struct parse_events_term, list); in test__checkterms_simple()
821 term->type_term == PARSE_EVENTS__TERM_TYPE_CONFIG); in test__checkterms_simple()
823 term->type_val == PARSE_EVENTS__TERM_TYPE_NUM); in test__checkterms_simple()
824 TEST_ASSERT_VAL("wrong val", term->val.num == 10); in test__checkterms_simple()
825 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "config")); in test__checkterms_simple()
828 term = list_entry(term->list.next, struct parse_events_term, list); in test__checkterms_simple()
830 term->type_term == PARSE_EVENTS__TERM_TYPE_CONFIG1); in test__checkterms_simple()
832 term->type_val == PARSE_EVENTS__TERM_TYPE_NUM); in test__checkterms_simple()
833 TEST_ASSERT_VAL("wrong val", term->val.num == 1); in test__checkterms_simple()
834 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "config1")); in test__checkterms_simple()
837 term = list_entry(term->list.next, struct parse_events_term, list); in test__checkterms_simple()
839 term->type_term == PARSE_EVENTS__TERM_TYPE_CONFIG2); in test__checkterms_simple()
841 term->type_val == PARSE_EVENTS__TERM_TYPE_NUM); in test__checkterms_simple()
842 TEST_ASSERT_VAL("wrong val", term->val.num == 3); in test__checkterms_simple()
843 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "config2")); 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_CONFIG3); in test__checkterms_simple()
850 term->type_val == PARSE_EVENTS__TERM_TYPE_NUM); in test__checkterms_simple()
851 TEST_ASSERT_VAL("wrong val", term->val.num == 4); in test__checkterms_simple()
852 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "config3")); in test__checkterms_simple()
855 term = list_entry(term->list.next, struct parse_events_term, list); in test__checkterms_simple()
857 term->type_term == PARSE_EVENTS__TERM_TYPE_CONFIG4); in test__checkterms_simple()
859 term->type_val == PARSE_EVENTS__TERM_TYPE_NUM); in test__checkterms_simple()
860 TEST_ASSERT_VAL("wrong val", term->val.num == 5); in test__checkterms_simple()
861 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "config4")); in test__checkterms_simple()
864 term = list_entry(term->list.next, struct parse_events_term, list); in test__checkterms_simple()
866 term->type_term == PARSE_EVENTS__TERM_TYPE_USER); in test__checkterms_simple()
868 term->type_val == PARSE_EVENTS__TERM_TYPE_NUM); in test__checkterms_simple()
869 TEST_ASSERT_VAL("wrong val", term->val.num == 1); in test__checkterms_simple()
870 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "umask")); in test__checkterms_simple()
879 term = list_entry(term->list.next, struct parse_events_term, list); in test__checkterms_simple()
881 term->type_term == PARSE_EVENTS__TERM_TYPE_RAW); in test__checkterms_simple()
883 term->type_val == PARSE_EVENTS__TERM_TYPE_STR); in test__checkterms_simple()
884 TEST_ASSERT_VAL("wrong val", !strcmp(term->val.str, "read")); in test__checkterms_simple()
885 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "raw")); in test__checkterms_simple()
893 term = list_entry(term->list.next, struct parse_events_term, list); in test__checkterms_simple()
895 term->type_term == PARSE_EVENTS__TERM_TYPE_RAW); in test__checkterms_simple()
897 term->type_val == PARSE_EVENTS__TERM_TYPE_STR); in test__checkterms_simple()
898 TEST_ASSERT_VAL("wrong val", !strcmp(term->val.str, "r0xead")); in test__checkterms_simple()
899 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "raw")); in test__checkterms_simple()