Changeset View
Changeset View
Standalone View
Standalone View
arcanist/linter/TestsLinter.php
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | protected function parseLinterOutput($path, $err, $stdout, $stderr) { | ||||
*/ | */ | ||||
$pathinfo = pathinfo($path); | $pathinfo = pathinfo($path); | ||||
$testName = $pathinfo['filename']; | $testName = $pathinfo['filename']; | ||||
$fileName = $pathinfo['basename']; | $fileName = $pathinfo['basename']; | ||||
$messages = []; | $messages = []; | ||||
/* Search for mismatch, using the line pattern */ | /* Search for mismatch, using the line pattern */ | ||||
$pattern = '/'.$fileName.':BOOST_FIXTURE_TEST_SUITE\(([\w]+)/'; | $pattern = '/'.$fileName.':BOOST_(?:AUTO|FIXTURE)_TEST_SUITE\(([\w]+)/'; | ||||
$mismatch = preg_match($pattern, $stdout, $matches); | $mismatch = preg_match($pattern, $stdout, $matches); | ||||
if ($mismatch) { | if ($mismatch) { | ||||
/* | /* | ||||
* Expect a single result as we are testing against a single file. | * Expect a single result as we are testing against a single file. | ||||
* - $matches[0] contains the full mask | * - $matches[0] contains the full mask | ||||
* - $matches[1] contains the captured match | * - $matches[1] contains the captured match | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |