Skip to content

Commit

Permalink
test: refactor global checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed May 30, 2024
1 parent 7c56a83 commit 6832530
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions features/test/_global/global-checks.sh
Original file line number Diff line number Diff line change
@@ -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'
2 changes: 1 addition & 1 deletion features/test/_global/php81.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion features/test/_global/php82.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion features/test/_global/php83.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6832530

Please sign in to comment.