From a9d363e698e4bed9b833394606d69b6099102f2d Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 29 Nov 2005 16:02:21 -0800 Subject: Worklog #2983 Mysqlslap load emulator tool and accompanied test, results and modifications to mysql-test-run(.pl/.sh) client/Makefile.am: Worklog #2983, added mysqlslap to Makefile.am client/client_priv.h: Worklog #2983 Added OPT_CREATE_SLAP_SCHEMA mysql-test/mysql-test-run.pl: Worklog #2983 Added mysqlslap test binary to test script mysql-test/mysql-test-run.sh: Worklog #2983 Added mysqlslap binary def to test script client/mysqlslap.c: Worklog #2983 mysqlslap.c, new utility for running load simulation. mysql-test/r/mysqlslap.result: Worklog #2983 Mysqlslap test results mysql-test/t/mysqlslap.test: Worklog #2983 Mysqlslap test --- mysql-test/t/mysqlslap.test | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 mysql-test/t/mysqlslap.test (limited to 'mysql-test/t/mysqlslap.test') diff --git a/mysql-test/t/mysqlslap.test b/mysql-test/t/mysqlslap.test new file mode 100644 index 00000000000..7df7f96f5ee --- /dev/null +++ b/mysql-test/t/mysqlslap.test @@ -0,0 +1,9 @@ +# Can't run test of external client with embedded server +--source include/not_embedded.inc + +--exec $MYSQL_SLAP --help +--exec $MYSQL_SLAP --silent --drop-schema --concurrency=5 --concurrency-load=5 --iterations=20 --number-int-cols=2 --number-char-cols=3 --number-rows=12 --auto-generate-sql + +--exec $MYSQL_SLAP --silent --drop-schema --concurrency=5 --concurrency-load=5 --iterations=20 --number-rows=10 --query="select * from t1" --data="INSERT INTO t1 VALUES (1, 'This is a test')" --create="CREATE TABLE t1 (id int, name varchar(64))" + +--exec $MYSQL_SLAP --silent --drop-schema --concurrency=5 --concurrency-load=5 --iterations=20 --delimiter=";" --number-rows=10 --query="select * from t1;select * from t2" --data="INSERT INTO t1 VALUES (1, 'This is a test'); insert into t2 values ('test', 'test2')" --create="CREATE TABLE t1 (id int, name varchar(64)); create table t2(foo1 varchar(32), foo2 varchar(32))" -- cgit v1.2.1