5
5
MYSQL_VERSION="$(grep ^MYSQL_VERSION= "Makefile" \
7
7
export PERCONA_SERVER="Percona-Server-$MYSQL_VERSION"
11
for file in `ls $1/*.$2 2>/dev/null`; do
12
test -f $file && install -m 644 $file ${PERCONA_SERVER}/mysql-test/$3
17
install_file_type $1 test t
18
install_file_type $1 opt t
19
install_file_type $1 result r
20
install_file_type $1 require r
21
install_file_type $1 inc include
11
echo "Installing mysql-test files: $2"
12
find $1 -iname '*.test' -exec install -m 644 {} ${PERCONA_SERVER}/mysql-test/t/ ';'
13
find $1 -iname '*.opt' -exec install -m 644 {} ${PERCONA_SERVER}/mysql-test/t/ ';'
14
find $1 -iname '*.result' -exec install -m 644 {} ${PERCONA_SERVER}/mysql-test/r/ ';'
15
find $1 -iname '*.require' -exec install -m 644 {} ${PERCONA_SERVER}/mysql-test/r/ ';'
16
find $1 -iname '*.inc' -exec install -m 644 {} ${PERCONA_SERVER}/mysql-test/include/ ';'
25
echo "[$3/$4] Installing mysql-test files: $2"
26
test -d $1 && do_install_path $1 $2
19
install_path mysql-test "global"
30
install_path mysql-test "global" $current $count
20
31
for test_name in `cat series`; do
21
test -d mysql-test/$test_name && install_path mysql-test/$test_name $test_name
32
let current=$current+1;
33
install_path mysql-test/$test_name $test_name $current $count