1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
set -ue
MYSQL_VERSION="$(grep ^MYSQL_VERSION= "Makefile" \
| cut -d = -f 2)"
export PERCONA_SERVER="Percona-Server-$MYSQL_VERSION"
install_path()
{
echo "Installing mysql-test files: $2"
find $1 -iname '*.test' -exec install -m 644 {} ${PERCONA_SERVER}/mysql-test/t/ ';'
find $1 -iname '*.opt' -exec install -m 644 {} ${PERCONA_SERVER}/mysql-test/t/ ';'
find $1 -iname '*.result' -exec install -m 644 {} ${PERCONA_SERVER}/mysql-test/r/ ';'
find $1 -iname '*.require' -exec install -m 644 {} ${PERCONA_SERVER}/mysql-test/r/ ';'
find $1 -iname '*.inc' -exec install -m 644 {} ${PERCONA_SERVER}/mysql-test/include/ ';'
}
install_path mysql-test "global"
for test_name in `cat series`; do
test -d mysql-test/$test_name && install_path mysql-test/$test_name $test_name
done
echo "Done"
|