Skip to content

Commit

Permalink
ls -la and df output
Browse files Browse the repository at this point in the history
  • Loading branch information
justinclift committed Oct 3, 2024
1 parent 808d5b6 commit a0e950b
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ test_run() {
sudo rm -rf postgres-data
fi

### FIXME:
echo "ls #1"
ls -la postgres-data
ps -ef f

# Create the PostgreSQL database using a specific version of PostgreSQL
docker compose -f "docker-compose-pg${VERSION}.yml" run --rm server create_db

Expand All @@ -54,17 +59,27 @@ test_run() {
# Shut down any containers that are still running
docker compose -f docker-compose-pgauto.yml down --remove-orphans

# Delete the upgraded PostgreSQL data directory
sudo rm -rf postgres-data

### FIXME:
echo "ls #2"
ls -la postgres-data
ps -ef f

##
## Tests for one shot mode
##
banner '-' "Testing 'one shot' automatic upgrade mode for PostgreSQL ${VERSION} to ${TARGET}"

# Delete the upgraded PostgreSQL data directory
sudo rm -rf postgres-data

# Create the PostgreSQL database using a specific version of PostgreSQL
docker compose -f "docker-compose-pg${VERSION}.yml" run --rm server create_db

### FIXME:
echo "ls #3"
ls -la postgres-data
ps -ef f

# Run the PostgreSQL container in one shot mode
TARGET_TAG="${TARGET}-${FLAVOR}" docker compose -f docker-compose-pgauto.yml run --rm -e PGAUTO_ONESHOT=yes postgres

Expand All @@ -80,6 +95,11 @@ test_run() {
# Shut down any containers that are still running
docker compose -f docker-compose-pgauto.yml down

### FIXME:
echo "ls #4"
ls -la postgres-data
ps -ef f

# If running on CI, delete the Postgres Docker image to avoid space problems
if [ -n "$CI" ]; then
docker rmi -f $(docker images postgres -q)
Expand Down

0 comments on commit a0e950b

Please sign in to comment.