Merge lp:~tsarev/percona-server/5.5.13-merge into lp:percona-server/5.5

Proposed by Oleg Tsarev
Status: Merged
Approved by: Stewart Smith
Approved revision: no longer in the source branch.
Merged at revision: 123
Proposed branch: lp:~tsarev/percona-server/5.5.13-merge
Merge into: lp:percona-server/5.5
Diff against target: 91 lines (+27/-47)
2 files modified
install_tests.sh (+27/-12)
install_tests.sh.THIS (+0/-35)
To merge this branch: bzr merge lp:~tsarev/percona-server/5.5.13-merge
Reviewer Review Type Date Requested Status
Stewart Smith Pending
Review via email: mp+65172@code.launchpad.net

Description of the change

fix revision 122 (incorrect merge)

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'install_tests.sh'
--- install_tests.sh 2011-02-03 13:49:01 +0000
+++ install_tests.sh 2011-06-20 09:38:14 +0000
@@ -1,20 +1,35 @@
1#!/bin/sh1#!/bin/sh
22
3test -z ${PERCONA_SERVER} && export PERCONA_SERVER=Percona-Server3set -u
4echo PERCONA_SERVER=${PERCONA_SERVER}4
55MYSQL_VERSION="$(grep ^MYSQL_VERSION= "Makefile" \
6 | cut -d = -f 2)"
7export PERCONA_SERVER="Percona-Server"
8
9install_file_type()
10{
11 for file in `ls $1/*.$2 2>/dev/null`; do
12 test -f $file && install -m 644 $file ${PERCONA_SERVER}/mysql-test/$3
13 done;
14}
15do_install_path()
16{
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
22}
6install_path()23install_path()
7{24{
8 echo "Installing mysql-test files: $2"25 echo "[$3/$4] Installing mysql-test files: $2"
9 find $1 -iname '*.test' -exec install -m 644 {} ${PERCONA_SERVER}/mysql-test/t/ ';'26 test -d $1 && do_install_path $1 $2
10 find $1 -iname '*.opt' -exec install -m 644 {} ${PERCONA_SERVER}/mysql-test/t/ ';'
11 find $1 -iname '*.result' -exec install -m 644 {} ${PERCONA_SERVER}/mysql-test/r/ ';'
12 find $1 -iname '*.require' -exec install -m 644 {} ${PERCONA_SERVER}/mysql-test/r/ ';'
13 find $1 -iname '*.inc' -exec install -m 644 {} ${PERCONA_SERVER}/mysql-test/include/ ';'
14}27}
1528current=0;
16install_path mysql-test "global"29count=`wc -l series`;
30install_path mysql-test "global" $current $count
17for test_name in `cat series`; do31for test_name in `cat series`; do
18 test -d mysql-test/$test_name && install_path mysql-test/$test_name $test_name32 current=$((current+1));
33 install_path mysql-test/$test_name $test_name $current $count
19done34done
20echo "Done"35echo "Done"
2136
=== removed file 'install_tests.sh.THIS'
--- install_tests.sh.THIS 2011-06-20 08:13:54 +0000
+++ install_tests.sh.THIS 1970-01-01 00:00:00 +0000
@@ -1,35 +0,0 @@
1#!/bin/sh
2
3set -u
4
5#MYSQL_VERSION="$(grep ^MYSQL_VERSION= "Makefile" \
6# | cut -d = -f 2)"
7export PERCONA_SERVER="Percona-Server"
8
9install_file_type()
10{
11 for file in `ls $1/*.$2 2>/dev/null`; do
12 test -f $file && install -m 644 $file ${PERCONA_SERVER}/mysql-test/$3
13 done;
14}
15do_install_path()
16{
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
22}
23install_path()
24{
25 echo "[$3/$4] Installing mysql-test files: $2"
26 test -d $1 && do_install_path $1 $2
27}
28current=0;
29count=`wc -l series`;
30install_path mysql-test "global" $current $count
31for test_name in `cat series`; do
32 current=$((current+1));
33 install_path mysql-test/$test_name $test_name $current $count
34done
35echo "Done"

Subscribers

People subscribed via source and target branches