Added $(ROOT_PATH)/test.inc where test parameters can be added. For example, MaxScale port numbers, usernames, passwords. The file can be included in every */test/makefile so that all test directories can use same parameters if necessary.

Moved checking test results to rwsplit.sh so that tests can use easily different criterias to evaluate test success.
This commit is contained in:
VilhoRaatikka
2014-03-27 10:06:31 +02:00
parent f380c707f9
commit 75549c6a20
5 changed files with 45 additions and 22 deletions

View File

@ -1,7 +1,7 @@
USE test;
SET autocommit = 0;
SET @a= -1;
SET @b = -2;
SET @b= -2;
START TRANSACTION;
CREATE TABLE IF NOT EXISTS myCity (a int, b char(20));
INSERT INTO myCity VALUES (1, 'Milan');
@ -9,7 +9,7 @@ INSERT INTO myCity VALUES (2, 'London');
COMMIT;
START TRANSACTION;
DELETE FROM myCity;
SET @a = (SELECT COUNT(1) FROM myCity);
SET @a = (SELECT COUNT(*) FROM myCity);
ROLLBACK;
START TRANSACTION;
SET @b = (SELECT COUNT(*) FROM myCity);