mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
Apply smoke test control option for frankenphp
This commit is contained in:
parent
b3d67b928a
commit
8c7d113c2f
@ -106,8 +106,19 @@ trait frankenphp
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[Stage]
|
#[Stage]
|
||||||
public function smokeTestFrankenphpForUnix(): void
|
public function smokeTestFrankenphpForUnix(PackageBuilder $builder): void
|
||||||
{
|
{
|
||||||
|
// analyse --no-smoke-test option
|
||||||
|
$no_smoke_test = $builder->getOption('no-smoke-test', false);
|
||||||
|
$option = match ($no_smoke_test) {
|
||||||
|
false => false, // default value, run all smoke tests
|
||||||
|
null => 'all', // --no-smoke-test without value, skip all smoke tests
|
||||||
|
default => parse_comma_list($no_smoke_test), // --no-smoke-test=frankenphp,...
|
||||||
|
};
|
||||||
|
if ($option === 'all' || (is_array($option) && in_array('frankenphp', $option, true))) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
InteractiveTerm::setMessage('Running FrankenPHP smoke test');
|
InteractiveTerm::setMessage('Running FrankenPHP smoke test');
|
||||||
$frankenphp = BUILD_BIN_PATH . '/frankenphp';
|
$frankenphp = BUILD_BIN_PATH . '/frankenphp';
|
||||||
if (!file_exists($frankenphp)) {
|
if (!file_exists($frankenphp)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user