~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to storage/tokudb/scripts/test.mysql.bash

  • Committer: Package Import Robot
  • Author(s): James Page, Otto Kekäläinen
  • Date: 2014-02-17 16:51:52 UTC
  • mfrom: (2.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140217165152-k315d3175g865kkx
Tags: 5.5.35-1
[ Otto Kekäläinen ]
* New upstream release, fixing the following security issues:
  - Buffer overflow in client/mysql.cc (Closes: #737597).
    - CVE-2014-0001
  - http://www.oracle.com/technetwork/topics/security/cpujan2014-1972949.html
    - CVE-2013-5891
    - CVE-2013-5908
    - CVE-2014-0386
    - CVE-2014-0393
    - CVE-2014-0401
    - CVE-2014-0402
    - CVE-2014-0412
    - CVE-2014-0420
    - CVE-2014-0437
* Upstream https://mariadb.atlassian.net/browse/MDEV-4902
  fixes compatibility with Bison 3.0 (Closes: #733002)
* Updated Russian debconf translation (Closes: #734426)
* Updated Japanese debconf translation (Closes: #735284)
* Updated French debconf translation (Closes: #736480)
* Renamed SONAME properly (Closes: #732967)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env bash
 
2
 
 
3
function usage() {
 
4
    echo "run the mysql tests"
 
5
    echo "--mysqlbuild=$mysqlbuild --tests=$tests"
 
6
}
 
7
 
 
8
function expand() {
 
9
    echo $* | tr ,: " "
 
10
}
 
11
 
 
12
mysqlbuild=
 
13
mysqlsocket=/tmp/mysql.sock
 
14
gearmandir=/usr/local/gearmand-1.1.6
 
15
gearmandhost=localhost
 
16
system=$(uname -s | tr [:upper:] [:lower:])
 
17
arch=$(uname -m | tr [:upper:] [:lower:])
 
18
tests=run.mysql.tests.bash
 
19
 
 
20
while [ $# -gt 0 ] ; do
 
21
    arg=$1; shift
 
22
    if [[ $arg =~ --(.*)=(.*) ]] ; then
 
23
        eval ${BASH_REMATCH[1]}=${BASH_REMATCH[2]}
 
24
    else
 
25
        usage; exit 1;
 
26
    fi
 
27
done
 
28
 
 
29
if [ -z $mysqlbuild ] ; then exit 1; fi
 
30
 
 
31
for testname in $(expand $tests) ; do
 
32
    if [ $testname = "run.mysql.tests.bash" ] ; then
 
33
        run_mysqld=0
 
34
    else
 
35
        run_mysqld=1
 
36
    fi
 
37
    if [ $run_mysqld = 0 ] ; then
 
38
        setupextra="--shutdown=1 --install=1 --startup=0"
 
39
    else
 
40
        setupextra="--shutdown=1 --install=1 --startup=1"
 
41
    fi
 
42
    echo "echo \$(date) $mysqlbuild >>/tmp/$(whoami).$testname.trace 2>&1; \
 
43
          \$HOME/bin/setup.mysql.bash --mysqlbuild=$mysqlbuild $setupextra >>/tmp/$(whoami).$testname.trace 2>&1; \
 
44
          testexitcode=\$?; \
 
45
          echo \$(date) $mysqlbuild \$testexitcode >>/tmp/$(whoami).$testname.trace 2>&1; \
 
46
          if [ \$testexitcode -ne 0 ] ; then exit 1; fi; \
 
47
          \$HOME/bin/$testname --mysqlbuild=$mysqlbuild --commit=1 >>/tmp/$(whoami).$testname.trace 2>&1; \
 
48
          if [ $run_mysqld != 0 ] ; then mysqladmin -S$mysqlsocket shutdown; fi" | $gearmandir/bin/gearman -b -f mysql-test-$system-$arch -h $gearmandhost -p 4730
 
49
done
 
50
 
 
51
exit 0