Merge pull request #818 from github/replica-tests-8-0

Replication tests: MySQL 8.0
This commit is contained in:
Shlomi Noach 2020-02-05 11:09:06 +02:00 committed by GitHub
commit 5bffec3412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 36 deletions

View File

@ -1,33 +0,0 @@
# http://docs.travis-ci.com/user/languages/go/
language: go
go:
- "1.12.x"
os:
- linux
services:
- mysql
env:
- MYSQL_USER=root
- CURRENT_CI_ENV=travis
addons:
apt:
packages:
- git
- numactl
- libaio1
before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
install: true
script:
- script/cibuild
notifications:
email: false

View File

@ -1,8 +1,8 @@
drop table if exists gh_ost_test; drop table if exists gh_ost_test;
create table gh_ost_test ( create table gh_ost_test (
id bigint, id bigint not null,
i int not null, i int not null,
ts timestamp(6), ts timestamp(6) not null,
unique key id_uidx(id), unique key id_uidx(id),
unique key its_uidx(i, ts) unique key its_uidx(i, ts)
) ; ) ;

View File

@ -50,7 +50,8 @@ test_mysql_version() {
export PATH="${PWD}/gh-ost-ci-env/bin/:${PATH}" export PATH="${PWD}/gh-ost-ci-env/bin/:${PATH}"
gh-ost-test-mysql-master -uroot -e "grant all on *.* to 'gh-ost'@'%' identified by 'gh-ost'" gh-ost-test-mysql-master -uroot -e "create user 'gh-ost'@'%' identified by 'gh-ost'"
gh-ost-test-mysql-master -uroot -e "grant all on *.* to 'gh-ost'@'%'"
echo "### Running gh-ost tests for $mysql_version" echo "### Running gh-ost tests for $mysql_version"
./localtests/test.sh -b bin/gh-ost ./localtests/test.sh -b bin/gh-ost
@ -61,6 +62,9 @@ test_mysql_version() {
echo "Building..." echo "Building..."
. script/build . script/build
# Test all versions: # Test all versions:
find gh-ost-ci-env/mysql-tarballs/ -name "*.tar.gz" | while read f ; do basename $f ".tar.gz" ; done | sort -r | while read mysql_version ; do
echo "found MySQL version: $mysql_version"
done
find gh-ost-ci-env/mysql-tarballs/ -name "*.tar.gz" | while read f ; do basename $f ".tar.gz" ; done | sort -r | while read mysql_version ; do find gh-ost-ci-env/mysql-tarballs/ -name "*.tar.gz" | while read f ; do basename $f ".tar.gz" ; done | sort -r | while read mysql_version ; do
test_mysql_version "$mysql_version" test_mysql_version "$mysql_version"
done done