~percona-dev/percona-server/release-5.5.11-20.2-fix-bug-764138

« back to all changes in this revision

Viewing changes to HandlerSocket-Plugin-for-MySQL/regtest/test_01_lib/run.sh

  • Committer: Ignacio Nin
  • Date: 2011-03-13 17:18:23 UTC
  • mfrom: (33.3.17 release-5.5.8-20)
  • Revision ID: ignacio.nin@percona.com-20110313171823-m06xs104nekulywb
Merge changes from release-5.5.8-20 to 5.5.9

Merge changes from the release branch of 5.5.8 to 5.5.9. These include
the HandlerSocket and UDF directories and the building scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
TESTS="01 02 03 04 05 06 07 08 09 10 11 12 13";
 
4
 
 
5
source ../common/compat.sh
 
6
 
 
7
for i in $TESTS; do
 
8
  perl "test$i.pl" > test$i.log 2> test$i.log2
 
9
done
 
10
for i in $TESTS; do
 
11
  if ! $DIFF -u test$i.log test$i.expected; then
 
12
    echo "test$i failed";
 
13
    exit 1
 
14
  fi
 
15
  if [ -f "test$i.expect2" ]; then
 
16
    lines="`wc -l < test$i.expect2`"
 
17
    head -$lines test$i.log2 > test$i.log2h
 
18
    if ! $DIFF -u test$i.log2h test$i.expect2 && \
 
19
       ! $DIFF -u test$i.log2h test$i.expect2ef; then
 
20
      echo "test$i failed";
 
21
      exit 1
 
22
    fi
 
23
  fi
 
24
done
 
25
echo "OK."
 
26
exit 0
 
27