Timofey Turenko
06c2d201e0
remove makefiles and other garbage
2015-01-14 19:08:24 +02:00
Markus Makela
63006f686d
Fixed rwsplit hint tests writing to source tree instead of the build tree.
2014-12-20 16:15:13 +02:00
Markus Makela
e4c379bbdc
Fix to bug 583 http://bugs.mariadb.com/show_bug.cgi?id=583
...
Changed rwsplit.sh to explicitly use /bin/bash
2014-12-03 19:41:06 +02:00
Markus Makela
a96f2fe57b
Fixed some typos and testing messages from CMake output.
2014-11-17 12:57:07 +02:00
Markus Makela
37fa9668a9
Added a check for MySQL client libraries for the connection tests and re-enabled the tests.
2014-11-10 09:06:23 +02:00
Markus Makela
5490954e43
Disabled login tests.
2014-11-07 18:47:41 +02:00
Markus Makela
c62261710b
Fixed wrong mysql libraries being used in the tests
2014-11-07 18:32:37 +02:00
Markus Makela
813529b476
Added a test for the time it takes to login through MaxScale with various routers.
2014-11-07 17:05:21 +02:00
Mark Riddoch
a63e251d09
Bug 431 - replace == with =
2014-10-15 13:03:12 +01:00
Markus Makela
3cd8e29c4c
Changed the way some CMake functions are used to support older versions of CMake.
2014-10-07 14:09:22 +03:00
Markus Makela
3776fdb015
added a 'testall' target which builds and runs the tests
2014-09-17 10:39:47 +03:00
Markus Makela
8b1afbfe26
fixed tests not working with the normal 'make testall'
2014-09-16 20:02:28 +03:00
Markus Makela
0f07c9f08c
Added hint tests
...
Fixed readwritesplit tests looking for test input in the wrong directory
Updated the canonical query test expected output
2014-09-15 09:27:47 +03:00
Markus Makela
32b72ce474
more configuration options, README update and tests
2014-09-12 16:48:21 +03:00
Markus Makela
f0641dc39e
added readwritesplit tests
2014-09-12 07:30:25 +03:00
VilhoRaatikka
025f920ddb
Replaced RWSplit parameters write_ses_variables_to_all and read_ses_variables_from_slaves with
...
use_sql_variables_in=[master|all] (default all)
Modified MaxScale Configuration And Usage Scenarios-Z3.pdf and MaxScale_template.cnf accordingly.
Fixed typo in server/modules/routing/readwritesplit/test/rwsplit.sh
2014-09-10 11:32:53 +03:00
Markus Makela
a17e584adb
Merge remote-tracking branch 'origin/Z3' into MAX-237
...
Conflicts:
query_classifier/query_classifier.cc
query_classifier/query_classifier.h
server/modules/routing/readwritesplit/readwritesplit.c
2014-09-01 11:05:10 +03:00
Markus Makela
ecc89a823b
added tests for temporary tables
2014-08-31 19:30:00 +03:00
VilhoRaatikka
4a30626974
Merge branch 'Z2' of https://github.com/skysql/MaxScale into Z2
...
Conflicts:
client/Makefile
server/core/buffer.c
server/core/test/makefile
server/include/buffer.h
server/modules/filter/Makefile
server/modules/routing/webserver.c
2014-08-29 16:21:08 +03:00
VilhoRaatikka
677a44f497
Merge from release-1.0beta to Z2
2014-08-15 18:00:39 +03:00
Markus Makela
be52b3a71e
more stress tests for rwsplit router
2014-08-15 13:41:56 +03:00
Markus Makela
01eb9822e0
rwsplit router tests for session variables
2014-08-14 14:34:22 +03:00
Markus Makela
3a639403bf
added fixes to core tests failing even though they passed, hint syntax test only checking for a partial logfile and readwritesplit tests being run twice.
2014-08-11 14:27:33 +03:00
Markus Makela
f23a9e2b72
tests for hints and changes in makefiles and configuration files to enable testing them through 'make testall'
2014-08-08 13:19:23 +03:00
VilhoRaatikka
08b99c121e
Bug #468 , http://bugs.skysql.com/show_bug.cgi?id=468 , Query classifier accessed freed thread context. If parsing fails thd doesn't need to be freed because it holds correct information about command type.
...
session.c:session_setup_filters : fixed memory leak
hintparser.c: added token_free for HINT_TOKENs and fixed a few memory leaks.
mysql_client_server_protocol.h: added mysql_protocol_done which frees memory blocks pointed to by protocol members. Those can't be freed in dcb.c because dcb.c doesn't know about protocol's members.
mysql_backend.c:gw_backend_close: fixed memory leak
mysql_client.c: gw_client_close: fixed memory leak
mysql_common.c: added implementation of mysql_protocol_done
:protocol_archive_srv_command: tried to fix memory leak. Some memory is still leaking according to valgrind. Removed use of uninitialized local variable len.
readwritesplit.c: Fix to bug #469 , http://bugs.skysql.com/show_bug.cgi?id=469 , rwsplit counts every connection twice in master - counnection counts leak
execute_sescmd_in_backend: fixed a memory leak - visible only in DEBUG=Y build.
readwritesplit/test/makefile: added target for hints tests
2014-08-05 18:14:06 +03:00
VilhoRaatikka
02330093cc
Added test for session commands.
2014-06-11 15:33:42 +03:00
VilhoRaatikka
698e63eaf4
Changed bash-related comparison equality operator '==' to generic '='
2014-05-23 22:08:57 +03:00
VilhoRaatikka
a6eb7bd743
Added space character between '--' and comment text in sql scripts.
2014-05-23 22:07:32 +03:00
VilhoRaatikka
c927057b5c
Fixed two bugs of which one was older.
...
1. in query_classifier.cc autocommit_enabled, and transaction_active variables maintained their values across different sessions. Now those values are stored in each router_client_ses object.
2. As a part of implementation of MAX-95 session variables were added to BACKEND struct which is shared with all sessions using the SERVICE which the particular BACKEND serves. Now each router_client_ses object has a backend reference struct which includes pointer to BACKEND, DCB and to session command cursor.
Added test - set_autocommit_disabled.sql, test_after_autocommit_disabled.sql - to check that session variable is discarded when session where it belongs terminates.
2014-04-28 23:33:49 +03:00
VilhoRaatikka
81af54730a
Added missing test files for rwsplit router tests.
2014-04-16 10:25:32 +03:00
VilhoRaatikka
c994c81a0e
Changed the way how autocommit is searched from parse tree. Switched to use typelib instead of explicitly converting and comparing user value. Added more tests for cases where user uses literal values in SET autocommit command.
2014-04-15 14:32:47 +03:00
VilhoRaatikka
7b40c1ee70
Changed how MaxScale unit test works.
...
All tests are run by executing 'make testall' in root directory. As a result all directories which contain tests will be entered and tests executed.
After tests, each directory have a test log including the last run's logs only.
Created a global test log, which is specified in test.inc. Test logs from subdirectories are concatenated to this file.
2014-04-10 19:08:28 +03:00
VilhoRaatikka
b9a8f2ce65
Merge branch 'develop' of https://github.com/skysql/MaxScale into develop
2014-04-10 17:11:45 +03:00
VilhoRaatikka
bbf1bc2afa
Fix for bug #418
...
Increased skygw_query_type_t to 16 bits, and corrected the way how those bit fields are checked.
Added tests for cases where autocommit is disabled and corrected old tests.
2014-04-10 17:09:42 +03:00
VilhoRaatikka
c86e25eeb8
Added a test for implicitly started trasnaction.
2014-04-07 17:00:31 +03:00
VilhoRaatikka
ce5dc19ecc
Added read/write split router tests to a part of makefile structure.
2014-04-01 14:11:48 -07:00
VilhoRaatikka
7c3a354fd8
Query classifier ignored implicit commits in cases of write commands. Fixed it.
...
Added more tests for transaction support. Mostly different cases where some command triggers implicit commit in the middle of transaction.
2014-03-28 00:16:18 +02:00
VilhoRaatikka
9b1035751a
Made rwsplit test select_for_var_set.sql generic so that master server's id is filled in test.inc.
2014-03-27 17:17:01 +02:00
MassimilianoPinto
e9d1f04bc6
Added test: set var @a via select @@server_id
...
Added test: set var @a via select @@server_id
2014-03-27 11:45:47 +01:00
VilhoRaatikka
10fdccdeee
Added two tests for testing readwrite split router's ability to route read to master if in active transaction and to slave when outside transaction.
2014-03-27 10:27:19 +02:00
VilhoRaatikka
75549c6a20
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.
2014-03-27 10:06:31 +02:00
VilhoRaatikka
f49df89a0c
Changed how query classifier determines which statements trigger implicit commit.
...
Changed test makefile and rwsplit.sh script and added two example sql scripts.
2014-03-26 19:10:35 +02:00
VilhoRaatikka
df02926321
Added structure which can be cloned for multiple test cases.
2014-03-25 23:19:24 +02:00
MassimilianoPinto
f320c17834
Added test for readwrite split: SET and TRANSACTION - COMMIT
...
Added test for readwrite split: SET and TRANSACTION - COMMIT
2014-03-24 15:15:21 +01:00