1f241a5ed1
Rearrange libraries and build files.
...
This is the first change in an attempt to arrange the linking so that
more errors are detected at link-time.
- All files in server/core but for gateway.c are linked to one shared
library called maxscale-common.
- The files log_manager/log_manager.cc and utils/skygw_utils.cc are
built into maxscale-common as well.
- MaxScale itself consists now only of gateway.c and is linked with
maxscale-common.
- All plugins link with maxscale-common.
- All executables link in addition with {EMBEDDED_LIB}.
After this change, the change (MXS-517) where query_classifier is the
only component that uses ${EMBEDDED_LIB} and the rest mysqlclient can
be made much cleaner.
After a few additional steps, all shared libraries can be linked with
the linker flags "-Wl,-z,defs", which directs the linker to resolve
all symbols. That will require that all shared libraries list all the
libraries they need, but will at the same time ensure that any
missing symbols are detected at link-time and not at run-time.
2016-01-22 23:26:17 +02:00
3e3770fa82
ss_dassert() no longer uses skygw_log_write.
...
Use of skygw_log_write() in ss_dassert and ss_info_dassert replaced
with the use of MXS_ERROR(). In addition, ss_dassert and ss_info_dassert
are now expressions that require a trailing ;.
2015-11-18 14:56:08 +02:00
6b88b6b17f
Merge branch 'develop' into MXS-329-develop-20151111
2015-11-13 07:48:59 +02:00
05fbdb1b76
Log: skygw_log_flush replaced with mxs_log_flush.
...
skygw_log_flush replaced with mxs_log_flush and skygw_log_sync_all
with mxs_log_flush_sync.
2015-11-12 18:28:34 +02:00
30d1fc66b7
getCapabilities no longer takes arguments and returns an int.
2015-11-11 18:14:03 +02:00
dee20fe077
Merge remote-tracking branch 'origin/develop' into MXS-329-develop-20151111
...
# Conflicts:
# server/core/CMakeLists.txt
# server/core/buffer.c
# server/core/service.c
# server/modules/filter/tee.c
# server/modules/monitor/mysql_mon.c
# server/modules/routing/binlog/blr.c
# server/modules/routing/binlog/blr_slave.c
# server/modules/routing/debugcmd.c
# server/modules/routing/readwritesplit/readwritesplit.c
# utils/skygw_utils.cc
- resolved.
2015-11-11 11:08:02 +00:00
49866b5959
ss_info_dassert now enabled also in release mode.
2015-11-10 21:19:50 +02:00
548d03005b
Added test for maxscale_pcre2.c
2015-11-05 10:19:24 +02:00
603e737769
Cleaned up testbuffer.c and added a test for gwbuf_clone_all
2015-11-05 09:36:09 +02:00
f18d921f4c
Fixed internal service test failing due to old assumptions.
2015-10-19 18:17:12 +03:00
4f316419c5
Merge branch 'develop' into MXS-329
2015-09-30 12:47:28 +03:00
638c2250c9
Fixed internal test suite.
2015-09-29 16:36:12 +03:00
de1e1f4e28
In test-programs the ss...assert functions assert always.
...
Now handled by defining the relevant defines. Should be fixed
by replacing the use of ss_info_assert with test macros that
always assert.
Task for fixing this properly:
https://mariadb.atlassian.net/browse/MXS-382
2015-09-28 10:08:50 +03:00
9efad8727a
All warnings removed.
...
Minimal changes to remove warnings when compiling.
2015-09-25 14:07:19 +03:00
c1194a5ee8
Fixed test build failures.
2015-09-10 18:07:24 +03:00
cfeaf7d6e9
Merge remote-tracking branch 'origin/develop' into MXS-329
...
Conflicts:
server/core/session.c
2015-09-10 13:07:27 +01:00
160bbb70ee
MXS-251: strerror
...
Replaces all calls to strerror with calls to strerror_r. The former
is non-thread safe while the latter is.
2015-09-05 15:52:13 +03:00
1f6b544f33
Tidy dcb_free (prefer use of dcb_close) and remove from test code; add good random number generator.
2015-08-26 15:43:21 +01:00
ab86b67bda
Fixed missing include.
2015-08-25 21:23:55 +03:00
1c9b0665ee
Use dcb_close() instead of dcb_free()
...
Use dcb_close() instead of dcb_free()
2015-08-25 16:08:29 +02:00
79c77d3f01
Fixed compiler warnings.
2015-08-25 15:23:27 +03:00
98ab399e6e
Changed sprintf calls to snprintf calls and fixed compiler warnings.
2015-08-18 10:50:48 +03:00
fffd8fb73a
Unify DCB close processing to single function dcb_close. Remove dcb_add_to_zombieslist (incorporating logic into dcb_close). Alter logic so that DCB that is just allocated will still go to zombie list if dcb->fd is not closed.
2015-07-07 16:57:12 +01:00
5f076b81d4
Merge branch 'install_dir_change' into develop
...
Conflicts:
CMakeLists.txt
Documentation/Tutorials/Administration-Tutorial.md
log_manager/CMakeLists.txt
server/core/CMakeLists.txt
server/core/gateway.c
server/core/maxkeys.c
server/core/maxpasswd.c
server/modules/filter/test/CMakeLists.txt
server/modules/routing/CMakeLists.txt
2015-05-26 13:34:39 +03:00
efef7def6d
Added test case for MXS-137: https://mariadb.atlassian.net/browse/MXS-137
2015-05-13 10:55:57 +03:00
3cd49ac364
Added missing utils library link from testmodutils.
2015-05-07 05:56:28 +03:00
d545150ceb
Fix to MXS-70: https://mariadb.atlassian.net/browse/MXS-70
...
Added assert information to error log.
2015-05-02 05:51:25 +03:00
9e0a2bfc12
Changed relevant files to use get_cachedir() instead of using the now deprecated MAXSCALE_HOME.
2015-04-27 21:55:57 +03:00
89ca0f420a
Added a rule parsing tool for the dbfwfilter. The tool can be build with the -DBUILD_TOOLS=Y flag for CMake.
2015-04-03 10:37:21 +03:00
da406db292
Changed install path to /usr/local/mariadb-maxscale
2015-03-23 20:12:56 +02:00
7cfc1d3cc9
Chaged MaxScale default installation directory to /usr/local/mariadb/maxscale and MaxAdmin password to 'mariadb'.
2015-03-23 14:53:31 +02:00
d7a7019662
Fixed Feedback test not working.
2015-03-20 16:58:04 +02:00
15262f3fbf
Added new Make target for testing MaxScale's core parts.
...
This target doesn't need a running MaxScale and only executes core, log_manager and query_classifier unit tests.
2015-03-19 11:56:40 +02:00
f383f745cb
Added timeout to Feedback test.
2015-03-19 11:40:47 +02:00
63d83cd85d
Monitor API 2.0.0 implemented.
2015-03-11 15:18:55 +02:00
11f1ed6a2c
Small fix to test.
2015-03-10 17:31:36 +02:00
2f3c380df8
Updated feedback test.
2015-03-10 17:23:41 +02:00
e937947f01
Added test_utils.h header which contains a testing environment initialization function.
2015-03-10 15:16:52 +02:00
773ad1f8a2
Removed useless test parts.
2015-03-09 18:29:03 +02:00
02e742f29e
Added unit test for feedback service.
2015-03-09 14:17:40 +02:00
ea039dd01a
Fixed to Coverity defects and a fix to tee filter not compiling with SS_DEBUG flag.
2015-03-07 06:00:01 +02:00
aa4932bf2d
Moved the housekeeper heartbeat to a separate header for ease of integration.
...
This keeps the behavior the same but allows the heartbeat to be used as a crude timer
without including everything the housekeeper.h header includes.
Moved the protocol level updates on the DCBs last_read value into dcb_read.
This keeps the implementation nice and compact.
2015-02-24 05:00:16 +02:00
578fb07370
Added timeout testing to service tests.
2015-02-23 11:13:31 +02:00
2c401788ee
Fix to bug 579: http://bugs.mariadb.com/show_bug.cgi?id=579
...
Added actual testing routers and protocols.
2015-02-20 12:30:55 +02:00
3924f70d6b
Fixed log manager sometimes not writing the last character in a log message.
...
This was caused by type conversions from int to size_t and the usage of the MAX macro.
2015-02-20 04:42:02 +02:00
06c2d201e0
remove makefiles and other garbage
2015-01-14 19:08:24 +02:00
7987365bd4
Fix to tee filter tests failing due to the default user not being found in the etc/passwd file.
2015-01-08 20:21:56 +02:00
2a02b2deba
Fixed TestUsers failing due to only adding a single user.
2015-01-08 13:48:29 +02:00
094dfbd4f7
Fixed tests not having environment variables set.
2015-01-08 13:18:14 +02:00
9717190b4a
Added calls to skygw_log_sync_all in the hint, server and user tests before each assertion that might fail.
2015-01-05 15:14:26 +02:00