forked from greenplum-db/diskquota-archive
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to run upgrade test in Docker container
Run script concourse/scripts/upgrade_test_diskquota.sh in Docker to run upgrade test of diskquota. Before starting upgrade test new script build version 1.0.3 (from tag 1.0.3_arenadata2). Check of minor in version of diskquota was removed from diskquota worker process, because we use symlinks from ealier versions (since 2.0) diskquota to the latest version (commit 472eb06).
- Loading branch information
Showing
4 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
# Install cmake | ||
cd bin_cmake/ | ||
./cmake-3.20.0-linux-x86_64.sh --skip-license --exclude-subdir | ||
export PATH="/home/gpadmin/bin_cmake/bin:$PATH" | ||
cmake --version | ||
cd .. | ||
|
||
# Build and start GPDB | ||
source gpdb_src/concourse/scripts/common.bash | ||
install_and_configure_gpdb | ||
gpdb_src/concourse/scripts/setup_gpadmin_user.bash | ||
make_cluster | ||
source /usr/local/greenplum-db-devel/greenplum_path.sh; | ||
source gpdb_src/gpAux/gpdemo/gpdemo-env.sh; | ||
|
||
# Build diskquota-1.0.3 (last tag 1.0.3_arenadata2) | ||
cp -r diskquota_src/ diskquota_src_tmp | ||
cd diskquota_src_tmp | ||
git checkout -- ./ | ||
git checkout 1.0.3_arenadata2 | ||
git clean -xf | ||
make | ||
make install | ||
cd .. | ||
rm -rf diskquota_src_tmp | ||
|
||
# Build test version of diskquota | ||
cd diskquota_src/ | ||
rm -rf build | ||
mkdir build | ||
cd build | ||
cmake .. | ||
make install | ||
|
||
# Add permissions | ||
chown gpadmin:gpadmin -R /usr/local/greenplum-db-devel/ | ||
chown gpadmin:gpadmin -R /home/gpadmin/ | ||
|
||
# Run tests | ||
# To make fly debug easier | ||
echo "source /usr/local/greenplum-db-devel/greenplum_path.sh" >> /home/gpadmin/.bashrc | ||
su gpadmin -c \ | ||
"source /home/gpadmin/.bashrc && \ | ||
make upgradecheck" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters