Arquivos
hhvm/hphp/test/fbmake_test_binary_wrapper.php
T
Paul Tarjan 91db25c8e1 use run_test_other.sh for 5 C++ test suites
This will make things less error prone. If we fork early in the makefile instead of sharing some infra then changes to the PHP-based test infra won't break c++ tests.

While I was there, I tried to fix the weird order that some tests had
the suite first and some had the set first. It got hard since D773384 hasn't
landed yet. When we do that, then I'll cleanup that stuff.
2013-04-22 14:43:47 -07:00

20 linhas
542 B
PHP
Arquivo Executável

#!/bin/env php
<?php
chdir(__DIR__.'/../../');
include_once __DIR__.'/fbmake_test_lib.php';
$cmd = "FBMAKE_BIN_ROOT=$argv[1] " .
"./hphp/tools/run_test_binary.sh '$argv[2]' '$argv[3]' '$argv[4]' ".
"2>/dev/null";
loop_tests($cmd, function ($line) {
if (preg_match('/^(Test[a-zA-Z]*)\.\.\.\.\.\.$/', $line, $m)) {
start($m[1]);
} else if (preg_match('/^Test[a-zA-Z]* (OK|\#\#\#\#\#\>\>\> FAILED)/',
$line,
$m)) {
finish($m[1] == 'OK' ? 'passed' : 'failed');
}
});