summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2012-08-23 02:27:36 -0400
committerPeter Eisentraut <peter_e@gmx.net>2012-08-23 02:29:21 -0400
commit7afa8bed65ea925208f128048f3a528a64e1319a (patch)
treeb622b5b87fb807a1b063d93e85636b6113812054
parent6e2e12c9477c3b48854433251ebca9709be3e87b (diff)
pg_upgrade: Run the created scripts in the test suite
Just to check that they actually work.
-rw-r--r--contrib/pg_upgrade/test.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/pg_upgrade/test.sh b/contrib/pg_upgrade/test.sh
index 299b7a5c477..31e30af7774 100644
--- a/contrib/pg_upgrade/test.sh
+++ b/contrib/pg_upgrade/test.sh
@@ -107,6 +107,7 @@ initdb
pg_upgrade -d "${PGDATA}.old" -D "${PGDATA}" -b "$oldbindir" -B "$bindir"
pg_ctl start -l "$logdir/postmaster2.log" -w
+sh ./analyze_new_cluster.sh
pg_dumpall >"$temp_root"/dump2.sql || pg_dumpall2_status=$?
pg_ctl -m fast stop
if [ -n "$pg_dumpall2_status" ]; then
@@ -114,6 +115,8 @@ if [ -n "$pg_dumpall2_status" ]; then
exit 1
fi
+sh ./delete_old_cluster.sh
+
if diff -q "$temp_root"/dump1.sql "$temp_root"/dump2.sql; then
echo PASSED
exit 0