diff --git a/features/test/_global/global-checks.sh b/features/test/_global/global-checks.sh new file mode 100755 index 00000000..6c849f64 --- /dev/null +++ b/features/test/_global/global-checks.sh @@ -0,0 +1,7 @@ +#!/vin/bash + +check 'php-fpm is running' sh -c 'ps aux | grep php-fpm' +check 'mailpit is running' sh -c 'ps aux | grep mailpit' +check 'memcached is running' sh -c 'ps aux | grep memcached' +check 'mysql is running' sh -c 'ps aux | grep mysqld' +check 'nginx is running' sh -c 'ps aux | grep nginx' diff --git a/features/test/_global/php81.sh b/features/test/_global/php81.sh index 8838127c..74ac7f19 100755 --- a/features/test/_global/php81.sh +++ b/features/test/_global/php81.sh @@ -3,6 +3,6 @@ # shellcheck source=/dev/null source dev-container-features-test-lib -check "Built successfully" sh -c "exit 0" +source ./global-checks.sh reportResults diff --git a/features/test/_global/php82.sh b/features/test/_global/php82.sh index 8838127c..74ac7f19 100755 --- a/features/test/_global/php82.sh +++ b/features/test/_global/php82.sh @@ -3,6 +3,6 @@ # shellcheck source=/dev/null source dev-container-features-test-lib -check "Built successfully" sh -c "exit 0" +source ./global-checks.sh reportResults diff --git a/features/test/_global/php83.sh b/features/test/_global/php83.sh index 8838127c..74ac7f19 100755 --- a/features/test/_global/php83.sh +++ b/features/test/_global/php83.sh @@ -3,6 +3,6 @@ # shellcheck source=/dev/null source dev-container-features-test-lib -check "Built successfully" sh -c "exit 0" +source ./global-checks.sh reportResults