How to Execute Kewpie Tests

To use kewpie for testing it’s recommended to use this MP. As it removes dbqp and integrates kewpie (and cuts size down to 25MB from 400+). To execute tests:

cd kewpie ; ./kewpie.py [--force ] [--libeatmydata] [--wsrep-provider-path=...]

The defaults are to run the cluster_basic and cluster_randgen suites against a 3 node cluster. Cluster_basic is used for small atomic tests like ADD/DROP single/multiple columns on a table and ensuring the change is replicated. cluster_randgen is used for high stress transactional loads. There are single and multi-threaded variants. The load is a mix of INSERT/UPDATE/DELETE/SELECT statements. This includes both regular transactions, single queries, ROLLBACK’s and SAVEPOINTs, and a mix of good and bad SQL statements.

To view all options, one may look at ”./kewpie.py –help”. Basic documentation is also available as sphinx docs in kewpie/docs folder. Here are the some of the most used options:

option --force

Run all tests despite failures (default is to stop test execution on first failure)

option --libeatmydata

Use libeatmydata if installed. This can greatly speed up testing in many cases. Can be used in conjunction with:

option --libeatmydata-path to specify where the library is located.
option --wsrep-provider-path

By default, we expect / look for it in /usr/lib/galera/libgalera_smm.so (where it ends up via ‘make install’...at least on Ubuntu). If one has an alternate library/location, specify it with this option.

Any additional suites may be run this way:

./kewpie.py [options] --suite=any/suitedir/from/kewpie/percona_tests
./kewpie.py --suite=crashme
Percona XtraDB Cluster
Call Us
+1-888-316-9775 (USA - Sales)
+1-208-473-2904 (USA - Sales)
+44-208-133-0309 (UK - Sales)
0-800-051-8984 (UK - Sales)
0-800-181-0665 (GER - Sales)
+1-877-862-4316 (Emergency)
+1-855-55TRAIN (Training)
+1-925-271-5054 (Training)

Previous topic

Setting up PXC reference architecture with HAProxy

Next topic

How to Report Bugs

This Page



© Copyright Percona Ireland Ltd. 2012-2013.
Except where otherwise noted, this documentation is licensed under the following license:
CC Attribution-ShareAlike 2.0 Generic
Created using Sphinx 1.1.3.
This documentation is developed in Launchpad as part of the Percona XtraDB Cluster source code.
If you spotted innacuracies, errors, don't understood it or you think something is missing or should be improved, please file a bug.
]]>