Commit 25d49f56 authored by Julien Veyssier's avatar Julien Veyssier
Browse files

improve view : show bash script log

parent 118d9e07
......@@ -7,11 +7,6 @@
</head>
<body>
<?php
// param en get ID
// montrer dependencies, update.Rout
// faire un tableau jquery comme dans dnabushmeat avec les 00check.log
// colorier en rouge ceux qui ont échoué
include("config.php");
if (isset($_GET["check"])){
......@@ -29,7 +24,15 @@ if (isset($_GET["check"])){
echo "Process is RUNNING<br/>";
}
// Afficher l'isntall du package
// Display bash script log
$bash_log = str_replace("check_".$package_to_test."_","",$dir).".log";
if (file_exists($all_results_dir.$bash_log)){
$color = "cyan";
echo "<tr style='background-color:$color' class='title'><td>Bash script log</td>";
echo "<td></td></tr>";
echo "<tr class='retractable' id='bashlog'><td colspan=3><textarea cols='240' rows='30'>".file_get_contents($all_results_dir.$bash_log)."</textarea></td></tr>";
}
// Display package install log
//echo $all_results_dir.$dir."/install_pkg.Rout";
if (file_exists($all_results_dir.$dir."/install_pkg.Rout")){
if (file_exists($all_results_dir.$dir."/install_pkg_ok")){
......@@ -47,10 +50,10 @@ if (isset($_GET["check"])){
}
echo "<tr style='background-color:$color' class='title'><td>$package_to_test INSTALL PROCESS</td>";
echo "<td>$status</td></tr>";
echo "<tr class='retractable' id='update'><td colspan=3><textarea cols='240' rows='30'>".file_get_contents($all_results_dir.$dir."/install_pkg.Rout")."</textarea></td></tr>";
echo "<tr class='retractable' id='install'><td colspan=3><textarea cols='240' rows='30'>".file_get_contents($all_results_dir.$dir."/install_pkg.Rout")."</textarea></td></tr>";
}
// Afficher l'update
// Display R packages update log
//echo $all_results_dir.$dir."/update.Rout";
if (file_exists($all_results_dir.$dir."/update.Rout")){
if (file_exists($all_results_dir.$dir."/update_ok")){
......@@ -70,7 +73,7 @@ if (isset($_GET["check"])){
echo "<tr class='retractable' id='update'><td colspan=3><textarea cols='200' rows='30'>".file_get_contents($all_results_dir.$dir."/update.Rout")."</textarea></td></tr>";
}
// INSTALL
// install logs of all packages depending on PACKAGE_TO_TEST
foreach(scandir($all_results_dir.$dir) as $elem){
// si c'est un package tar
......@@ -101,7 +104,8 @@ if (isset($_GET["check"])){
}
}
// CHECK
// check logs of all packages depending on PACKAGE_TO_TEST
foreach(scandir($all_results_dir.$dir) as $elem){
// si c'est un package tar
if (strpos($elem,".tar.gz") != False){
......@@ -134,7 +138,7 @@ if (isset($_GET["check"])){
echo "</table>";
}
else{
# on montre les tests dispos
# show all available checks
foreach(scandir($all_results_dir) as $elem){
// si c'est un dossier de check
if (strpos("a".$elem,"check_") != False){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment