Author: glen Date: Fri Apr 5 14:08:51 2013 GMT Module: pld-ftp-admin Tag: HEAD ---- Log message: script to format qa reports better
---- Files affected: pld-ftp-admin/wwwbin: qa.php (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: pld-ftp-admin/wwwbin/qa.php diff -u /dev/null pld-ftp-admin/wwwbin/qa.php:1.1 --- /dev/null Fri Apr 5 16:08:51 2013 +++ pld-ftp-admin/wwwbin/qa.php Fri Apr 5 16:08:46 2013 @@ -0,0 +1,50 @@ +<html> +<head> +<link rel="Shortcut Icon" href="http://www.pld-linux.org/favicon.ico"/> + <title>PLD QA Reports</title> + <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="http://src.th.pld-linux.org/style.css"> +</head> +<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> +<script> +jQuery(function($) { + $('#q').on('change', function(e) { + var el = e.target; + var o = el.options; + var v = o[o.selectedIndex].value; + location.href = "?q=" + v; + }); +}); +</script> +<body> +<?php + +$report = isset($_GET['q']) ? basename($_GET['q']) : null; +$reports = array( + "main" => "Main deps x86_64", + "main-ready" => "Main ready deps x86_64", + "main-ready-test" => "Main+ready+test deps x86_64", + + "main-i686" => "Main deps i686", + "main-ready-i686" => "Main ready deps i686", + "main-ready-test-i686" => "Main+ready+test deps i686", + + "main-i486" => "Main deps i486", + "main-ready-i486" => "Main ready deps i486", + "main-ready-test-i486" => "Main+ready+test deps i486", +); + +echo "Select report:"; +echo "<select id=q name=q>\n"; +foreach ($reports as $q => $title) { + printf("<option value=%s %s>%s</option>\n", $q, $q == $report ? 'selected' :'', $title); +} +echo "</select>\n"; + +if (isset($reports[$report])) { + $file = "$report.txt"; + echo "<pre>", file_get_contents($file), "</pre>"; +} + +?> +</body> +</html> ================================================================ _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit