projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e2e12c
)
pg_upgrade: Run the created scripts in the test suite
author
Peter Eisentraut
<peter_e@gmx.net>
Thu, 23 Aug 2012 06:27:36 +0000
(
02:27
-0400)
committer
Peter Eisentraut
<peter_e@gmx.net>
Thu, 23 Aug 2012 06:29:21 +0000
(
02:29
-0400)
Just to check that they actually work.
contrib/pg_upgrade/test.sh
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_upgrade/test.sh
b/contrib/pg_upgrade/test.sh
index 299b7a5c477003b47e5d6aaf080678037042f661..31e30af777449c563ffe51ed3b45e20d9ff24856 100644
(file)
--- 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