2010-05-05 23:42:29 +02:00
|
|
|
#!/usr/bin/perl
|
|
|
|
#
|
2015-06-25 15:57:47 +02:00
|
|
|
# Test the SUSE mysql package using the MySQL testsuite
|
2010-05-05 23:42:29 +02:00
|
|
|
|
|
|
|
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: $!";
|