File suse-test-run of Package mysql-5.0.62-enterprise
1
#!/bin/sh -e
2
#
3
# Test the SUSE mysql(-Max) package using the MySQL testsuite
4
5
cd /usr/share/mysql-test
6
if test -n "`/bin/ls var`"; then
7
echo "removing temporary files from previous test run"
8
rm -rf var/*
9
fi
10
11
if test "`whoami`" = "root"; then
12
echo "running as root makes rpl_rotate_logs fail, switchig to user mysql"
13
exec su mysql -c "$0 $*"
14
fi
15
16
set -x
17
./mysql-test-run --master-binary=/usr/sbin/%{mysql_binary} --slave-binary=/usr/sbin/%{mysql_binary} --big-test "$@"
18