2018-02-11 11:33:40 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2018-02-11 11:43:49 +00:00
|
|
|
[ -d "gh-ost-ci-env" ] || git clone https://github.com/github/gh-ost-ci-env.git
|
2018-02-11 11:33:40 +00:00
|
|
|
mkdir -p ~/opt/mysql
|
|
|
|
mkdir -p ~/sandboxes
|
2018-02-11 11:43:49 +00:00
|
|
|
gh-ost-ci-env/bin/linux/dbdeployer unpack gh-ost-ci-env/mysql-tarballs/5.7.21.tar.gz --unpack-version=5.7.21 || :
|
2018-02-11 11:33:40 +00:00
|
|
|
|
2018-02-11 11:46:27 +00:00
|
|
|
sed '/sandboxes/d' -i gh-ost-ci-env/bin/gh-ost-test-mysql-master
|
2018-02-11 11:33:40 +00:00
|
|
|
echo '~/sandboxes/rsandbox_5_7_21/m "$@"' >> gh-ost-ci-env/bin/gh-ost-test-mysql-master
|
2018-02-11 11:46:27 +00:00
|
|
|
|
|
|
|
sed '/sandboxes/d' -i gh-ost-ci-env/bin/gh-ost-test-mysql-replica
|
2018-02-11 11:33:40 +00:00
|
|
|
echo '~/sandboxes/rsandbox_5_7_21/s1 "$@"' >> gh-ost-ci-env/bin/gh-ost-test-mysql-replica
|
|
|
|
|
|
|
|
export PATH="${HOME}/gh-ost-ci-env/bin/:${PATH}"
|
2018-02-11 11:41:40 +00:00
|
|
|
echo "# Running localtests"
|
|
|
|
./localtests/test.sh
|