summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-09-10 12:12:47 +0200
committerSergei Golubchik <serg@mariadb.org>2020-09-10 13:32:27 +0200
commit897b51db434d58e5cfe0079195bb81b7ff624fce (patch)
treeabb1ec251d832b0db607e819b7976a9a567f56ba
parent5ad36aa3b8cb02450e5ade50f13d4a7c8e68947b (diff)
downloadmariadb-git-897b51db434d58e5cfe0079195bb81b7ff624fce.tar.gz
make S3 tests to run when S3 is statically linked
* use the environment variable HA_S3_SO, not a literal ha_s3 in cnf files * make ConfigFactory to support empty option values * update no_s3.result after MDEV-11412
-rw-r--r--mysql-test/lib/My/ConfigFactory.pm2
-rw-r--r--mysql-test/suite/s3/my.cnf2
-rw-r--r--mysql-test/suite/s3/no_s3.result2
-rw-r--r--mysql-test/suite/s3/slave.cnf2
4 files changed, 3 insertions, 5 deletions
diff --git a/mysql-test/lib/My/ConfigFactory.pm b/mysql-test/lib/My/ConfigFactory.pm
index db5c1aa1875..3249a06256c 100644
--- a/mysql-test/lib/My/ConfigFactory.pm
+++ b/mysql-test/lib/My/ConfigFactory.pm
@@ -347,7 +347,7 @@ sub resolve_at_variable {
or croak "There is no group named '$group_name' that ",
"can be used to resolve '$option_name' for test '$self->{testname}'";
- my $value= $from_group->value($option_name);
+ my $value= $from_group->value($option_name) || '';
$res .= $before.$value;
}
$res .= $after;
diff --git a/mysql-test/suite/s3/my.cnf b/mysql-test/suite/s3/my.cnf
index 03060f8a0ef..a979bf31817 100644
--- a/mysql-test/suite/s3/my.cnf
+++ b/mysql-test/suite/s3/my.cnf
@@ -3,7 +3,7 @@
[mysqld.1]
plugin-maturity = alpha
-plugin-load-add=ha_s3
+plugin-load-add=@ENV.HA_S3_SO
s3=ON
#s3-host-name=s3.amazonaws.com
#s3-protocol-version=Amazon
diff --git a/mysql-test/suite/s3/no_s3.result b/mysql-test/suite/s3/no_s3.result
index 89ab3ea97a1..9333944cf66 100644
--- a/mysql-test/suite/s3/no_s3.result
+++ b/mysql-test/suite/s3/no_s3.result
@@ -9,5 +9,3 @@ ERROR 42000: Table 's3_unique_table' uses an extension that doesn't exist in thi
rename table s3_unique_table to t1;
ERROR HY000: Error on rename of './test/s3_unique_table' to './test/t1' (errno: 138 "Unsupported extension used for table")
drop table s3_unique_table;
-Warnings:
-Warning 1112 Table 's3_unique_table' uses an extension that doesn't exist in this MariaDB version
diff --git a/mysql-test/suite/s3/slave.cnf b/mysql-test/suite/s3/slave.cnf
index 514171b383c..b9b1da73a92 100644
--- a/mysql-test/suite/s3/slave.cnf
+++ b/mysql-test/suite/s3/slave.cnf
@@ -1,6 +1,6 @@
[mysqld.2]
plugin-maturity = alpha
-plugin-load-add=ha_s3
+plugin-load-add=@ENV.HA_S3_SO
s3=ON
#s3-host-name=s3.amazonaws.com
#s3-protocol-version=Amazon