~percona-core/percona-xtrabackup/2.0

Viewing all changes in revision 261.

  • Committer: Alexey Kopytov
  • Date: 2011-06-09 18:34:00 UTC
  • Revision ID: akopytov@gmail.com-20110609183400-3o0sji4eql76po5k
Various cleanups in the XtraBackup test suite:

* tests can now be run from the source directory with no additional steps to
set them up, i.e. PATH is set up appropriately so that in-source
innobackupex/xtrabackup/tar4ibd are used.

* run.sh now accepts an arbitrary server installation directory with the
-d switch ('./server' by default).

* run.sh determines the server version automatically, no need to specify
it explicitly with -m switch, which has been removed.

* tarball management has been moved from run.sh into bootstrap.sh. The
first argument passed to bootstrap.sh can be either a build type as
passed to build.sh (i.e. one of innodb51_builtin innodb51 innodb55
xtradb51 xtradb55) in which case the server downloads the appropriate
Linux tarball automatically (emulating the old run.sh -m behavior), or
a local path to a tarball. The tarball is unpacked into the "./server"
directory (can be overridden using the second command line argument to
bootstrap.sh).

* it is safe to call innobackupex and xtrabackup in tests directly,
since they are functions calling the script and the appropriate
xtrabackup version from the source dir (or from PATH locations when
running the test suite from installed XtraBackup). All tests have been
updated to call innobackupex/xtrabackup directly rather than via
IB_BIN/XB_BIN.

* the server will be stopped and the working directory removed
automatically, there is no need to that at the end of each test.

* some minor cleanups:
- when a test is skipped, the reason for skipping is now displayed,
- number and list of failed tests, if any, in the test summary
- leftover mysqld processes are now killed automatically when starting
a new server instance

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: