Skip to content

Commit 5bffec3

Browse files
author
Shlomi Noach
authored
Merge pull request #818 from github/replica-tests-8-0
Replication tests: MySQL 8.0
2 parents ea339b6 + c30e586 commit 5bffec3

File tree

3 files changed

+7
-36
lines changed

3 files changed

+7
-36
lines changed

.travis.yml

-33
This file was deleted.

localtests/swap-uk-uk/create.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
drop table if exists gh_ost_test;
22
create table gh_ost_test (
3-
id bigint,
3+
id bigint not null,
44
i int not null,
5-
ts timestamp(6),
5+
ts timestamp(6) not null,
66
unique key id_uidx(id),
77
unique key its_uidx(i, ts)
88
) ;

script/cibuild-gh-ost-replica-tests

+5-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ test_mysql_version() {
5050

5151
export PATH="${PWD}/gh-ost-ci-env/bin/:${PATH}"
5252

53-
gh-ost-test-mysql-master -uroot -e "grant all on *.* to 'gh-ost'@'%' identified by 'gh-ost'"
53+
gh-ost-test-mysql-master -uroot -e "create user 'gh-ost'@'%' identified by 'gh-ost'"
54+
gh-ost-test-mysql-master -uroot -e "grant all on *.* to 'gh-ost'@'%'"
5455

5556
echo "### Running gh-ost tests for $mysql_version"
5657
./localtests/test.sh -b bin/gh-ost
@@ -61,6 +62,9 @@ test_mysql_version() {
6162
echo "Building..."
6263
. script/build
6364
# Test all versions:
65+
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
66+
echo "found MySQL version: $mysql_version"
67+
done
6468
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
6569
test_mysql_version "$mysql_version"
6670
done

0 commit comments

Comments
 (0)