mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
pg_upgrade: Run the created scripts in the test suite
Just to check that they actually work.
This commit is contained in:
@ -107,6 +107,7 @@ initdb
|
|||||||
pg_upgrade -d "${PGDATA}.old" -D "${PGDATA}" -b "$oldbindir" -B "$bindir"
|
pg_upgrade -d "${PGDATA}.old" -D "${PGDATA}" -b "$oldbindir" -B "$bindir"
|
||||||
|
|
||||||
pg_ctl start -l "$logdir/postmaster2.log" -w
|
pg_ctl start -l "$logdir/postmaster2.log" -w
|
||||||
|
sh ./analyze_new_cluster.sh
|
||||||
pg_dumpall >"$temp_root"/dump2.sql || pg_dumpall2_status=$?
|
pg_dumpall >"$temp_root"/dump2.sql || pg_dumpall2_status=$?
|
||||||
pg_ctl -m fast stop
|
pg_ctl -m fast stop
|
||||||
if [ -n "$pg_dumpall2_status" ]; then
|
if [ -n "$pg_dumpall2_status" ]; then
|
||||||
@ -114,6 +115,8 @@ if [ -n "$pg_dumpall2_status" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sh ./delete_old_cluster.sh
|
||||||
|
|
||||||
if diff -q "$temp_root"/dump1.sql "$temp_root"/dump2.sql; then
|
if diff -q "$temp_root"/dump1.sql "$temp_root"/dump2.sql; then
|
||||||
echo PASSED
|
echo PASSED
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user