mariadb/suse-test-run
Antonio Teixeira e2a9ec5e59 Read defaults during mysql_upgrade to respect client configuration.
We had the issue where our custom [client] section to skip TLS verification on Unix sockets as not considered, causing the upgrade to fail.

OBS-URL: https://build.opensuse.org/package/show/server:database/mariadb?expand=0&rev=323
2024-09-23 12:55:42 +00:00

18 lines
446 B
Perl

#!/usr/bin/perl
#
# Test the SUSE mariadb package using the mysql-test framework
my $id = getpwnam("mysql") or die "can't find user \"mysql\": $!";
my $dir = "/usr/share/mysql-test/";
if ($< == 0) {
($<, $>) = ($id, $id);
if ($< != $id || $> != $id) {
die "can't switch to user mysql(id $id): $!";
}
}
chdir($dir) or die "can't cd to $dir: $!";
exec("./mysql-test-run.pl", "--big-test", @ARGV);
die "can't execute mysql-test-run.pl: $!";