~hrvojem/percona-xtrabackup/bug1295444-2.1

« back to all changes in this revision

Viewing changes to test/run.sh

  • Committer: Alexey Kopytov
  • Date: 2014-09-10 12:09:53 UTC
  • mfrom: (759.2.1 2.1-xb-bug1222062)
  • Revision ID: akopytov@gmail.com-20140910120953-7o0lxxhv7cp2kvvd
MergedĀ lp:~sergei.glushchenko/percona-xtrabackup/2.1-xb-bug1222062.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
            on the MySQL version.
52
52
-j N        Run tests in N parallel processes.
53
53
-T seconds  Test timeout (default is $TEST_TIMEOUT seconds).
 
54
-x options  Extra options to pass to xtrabackup
 
55
-i options  Extra options to pass to innobackupex
54
56
EOF
55
57
}
56
58
 
263
265
    if gnutar --version > /dev/null 2>&1
264
266
    then
265
267
        TAR=gnutar
 
268
    elif gtar --version > /dev/null 2>&1
 
269
    then
 
270
        TAR=gtar
266
271
    else
267
272
        TAR=tar
268
273
    fi
324
329
    MYSQLD_EXTRA_ARGS=
325
330
 
326
331
    XB_BIN=""
327
 
    IB_ARGS="--user=root --ibbackup=$XB_BIN"
 
332
    IB_ARGS="--user=root --ibbackup=$XB_BIN ${IB_EXTRA_OPTS:-}"
328
333
    XB_ARGS="--no-defaults"
329
334
 
330
335
    if [ "$XB_BUILD" != "autodetect" ]
794
799
NWORKERS=
795
800
DEBUG_WORKER=""
796
801
 
797
 
while getopts "fgh?:t:s:d:c:j:T:" options; do
 
802
while getopts "fgh?:t:s:d:c:j:T:x:i:" options; do
798
803
        case $options in
799
804
            f ) force="yes";;
800
805
            t )
831
836
                TEST_TIMEOUT="$OPTARG"
832
837
                ;;
833
838
 
 
839
            x )
 
840
                XB_EXTRA_MY_CNF_OPTS="$OPTARG"
 
841
                ;;
 
842
 
 
843
            i )
 
844
                IB_EXTRA_OPTS="$OPTARG"
 
845
                ;;
 
846
 
834
847
            ? ) echo "Use \`$0 -h' for the list of available options."
835
848
                    exit -1;;
836
849
        esac