Logoj0ke.net Open Build Service > Projects > internetx:mysql5 > mysql-community-server-55 > suse-test-run
Sign Up | Log In

File suse-test-run of Package mysql-community-server-55

 
1
#!/usr/bin/perl
2
#
3
# Test the SUSE mysql(-Max) 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