Skip to content

Commit 4c3ab3a

Browse files
committed
more
1 parent d35dee8 commit 4c3ab3a

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

test_package_installation/common/test_basics.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
#
66
# Note: need to run this as root
77
#
8-
# Usage: test_basics.sh <pg_major_version> <citus_full_version> <pg_binary_path>
8+
# Usage: test_basics.sh <expected_pg_major_version> <expected_citus_full_version> <pg_binary_path>
99
# Example: test_basics.sh 18 14.0.0 /usr/lib/postgresql/17/bin
1010

1111
set -euo pipefail
1212

1313
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
1414
echo "Error: some arguments are missing." >&2
15-
echo "Usage: $0 <pg_major_version> <citus_full_version> <pg_binary_path>" >&2
15+
echo "Usage: $0 <expected_pg_major_version> <expected_citus_full_version> <pg_binary_path>" >&2
1616
exit 1
1717
fi
1818

19-
PG_MAJOR_VERSION="$1"
20-
CITUS_FULL_VERSION="$2"
19+
EXPECTED_PG_MAJOR_VERSION="$1"
20+
EXPECTED_CITUS_FULL_VERSION="$2"
2121
PG_BIN="$3"
2222

2323
## constants and helpers
@@ -64,8 +64,8 @@ done
6464
## verify PG version
6565

6666
pg_version=$(run_psql_cmd "$FIRST_NODE_PORT" "SELECT version();")
67-
if [[ "$pg_version" != "PostgreSQL ${PG_MAJOR_VERSION}."* ]]; then
68-
echo "Error: PostgreSQL version verification failed. Expected version to start with 'PostgreSQL ${PG_MAJOR_VERSION}.', got: $pg_version" >&2
67+
if [[ "$pg_version" != "PostgreSQL ${EXPECTED_PG_MAJOR_VERSION}."* ]]; then
68+
echo "Error: PostgreSQL version verification failed. Expected version to start with 'PostgreSQL ${EXPECTED_PG_MAJOR_VERSION}.', got: $pg_version" >&2
6969
exit 1
7070
else
7171
echo "Verified PostgreSQL version: $pg_version"
@@ -74,8 +74,8 @@ fi
7474
## verify Citus extension version
7575

7676
citus_version=$(run_psql_cmd "$FIRST_NODE_PORT" "SHOW citus.version;")
77-
if [[ "$citus_version" != "${CITUS_FULL_VERSION}"* ]]; then
78-
echo "Error: Citus version verification failed. Expected version to start with '${CITUS_FULL_VERSION}', got: $citus_version" >&2
77+
if [[ "$citus_version" != "${EXPECTED_CITUS_FULL_VERSION}"* ]]; then
78+
echo "Error: Citus version verification failed. Expected version to start with '${EXPECTED_CITUS_FULL_VERSION}', got: $citus_version" >&2
7979
exit 1
8080
else
8181
echo "Verified Citus version: $citus_version"

test_package_installation/deb/install_package.sh

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

3-
# Installs PostgreSQL and Citus packages on Debian/Ubuntu, then runs
4-
# the cluster setup and verification test.
3+
# Installs PostgreSQL and Citus packages on a Debian/Ubuntu system.
54
#
65
# Note: need to run this as root
76
#

test_package_installation/rpm/install_package.sh

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

3-
# Installs PostgreSQL and Citus packages on EL/OL (RPM-based distros), then
4-
# runs the cluster setup and verification test.
3+
# Installs PostgreSQL and Citus packages on an EL/OL (RPM-based) system.
54
#
65
# Note: need to run this as root
76
#

0 commit comments

Comments
 (0)