Subversion Repositories vgwhois

Rev

Rev 57 | Rev 100 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 57 Rev 91
Line 204... Line 204...
204
	echo "[ !! ] Something has changed ! Please change rws_*() in the QA tool!\n";
204
	echo "[ !! ] Something has changed ! Please change rws_*() in the QA tool!\n";
205
}
205
}
206
 
206
 
207
# ---
207
# ---
208
 
208
 
209
echo "* Check if testcases require attention\n";
-
 
210
 
-
 
211
$loc_good = true;
-
 
212
 
-
 
213
# First check tesetcases in background, if necessary
-
 
214
 
-
 
215
$out = array();
-
 
216
exec(DIR . "/testcases/batch --mode b", $out, $ec);
-
 
217
 
-
 
218
if ($ec > 2) {
-
 
219
	$loc_good = false;
-
 
220
	echo "[ !! ] testcases/batch error code $ec\n";
-
 
221
	echo trim(implode("\n", $out))."\n";
-
 
222
}
-
 
223
 
-
 
224
# Now check if testcases require attention
-
 
225
 
-
 
226
$out = array();
-
 
227
exec(DIR . '/testcases/status_short', $out, $ec);
-
 
228
 
-
 
229
if ($ec != 0) {
-
 
230
	$loc_good = false;
-
 
231
	echo trim(implode("\n", $out))."\n";
-
 
232
}
-
 
233
 
-
 
234
# Status?
-
 
235
 
-
 
236
if ($loc_good) {
-
 
237
	echo "[ OK ]\n";
-
 
238
} else {
-
 
239
	$global_status=1;
-
 
240
}
-
 
241
 
-
 
242
# ---
-
 
243
 
-
 
244
echo "* Check the status of whois-ping\n";
209
echo "* Check the status of whois-ping\n";
245
 
210
 
246
$loc_good = true;
211
$loc_good = true;
247
 
212
 
248
# First ping the servers
213
# First ping the servers