forked from pool/mariadb
Accepting request 39217 from server:database
Copy from server:database/mariadb based on submit request 39217 from user -miska- OBS-URL: https://build.opensuse.org/request/show/39217 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mariadb?expand=0&rev=1
This commit is contained in:
17
suse-test-run
Normal file
17
suse-test-run
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/perl
|
||||
#
|
||||
# Test the SUSE mysql(-Max) package using the MySQL testsuite
|
||||
|
||||
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: $!";
|
Reference in New Issue
Block a user