-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.php
30 lines (22 loc) · 816 Bytes
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* Use this script to help test the network environment prior to a PCF installation
*
**/
require_once('./lib/common.php');
$oFormatter = new TextFormatter();
if(!$oSettingsChecks->failed()) {
$oRoutingSuite = new RoutingTestSuite("Routing tests");
foreach($aDomains as $oDomain) {
$oRoutingSuite->test(new RoutingTest("HTTP ".$oDomain->getName()." test", "http://toto.".$oDomain->getBase().'/json'));
}
foreach($aDomains as $oDomain) {
$oRoutingSuite->test(new RoutingTest("HTTPS ".$oDomain->getName()." test", "https://tata.".$oDomain->getBase().'/json'));
}
}
include('./lib/index-txt.tpl');
if($oSettingsChecks->failed() || $oRoutingSuite->failed()) {
echo "*** Some tests failed. Check the log **\n";
exit(1);
}
echo "*** All test passed ***\n";