MCPcopy Create free account
hub / github.com/apache/trafficserver / run_some

Method run_some

src/tscore/Regression.cc:137–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137int
138RegressionTest::run_some(int regression_level)
139{
140 if (current) {
141 if (current->status == REGRESSION_TEST_INPROGRESS) {
142 return REGRESSION_TEST_INPROGRESS;
143 }
144
145 if (current->status != REGRESSION_TEST_NOT_RUN) {
146 if (!current->printed) {
147 current->printed = true;
148 fprintf(stderr, " REGRESSION_RESULT %s:%*s %s\n", current->name, 40 - static_cast<int>(strlen(current->name)), " ",
149 regression_status_string(current->status));
150 }
151 current = current->next;
152 }
153 }
154
155 for (; current; current = current->next) {
156 if ((dfa.match(current->name) >= 0)) {
157 int res = start_test(current, regression_level);
158 if (res == REGRESSION_TEST_INPROGRESS) {
159 return res;
160 }
161 if (res == REGRESSION_TEST_FAILED) {
162 final_status = REGRESSION_TEST_FAILED;
163 }
164 }
165 }
166 return REGRESSION_TEST_INPROGRESS;
167}
168
169int
170RegressionTest::check_status(int regression_level)

Callers

nothing calls this directly

Calls 3

regression_status_stringFunction · 0.85
start_testFunction · 0.85
matchMethod · 0.45

Tested by

no test coverage detected