// Output of sub command called in scripts are not part of that :-( $proc = popen("/data/install.sh {$ver} {$srv}", 'r'); while (!feof($proc)) { echo fread($proc, 1024); @flush(); } echo '</pre>'; echo '<h2>Installation finished! Open your webbrowser and have fun!</h2>'; echo "</div>"; } else { echo "<div class='row'>\n"; echo "<div class='col-xs-12'>\n"; echo "<h1>Select version</h1>\n"; echo "</div>"; // run list $output = null; $output = null; exec("/data/list.sh", $output, $return); if (is_array($output)) { $tags = array_reverse($output); foreach ($tags as $tag) { $ver = cleanTag($tag); echo '<div class="col-xs-12 col-sm-6 col-md-3"><p><a class="btn btn-primary" href="index.php?ver=' . $ver . '&srv=' . $srv . '">Version ' . $ver . '</a></p></div>'; } } else { echo "Invalid list output"; } echo "</div>"; } echo "</div>"; echo "</body></html>";
} $bench->test('BtreeFileJournal', function() use (&$bfj) {insert1000($bfj);}); $bench->type('Clean priority lower then 400'); if($all) { $bench->test('SqliteJournal', function() use (&$sj) {cleanPriority($sj);}); $bench->test('FileJournal', function() use (&$fj) {cleanPriority($fj);}); } $bench->test('BtreeFileJournal', function() use (&$bfj) {cleanPriority($bfj);}); $bench->type('Clean one tag'); if($all) { $bench->test('SqliteJournal', function() use (&$sj) {cleanTag($sj);}); $bench->test('FileJournal', function() use (&$fj) {cleanTag($fj);}); } $bench->test('BtreeFileJournal', function() use (&$bfj) {cleanTag($bfj);}); $bench->type('Clean 3 tags'); if($all) { $bench->test('SqliteJournal', function() use (&$sj) {cleanTag2($sj);}); $bench->test('FileJournal', function() use (&$fj) {cleanTag2($fj);}); } $bench->test('BtreeFileJournal', function() use (&$bfj) {cleanTag2($bfj);}); $bench->type('Clean all other tags'); if($all) { $bench->test('SqliteJournal', function() use (&$sj) {cleanTag3($sj, 596);}); $bench->test('FileJournal', function() use (&$fj) {cleanTag3($fj, 596);}); } $bench->test('BtreeFileJournal', function() use (&$bfj) {cleanTag3($bfj, 596);});