Exemplo n.º 1
0
/**
* Execute command
*
* @param String $command Command to execure
*/
function command($command, $no_echo = false, $suppress = true)
{
    if ($no_echo == false) {
        output($command);
    }
    //	output(escapeshellcmd($command));
    if ($suppress) {
        $cmd_output = shell_exec($command . " 2>&1");
    } else {
        $cmd_output = liveExecuteCommand($command);
    }
    //	$cmd_output = shell_exec(escapeshellcmd($command)." 2>&1");
    output($cmd_output);
}
Exemplo n.º 2
0
function doUnitTest($site)
{
    echo '<br /><b>Unit tests on ' . $site . '.local.typo3.org</b><br />';
    my_flush();
    chdir('/var/www/' . $site . '.local.typo3.org');
    $phpUnitCommand = './bin/phpunit -c typo3_src/typo3/sysext/core/Build/UnitTests.xml';
    liveExecuteCommand($phpUnitCommand);
    my_flush();
}