summaryrefslogtreecommitdiffstats
path: root/Under-Testing
diff options
context:
space:
mode:
authorTriatmoko2011-11-17 00:22:13 +0100
committerTriatmoko2011-11-17 00:22:13 +0100
commitd85edc52219c83a76a18465a266caf40c58d0136 (patch)
tree8bd57d862d700d0820110ebe84a82e4fbe541edb /Under-Testing
parentnew port number for communication with GSMBox (diff)
downloadgsm-selftest-d85edc52219c83a76a18465a266caf40c58d0136.tar.gz
gsm-selftest-d85edc52219c83a76a18465a266caf40c58d0136.tar.xz
gsm-selftest-d85edc52219c83a76a18465a266caf40c58d0136.zip
copy flush handling from website folder
Diffstat (limited to 'Under-Testing')
-rw-r--r--Under-Testing/Website/mutexSmartTest.php29
-rwxr-xr-xUnder-Testing/Website/mutexTry.php15
2 files changed, 22 insertions, 22 deletions
diff --git a/Under-Testing/Website/mutexSmartTest.php b/Under-Testing/Website/mutexSmartTest.php
index d5fe146..0d535f9 100644
--- a/Under-Testing/Website/mutexSmartTest.php
+++ b/Under-Testing/Website/mutexSmartTest.php
@@ -11,6 +11,9 @@
<div>
<?php
+@apache_setenv('no-gzip',1);
+@ini_set('zlib.output_compression',0);
+@ini_set('implicit_flush',1);
//Connection stuff
include 'dbconnection.php';
@@ -114,7 +117,8 @@ if ($locking == '1') //1 means nobody is on the website
$UNISIPP = 0;
$NANOBTS1P = 0;
$NANOBTS2P = 0;
-
+ echo str_pad(' ',4096).'<br>'."\n";
+ ob_implicit_flush(1);
echo '<div id="main">
<table summary = "Results">
<thead>
@@ -126,11 +130,8 @@ if ($locking == '1') //1 means nobody is on the website
</tr>
</thead>
<tbody>';
- echo str_repeat("\n",7024);
- flush();
-
+ ob_implicit_flush(1);
}
-
elseif ($received == "TEST DONE\n")
{
if ($taskAmount == "ON")
@@ -138,15 +139,14 @@ if ($locking == '1') //1 means nobody is on the website
$taskAmount = "SMART TEST";
}
- echo '</tbody>
+ echo '</tbody>
</table>';
echo '</div>';
echo '<div id="sidebar">';
echo "<a class='pChart' href='networkResult.php?S=$SIP&RZ1=$GSMRZ1&RZ2=$GSMRZ2&RZ3=$GSMRZ3&US=$UNISIP&LL=$LANDLINE&LS=$LSFKS&EE=$GSMEE&EV=$GSMEV&ET=$GSMET&EO=$GSMEO&SP=$SIPP&SGP=$LANDLINEP&USP=$UNISIPP&NBP1=$NANOBTS1P&NBP2=$NANOBTS2P' data-pchart-alt='Picture3'>Picture 3</a></div>";
echo '<div id="footer"><font size ="3" face="Century Gothic" color="black">Number of tasks: '.$numberofTask.'<br> TEST SUCCESSFULLY FINISHED!</font></div>';
- echo str_repeat("\n",7024);
- flush();
- usleep(100);
+ ob_implicit_flush(1);
+ usleep(100);
fwrite($fp, 'DISCONNECT'); //tell the testing software it may close
break;
}
@@ -442,10 +442,8 @@ if ($locking == '1') //1 means nobody is on the website
{
$NANOBTS2P= 2;
}
-
}
- }//
-
+ }
}
if($callFrom == 'GSMEXT.O2' || $callTo == 'GSMEXT.O2')
{
@@ -898,8 +896,7 @@ if ($locking == '1') //1 means nobody is on the website
<td> ' . $dataForTable[4] . ' </td>
<td>' . $dataForTable[3] . '</td>
</tr>';
- echo str_repeat("\n",7024);
- flush();
+ ob_implicit_flush(1);
usleep(100);
//tell the software to proceed with the test and confirm receiving data
fwrite($fp, "CONTINUE");
@@ -913,12 +910,14 @@ if ($locking == '1') //1 means nobody is on the website
elseif($controller == '1')
{
echo 'Testing software was not started(didn\'t obtain the lock)! Check it!';
- echo 'Soulution : Check login information in DBClass.py';
+ echo 'Soulution : Check login information (username, password, db name) in DBClass.py';
+ echo ' Check manual start manually gsmselftest.py (./gsmselftest.py)';
}
else
{
echo 'Testing software didn\'t obtain the lock';
echo 'Soulution : Check login information in DBClass.py';
+ echo ' Check manual start manually gsmselftest.py (./gsmselftest.py)';
}
}
elseif($StartSoftware == '0') //0 means the software is still running in the background
diff --git a/Under-Testing/Website/mutexTry.php b/Under-Testing/Website/mutexTry.php
index 3bf32c8..20da2a4 100755
--- a/Under-Testing/Website/mutexTry.php
+++ b/Under-Testing/Website/mutexTry.php
@@ -8,6 +8,9 @@
<body onscroll="scrollEvent();" onload="loaderInit();">
<div>
<?php
+@apache_setenv('no-gzip',1);
+@ini_set('zlib.output_compression',0);
+@ini_set('implicit_flush',1);
//Connection stuff
include 'dbconnection.php'
@@ -105,7 +108,8 @@ if ($locking == '1') //1 means nobody is on the website
$UNISIPP = 2;
$NANOBTS1P = 2;
$NANOBTS2P = 2;
-
+ echo str_pad(' ',4096).'<br>'."\n";
+ ob_implicit_flush(1);
echo '<div id="main">
<table summary = "Results">
<thead>
@@ -141,9 +145,8 @@ if ($locking == '1') //1 means nobody is on the website
echo '<div id="sidebar">';
echo "<a class='pChart' href='networkResult.php?S=$SIP&RZ1=$GSMRZ1&RZ2=$GSMRZ2&RZ3=$GSMRZ3&US=$UNISIP&LL=$LANDLINE&LS=$LSFKS&EE=$GSMEE&EV=$GSMEV&ET=$GSMET&EO=$GSMEO&SP=$SIPP&SGP=$LANDLINEP&USP=$UNISIPP&NBP1=$NANOBTS1P&NBP2=$NANOBTS2P&TASKID=$taskNo' data-pchart-alt='Picture3'>Picture 3</a></div>";
echo '<div id="footer"><font size ="3" face="Century Gothic" color="black"> Number of tasks: '.$taskAmount.'<br> Number of tasks tried to add to the DB but had an error: '. $errorAdding .'<br> TEST SUCCESSFULLY FINISHED!</font></div>';
- echo str_repeat("\n",7024);
- flush();
- usleep(100);
+ ob_implicit_flush(1);
+ usleep(100);
fwrite($fp, 'DISCONNECT'); //tell the testing software it may close
break;
}
@@ -901,9 +904,7 @@ if ($locking == '1') //1 means nobody is on the website
<td> ' . $dataForTable[4] . ' </td>
<td>' . $dataForTable[3] . '</td>
</tr>';
-
- echo str_repeat("\n",7024);
- flush();
+ ob_implicit_flush(1);
usleep(100);
fwrite($fp, "CONTINUE"); //tell the software to proceed with the test and confirm receiving data
}