github.com/cloudberrydb/gpbackup@v1.0.3-0.20240118031043-5410fd45eed6/ci/scripts/integration-tests-fixed-version.bash (about) 1 #!/bin/bash 2 3 set -ex 4 5 if [[ ! -f bin_gpdb/bin_gpdb.tar.gz ]] ; then 6 mv bin_gpdb/*.tar.gz bin_gpdb/bin_gpdb.tar.gz 7 fi 8 source gpdb_src/concourse/scripts/common.bash 9 time install_gpdb 10 time ./gpdb_src/concourse/scripts/setup_gpadmin_user.bash 11 time make_cluster 12 13 CWDIR=$(pwd) 14 GOPATH=/home/gpadmin/go 15 16 mkdir -p ${GOPATH}/bin ${GOPATH}/src/github.com/greenplum-db 17 cp -R $(pwd)/gpbackup ${GOPATH}/src/github.com/greenplum-db 18 tar -zxf gpbackup_1.12.1_dependencies/*.tar.gz -C ${GOPATH}/src/github.com/cloudberrydb/gpbackup 19 chown -R gpadmin:gpadmin ${GOPATH} 20 21 cat<<SCRIPT > /home/gpadmin/.bashrc 22 export GOPATH=${GOPATH} 23 export PATH=/usr/local/go/bin:$PATH:${GOPATH}/bin 24 if [[ -f /opt/gcc_env.sh ]]; then 25 source /opt/gcc_env.sh 26 fi 27 source /usr/local/greenplum-db-devel/greenplum_path.sh 28 source ${CWDIR}/gpdb_src/gpAux/gpdemo/gpdemo-env.sh 29 SCRIPT 30 31 cat <<SCRIPT > /tmp/run_tests.bash 32 set -ex 33 34 #!/bin/bash 35 36 cd \${GOPATH}/src/github.com/cloudberrydb/gpbackup 37 38 git checkout ${GPBACKUP_VERSION} 39 40 # NOTE: There was a change to constraint handling in GPDB5 that caused an update 41 # to our test suite. Rather than revv the version of gpbackup that we are packaging 42 # with gpdb5, we've decided to simply cherry-pick the commit prior to running tests. 43 git checkout c149e8b7b671e931ca892f22c8cdef906512d591 44 45 tar -zxf ${CWDIR}/gpbackup_1.12.1_dependencies/*.tar.gz 46 go install github.com/onsi/ginkgo/ginkgo@v1 47 48 # Disable go modules before building 49 export GO111MODULE=off 50 make build integration 51 52 make end_to_end 53 SCRIPT 54 55 chmod +x /tmp/run_tests.bash 56 su - gpadmin "/tmp/run_tests.bash"