File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 1515: ${PGPORT=50432}
1616export PGPORT
1717
18+ testhost=` uname -o`
19+
1820temp_root=$PWD /tmp_check
1921
2022if [ " $1 " = ' --install' ]; then
@@ -107,15 +109,28 @@ initdb
107109pg_upgrade -d " ${PGDATA} .old" -D " ${PGDATA} " -b " $oldbindir " -B " $bindir "
108110
109111pg_ctl start -l " $logdir /postmaster2.log" -w
110- sh ./analyze_new_cluster.sh
112+
113+ if [ $testhost = Msys ] ; then
114+ cmd /c analyze_new_cluster.bat
115+ else
116+ sh ./analyze_new_cluster.sh
117+ fi
111118pg_dumpall > " $temp_root " /dump2.sql || pg_dumpall2_status=$?
112119pg_ctl -m fast stop
113120if [ -n " $pg_dumpall2_status " ]; then
114121 echo " pg_dumpall of post-upgrade database cluster failed"
115122 exit 1
116123fi
117124
118- sh ./delete_old_cluster.sh
125+ if [ $testhost = Msys ] ; then
126+ cmd /c delete_old_cluster.bat
127+ else
128+ sh ./delete_old_cluster.sh
129+ fi
130+
131+ if [ $testhost = Msys ] ; then
132+ dos2unix " $temp_root " /dump1.sql " $temp_root " /dump2.sql
133+ fi
119134
120135if diff -q " $temp_root " /dump1.sql " $temp_root " /dump2.sql; then
121136 echo PASSED
You can’t perform that action at this time.
0 commit comments