10
by Oleg Tsarev
propogate Oleg's patches |
1 |
#!/usr/bin/env sh
|
2 |
text -z ${PERCONA_SERVER} && PERCONA_SERVER=Percona-Server |
|
3 |
echo PERCONA_SERVER=$PERCONA_SERVER |
|
4 |
uninstall_files()
|
|
5 |
{
|
|
6 |
for file in `(cd $1; ls *.$2)`; do |
|
7 |
echo "uninstall $1/$file from ${PERCONA_SERVER}/mysql-test/$3/$file" |
|
8 |
rm ${PERCONA_SERVER}/mysql-test/$3/$file |
|
9 |
done; |
|
10 |
}
|
|
11 |
uninstall_path()
|
|
12 |
{
|
|
13 |
echo "Installing mysql-test files: $2" |
|
14 |
uninstall_files $1 opt t; |
|
15 |
uninstall_files $1 test t; |
|
16 |
uninstall_files $1 result r; |
|
17 |
uninstall_files $1 inc include; |
|
18 |
}
|
|
19 |
||
20 |
uninstall_path mysql-test "global"
|
|
21 |
for test_name in `cat series`; do |
|
22 |
uninstall_path mysql-test/$test_name $test_name |
|
23 |
done
|
|
24 |
echo "Done" |