more configuration options, README update and tests

This commit is contained in:
Markus Makela
2014-09-12 16:48:21 +03:00
parent ba9a31497e
commit 32b72ce474
11 changed files with 199 additions and 148 deletions

View File

@ -1,34 +1,46 @@
macro(set_maxscale_version)
#MaxScale version number
set(MAXSCALE_VERSION_MAJOR "1")
set(MAXSCALE_VERSION_MINOR "0")
set(MAXSCALE_VERSION_PATCH "0")
set(MAXSCALE_VERSION "${MAXSCALE_VERSION_MAJOR}.${MAXSCALE_VERSION_MINOR}.${MAXSCALE_VERSION_PATCH}")
set(MAXSCALE_VERSION "${MAXSCALE_VERSION_MAJOR}.${MAXSCALE_VERSION_MINOR}.${MAXSCALE_VERSION_PATCH}-beta")
endmacro()
macro(set_testing_variables)
if(NOT TEST_LOG)
set(TEST_LOG "${CMAKE_SOURCE_DIR}/test/test_maxscale.log")
endif()
# hostname or IP address of MaxScale's host
if(NOT TEST_HOST)
set(TEST_HOST "127.0.0.1")
endif()
if(NOT TEST_PORT)
set(TEST_PORT "4006")
# port of read connection router module
if(NOT TEST_PORT_RW)
set(TEST_PORT_RW "4008")
endif()
# port of read/write split router module
if(NOT TEST_PORT_RW)
set(TEST_PORT_RW "4006")
endif()
# port of read/write split router module with hints
if(NOT TEST_PORT_RW_HINT)
set(TEST_PORT_RW_HINT "4006")
endif()
# master's server_id
if(NOT TEST_MASTER_ID)
set(TEST_MASTER_ID "3000")
endif()
# username of MaxScale user
if(NOT TEST_USER)
set(TEST_USER "maxuser")
endif()
# password of MaxScale user
if(NOT TEST_PASSWORD)
set(TEST_PASSWORD "maxpwd")
endif()