Skip to content

Commit f4102dc

Browse files
author
Mohit Joshi
committed
Adjusted PG_TDE testcases to work with pg_tde code migrated to a separate repo
Renaming of existing tools done like pg_basebackup -> pg_tde_basebackup pg_rewind -> pg_tde_rewind
1 parent ffe3f57 commit f4102dc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+215
-128
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Set variable
4-
export INSTALL_DIR=$HOME/postgresql/bld_tde/install
4+
export INSTALL_DIR=$HOME/postgresql/bld_18.1.1/install
55
export PGDATA=$INSTALL_DIR/data
66
export LOG_FILE=$PGDATA/server.log
77

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Set variable
4-
INSTALL_DIR=$HOME/postgresql/bld_tde/install
4+
INSTALL_DIR=$HOME/postgresql/bld_18.1.1/install
55
PGDATA=$INSTALL_DIR/data
66
LOG_FILE=$PGDATA/server.log
77
wal_encrypt_flag=off
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Set variable
4-
export INSTALL_DIR=$HOME/postgresql/bld_tde/install
4+
export INSTALL_DIR=$HOME/postgresql/bld_18.1.1/install
55
export PGDATA=$INSTALL_DIR/data
66
export LOG_FILE=$PGDATA/server.log
77

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Set variable
4-
export INSTALL_DIR=$HOME/postgresql/bld_tde/install
4+
export INSTALL_DIR=$HOME/postgresql/bld_18.1.1/install
55
export PGDATA=$INSTALL_DIR/data
66
export LOG_FILE=$PGDATA/server.log
77
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Set variable
4-
INSTALL_DIR=$HOME/postgresql/bld_tde/install
4+
INSTALL_DIR=$HOME/postgresql/bld_18.1.1/install
55
PRIMARY_DATA=$INSTALL_DIR/primary_data
66
REPLICA_DATA=$INSTALL_DIR/replica_data
77
PRIMARY_LOGFILE=$PRIMARY_DATA/server.log
@@ -51,7 +51,7 @@ restart_server() {
5151

5252
start_replica() {
5353
# make sure no replica is running
54-
$INSTALL_DIR/bin/pg_basebackup -h localhost -U repuser --checkpoint=fast -D $REPLICA_DATA -R --slot=somename -C --port=5433
54+
$INSTALL_DIR/bin/pg_tde_basebackup -h localhost -U repuser --checkpoint=fast -D $REPLICA_DATA -R --slot=somename -C --port=5433
5555
sleep 5
5656
cat >> "$REPLICA_DATA/postgresql.conf" <<SQL
5757
port=5434
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
INSTALL_DIR=$HOME/postgresql/bld_tde/install
1+
INSTALL_DIR=$HOME/postgresql/bld_18.1.1/install
22
DATA_DIR=$INSTALL_DIR/data
33

44
initialize_server() {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
INSTALL_DIR=$HOME/postgresql/bld_tde/install
1+
INSTALL_DIR=$HOME/postgresql/bld_18.1.1/install
22
DATA_DIR=$INSTALL_DIR/data
33

44
initialize_server() {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Set variable
4-
export INSTALL_DIR=$HOME/postgresql/bld_tde/install
4+
export INSTALL_DIR=$HOME/postgresql/bld_18.1.1/install
55
export PGDATA=$INSTALL_DIR/data
66
export LOG_FILE=$PGDATA/server.log
77
export DB_NAME="sbtest"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Set variable
4-
export INSTALL_DIR=$HOME/postgresql/bld_tde/install
4+
export INSTALL_DIR=$HOME/postgresql/bld_18.1.1/install
55
export PGDATA=$INSTALL_DIR/data
66
export LOG_FILE=$PGDATA/server.log
77
export DB_NAME="sbtest"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
INSTALL_DIR=$HOME/postgresql/bld_tde/install
3+
INSTALL_DIR=$HOME/postgresql/bld_18.1.1/install
44
DATA_DIR=$INSTALL_DIR/data
55
TABLES=10
66

0 commit comments

Comments
 (0)