Lines Matching refs:test
107 void run_tests(struct test_case* test, int verbose, int silent) in run_tests() argument
119 for ( ; test->string ; test++) { in run_tests()
121 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string); in run_tests()
124 if (test->pattern) { in run_tests()
128 ptr = test->pattern; in run_tests()
132 machine = regex_compile(test->pattern, ptr - test->pattern, test->flags, &error); in run_tests()
136 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string); in run_tests()
142 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string); in run_tests()
147 else if (test->flags != 0) { in run_tests()
149 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string); in run_tests()
154 ptr = test->string; in run_tests()
162 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string); in run_tests()
167 regex_continue_match_debug(match, test->string, ptr - test->string); in run_tests()
171 if (begin != test->begin || end != test->end || id != test->id) { in run_tests()
173 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string); in run_tests()
174 …A: begin: %d != %d || end: %d != %d || id: %d != %d\n", test->begin, begin, test->end, end, test->… in run_tests()
177 if (test->finished != -1 && test->finished != !!finished) { in run_tests()
179 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string); in run_tests()
186 regex_continue_match(match, test->string, ptr - test->string); in run_tests()
191 if (begin != test->begin || end != test->end || id != test->id) { in run_tests()
193 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string); in run_tests()
194 …B: begin: %d != %d || end: %d != %d || id: %d != %d\n", test->begin, begin, test->end, end, test->… in run_tests()
197 if (test->finished != -1 && test->finished != !!finished) { in run_tests()
199 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string); in run_tests()