Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1344d42

Browse files
committed
[skip travis] fix alt and suse tests
1 parent90b2935 commit1344d42

File tree

2 files changed

+10
-31
lines changed

2 files changed

+10
-31
lines changed

‎packaging/test/scripts/alt.sh‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ events {
2626
http {
2727
server {
2828
listen 80 default;
29-
root /var/www;
29+
root /app/www;
3030
}
3131
}
3232
EOF
@@ -38,6 +38,11 @@ EOF
3838
export PGDATA=/var/lib/pgsql/${PG_VERSION}/data
3939

4040
# install old packages
41+
echo"rpm https://repo.postgrespro.ru/pg_probackup/rpm/latest/altlinux-p7 x86_64 vanilla"> /etc/apt/sources.list.d/pg_probackup.list
42+
apt-get update
43+
apt-get install${PKG_NAME}${PKG_NAME}-debuginfo -y
44+
${PKG_NAME} --help
45+
${PKG_NAME} --version
4146

4247
# install new packages
4348
echo"127.0.0.1 repo.postgrespro.ru">> /etc/hosts
@@ -51,8 +56,9 @@ ${PKG_NAME} --version
5156

5257
exit 0
5358

59+
# TODO: run init, add-instance, backup and restore
5460
su postgres -c"/usr/pgsql-${PG_VERSION}/bin/pgbench --no-vacuum -t 1000 -c 1"
55-
su postgres -c"${PKG_NAME} backup --instance=node -b page -B /tmp/backup -D${PGDATA} --no-sync"
61+
su postgres -c"${PKG_NAME} backup --instance=node -b page -B /tmp/backup -D${PGDATA} --no-sync --compress"
5662
su postgres -c"${PKG_NAME} show --instance=node -B /tmp/backup -D${PGDATA}"
5763

5864
su postgres -c"/usr/pgsql-${PG_VERSION}/bin/pg_ctl stop -D${PGDATA}"

‎packaging/test/scripts/suse.sh‎

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ events {
7272
http {
7373
server {
7474
listen 80 default;
75-
root /var/www;
75+
root /app/www;
7676
}
7777
}
7878
EOF
@@ -131,34 +131,7 @@ sleep 5
131131

132132
echo"select count(*) from pgbench_accounts;"| su postgres -c"/usr/lib/postgresql${PG_TOG}/bin/psql"||exit 1
133133

134-
#else
135-
# echo "127.0.0.1 repo.postgrespro.ru" >> /etc/hosts
136-
# rpm -ivh http://repo.postgrespro.ru/pg_probackup/keys/pg_probackup-repo-${DISTRIB}.noarch.rpm
137-
# yum install -y ${PKG_NAME}
138-
# ${PKG_NAME} --help
139-
# su postgres -c "/usr/lib/postgresql${PG_TOG}/bin/initdb -k -D ${PGDATA}"
140-
# su postgres -c "${PKG_NAME} init -B /tmp/backup"
141-
# su postgres -c "${PKG_NAME} add-instance --instance=node -B /tmp/backup -D ${PGDATA}"
142-
# echo "wal_level=hot_standby" >> ${PGDATA}/postgresql.auto.conf
143-
# echo "archive_mode=on" >> ${PGDATA}/postgresql.auto.conf
144-
# echo "archive_command='${PKG_NAME} archive-push -B /tmp/backup --instance=node --wal-file-path %p --wal-file-name %f'" >> ${PGDATA}/postgresql.auto.conf
145-
# su postgres -c "/usr/lib/postgresql${PG_TOG}/bin/pg_ctl start -D ${PGDATA}"
146-
# sleep 5
147-
# su postgres -c "${PKG_NAME} backup --instance=node --compress -b full -B /tmp/backup -D ${PGDATA}"
148-
# su postgres -c "/usr/lib/postgresql${PG_TOG}/bin/pgbench --no-vacuum -i -s 10"
149-
# su postgres -c "${PKG_NAME} backup --instance=node -b page -B /tmp/backup -D ${PGDATA}"
150-
# su postgres -c "/usr/lib/postgresql${PG_TOG}/bin/pgbench --no-vacuum -t 1000 -c 1"
151-
# su postgres -c "${PKG_NAME} backup --instance=node -b page -B /tmp/backup -D ${PGDATA}"
152-
# su postgres -c "${PKG_NAME} show --instance=node -B /tmp/backup -D ${PGDATA}"
153-
# su postgres -c "/usr/lib/postgresql${PG_TOG}/bin/pg_ctl stop -D ${PGDATA}"
154-
# rm -rf ${PGDATA}
155-
# su postgres -c "${PKG_NAME} restore --instance=node -B /tmp/backup -D ${PGDATA}"
156-
# su postgres -c "/usr/lib/postgresql${PG_TOG}/bin/pg_ctl start -D ${PGDATA}"
157-
# sleep 10
158-
# echo "select count(*) from pgbench_accounts;" | su postgres -c "/usr/lib/postgresql${PG_TOG}/bin/psql" || exit 1
159-
#fi
160-
161-
exit 0# while PG12 is not working
134+
exit 0
162135

163136
# SRC PACKAGE
164137
cd /mnt

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp