File suse-test-run of Package mariadb
18
1
#!/usr/bin/perl
2
#
3
# Test the SUSE mysql package using the MySQL testsuite
4
5
my $id = getpwnam("mysql") or die "can't find user \"mysql\": $!";
6
my $dir = "/usr/share/mysql-test/";
7
8
if ($< == 0) {
9
($<, $>) = ($id, $id);
10
if ($< != $id || $> != $id) {
11
die "can't switch to user mysql(id $id): $!";
12
}
13
}
14
15
chdir($dir) or die "can't cd to $dir: $!";
16
exec("./mysql-test-run.pl", "--big-test", @ARGV);
17
die "can't execute mysql-test-run.pl: $!";
18