remove makefiles and other garbage
This commit is contained in:
79
Makefile
79
Makefile
@ -1,79 +0,0 @@
|
|||||||
# This file is distributed as part of the MariaDB Corporation MaxScale. It is free
|
|
||||||
# software: you can redistribute it and/or modify it under the terms of the
|
|
||||||
# GNU General Public License as published by the Free Software Foundation,
|
|
||||||
# version 2.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
# details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc., 51
|
|
||||||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
|
||||||
# Copyright MariaDB Corporation Ab 2013
|
|
||||||
#
|
|
||||||
# Revision History
|
|
||||||
# Date Who Description
|
|
||||||
# 16/07/13 Mark Riddoch Initial implementation
|
|
||||||
|
|
||||||
include build_gateway.inc
|
|
||||||
|
|
||||||
DEST=$(HOME)/usr/local/skysql
|
|
||||||
|
|
||||||
#
|
|
||||||
# A special build of MaxScale is done for tests.
|
|
||||||
# HAVE_SRV carries information whether test MaxScale server
|
|
||||||
# is built already or not.
|
|
||||||
# HAVE_SRV == Y when test server is built,
|
|
||||||
# HAVE_SRV == N when not.
|
|
||||||
# It prevents unnecessary recompilation and also clean-up
|
|
||||||
# in the middle of the test.
|
|
||||||
#
|
|
||||||
HAVE_SRV := N
|
|
||||||
|
|
||||||
.PHONY: buildtestserver
|
|
||||||
|
|
||||||
all:
|
|
||||||
(cd log_manager; make)
|
|
||||||
(cd query_classifier; make)
|
|
||||||
(cd server; make)
|
|
||||||
(cd client; make)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
echo '#define MAXSCALE_VERSION "'`cat $(ROOT_PATH)/VERSION`'"' > $(ROOT_PATH)/server/include/version.h
|
|
||||||
(cd log_manager; make clean)
|
|
||||||
(cd query_classifier; make clean)
|
|
||||||
(cd server; make clean)
|
|
||||||
(cd client; touch depend.mk; make clean)
|
|
||||||
|
|
||||||
depend:
|
|
||||||
(cd log_manager; make depend)
|
|
||||||
(cd query_classifier; make depend)
|
|
||||||
(cd server; make depend)
|
|
||||||
(cd client; touch depend.mk; make depend)
|
|
||||||
|
|
||||||
install:
|
|
||||||
(cd server; make DEST=$(DEST) install)
|
|
||||||
(cd log_manager; make DEST=$(DEST) install)
|
|
||||||
(cd query_classifier;touch depend; make DEST=$(DEST) install)
|
|
||||||
(cd client; make DEST=$(DEST) install)
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
$(MAKE) -C test cleantests
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
$(MAKE) -C test buildtests
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) -C test HAVE_SRV=$(HAVE_SRV) testall
|
|
||||||
|
|
||||||
buildtestserver:
|
|
||||||
$(MAKE) DEBUG=Y DYNLIB=Y DEST=$(ROOT_PATH)/server/test clean depend all install
|
|
||||||
$(eval HAVE_SRV := Y)
|
|
||||||
|
|
||||||
documentation:
|
|
||||||
doxygen doxygate
|
|
||||||
|
|
||||||
|
|
@ -1,68 +0,0 @@
|
|||||||
#
|
|
||||||
# This file includes all dynamically changing build-related
|
|
||||||
# variables.
|
|
||||||
#
|
|
||||||
# Current values are to satisfy MaxScale build process.
|
|
||||||
#
|
|
||||||
# Modify to match with your needs. Do not commit any private
|
|
||||||
# changes to this file!
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
|
||||||
# Set debug flags
|
|
||||||
#
|
|
||||||
DEBUG := ${MAXSCALE_DEBUG}
|
|
||||||
|
|
||||||
#
|
|
||||||
# Set build env
|
|
||||||
#
|
|
||||||
UNIX := Y
|
|
||||||
|
|
||||||
#
|
|
||||||
# Set MaxScale branch directory
|
|
||||||
#
|
|
||||||
ROOT_PATH := $(HOME)/${MAXSCALE_SOURCE}
|
|
||||||
|
|
||||||
INC_PATH := $(HOME)/usr/include
|
|
||||||
#
|
|
||||||
# Set prefix to MySQL Resources
|
|
||||||
#
|
|
||||||
MYSQL_ROOT := $(INC_PATH)/mysql
|
|
||||||
|
|
||||||
#
|
|
||||||
# Set prefix of the path to development headers
|
|
||||||
#
|
|
||||||
MYSQL_HEADERS := -I$(INC_PATH) -I$(MYSQL_ROOT)/ -I$(MYSQL_ROOT)/private/ -I$(MYSQL_ROOT)/extra/
|
|
||||||
|
|
||||||
#
|
|
||||||
# Set DYNLIB=Y if you want to link MaxScale with dynamic embedded lib
|
|
||||||
#
|
|
||||||
DYNLIB := ${MAXSCALE_DYNLIB}
|
|
||||||
|
|
||||||
#
|
|
||||||
# Set path to Embedded MySQL Server
|
|
||||||
#
|
|
||||||
EMBEDDED_LIB := $(HOME)/usr/lib64
|
|
||||||
ifdef DYNLIB
|
|
||||||
EMBEDDED_LIB := $(HOME)/usr/lib64/dynlib
|
|
||||||
endif
|
|
||||||
#
|
|
||||||
# Set path to MySQL errors file
|
|
||||||
#
|
|
||||||
ERRMSG := $(HOME)/usr/share/mysql
|
|
||||||
|
|
||||||
#
|
|
||||||
# Build a binary that produces profile data
|
|
||||||
#
|
|
||||||
PROFILE := N
|
|
||||||
|
|
||||||
#
|
|
||||||
# Build a binary that produces code coverage data
|
|
||||||
#
|
|
||||||
GCOV := N
|
|
||||||
|
|
||||||
# Build optional RabbitMQ filter
|
|
||||||
# Requires librabbitmq-devel
|
|
||||||
#
|
|
||||||
BUILD_RABBITMQ := N
|
|
@ -1,83 +0,0 @@
|
|||||||
# This file is distributed as part of MaxScale. It is free
|
|
||||||
# software: you can redistribute it and/or modify it under the terms of the
|
|
||||||
# GNU General Public License as published by the Free Software Foundation,
|
|
||||||
# version 2.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
# details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc., 51
|
|
||||||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
|
||||||
# Copyright MariaDB Corporation Ab 2014
|
|
||||||
#
|
|
||||||
# Revision History
|
|
||||||
# Date Who Description
|
|
||||||
# 13/06/14 Mark Riddoch Initial implementation of MaxScale
|
|
||||||
# client program
|
|
||||||
# 18/06/14 Mark Riddoch Addition of conditional for histedit
|
|
||||||
|
|
||||||
include ../build_gateway.inc
|
|
||||||
include ../makefile.inc
|
|
||||||
|
|
||||||
ifeq ($(wildcard /usr/include/histedit.h), )
|
|
||||||
HISTLIB=
|
|
||||||
HISTFLAG=
|
|
||||||
else
|
|
||||||
HISTLIB=-ledit
|
|
||||||
HISTFLAG=-DHISTORY
|
|
||||||
endif
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
|
|
||||||
CFLAGS=-c -Wall -g $(HISTFLAG) -I ../server/include
|
|
||||||
|
|
||||||
SRCS= maxadmin.c
|
|
||||||
|
|
||||||
HDRS=
|
|
||||||
|
|
||||||
OBJ=$(SRCS:.c=.o)
|
|
||||||
|
|
||||||
LIBS=$(HISTLIB)
|
|
||||||
|
|
||||||
all: maxadmin
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
$(MAKE) -C test cleantests
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
$(MAKE) -C test buildtests
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
$(MAKE) -C test runtests
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) -C test testall
|
|
||||||
|
|
||||||
maxadmin: $(OBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(OBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(DEL) $(OBJ) maxadmin
|
|
||||||
$(DEL) *.so
|
|
||||||
|
|
||||||
tags:
|
|
||||||
ctags $(SRCS) $(HDRS)
|
|
||||||
|
|
||||||
depend:
|
|
||||||
@$(DEL) depend.mk
|
|
||||||
cc -M $(CFLAGS) $(SRCS) > depend.mk
|
|
||||||
|
|
||||||
install: maxadmin
|
|
||||||
@mkdir -p $(DEST)/bin
|
|
||||||
install -D maxadmin $(DEST)/bin
|
|
||||||
|
|
||||||
include depend.mk
|
|
10
debian/changelog
vendored
10
debian/changelog
vendored
@ -1,10 +0,0 @@
|
|||||||
maxscale (1.0-beta) UNRELEASED; urgency=low
|
|
||||||
|
|
||||||
* Beta release
|
|
||||||
|
|
||||||
-- Timofey Turenko <timofey.turenko@mariadb.com> Fri, 05 Jul 2014 14:00:00 +0200
|
|
||||||
maxscale (0.7-1) UNRELEASED; urgency=low
|
|
||||||
|
|
||||||
* Initial release. (Closes: #XXXXXX)
|
|
||||||
|
|
||||||
-- Timofey Turenko <timofey.turenko@mariadb.com> Tue, 11 Mar 2014 22:59:35 +0200
|
|
1
debian/compat
vendored
1
debian/compat
vendored
@ -1 +0,0 @@
|
|||||||
8
|
|
15
debian/control
vendored
15
debian/control
vendored
@ -1,15 +0,0 @@
|
|||||||
Source: maxscale
|
|
||||||
Maintainer: Timofey Turenko
|
|
||||||
Section: misc
|
|
||||||
Priority: optional
|
|
||||||
Standards-Version: 3.9.2
|
|
||||||
Build-Depends: debhelper (>= 8), gcc, g++, ncurses-dev, bison, build-essential, libssl-dev, libaio-dev, libmariadbclient-dev, libmariadbd-dev, mariadb-server, cmake, perl, make, libtool,
|
|
||||||
|
|
||||||
Package: maxscale
|
|
||||||
Architecture: any
|
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
|
||||||
Description: MaxScale
|
|
||||||
The MariaDB Corporation MaxScale is an intelligent proxy that allows forwarding of
|
|
||||||
database statements to one or more database servers using complex rules,
|
|
||||||
a semantic understanding of the database statements and the roles of
|
|
||||||
the various servers within the backend cluster of databases.
|
|
3
debian/install
vendored
3
debian/install
vendored
@ -1,3 +0,0 @@
|
|||||||
maxscale.conf etc/ld.so.conf.d/
|
|
||||||
etc/ubuntu/init.d/maxscale etc/init.d/
|
|
||||||
binaries/* /usr/local/skysql/maxscale/
|
|
4
debian/postinst
vendored
4
debian/postinst
vendored
@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
ln -s /lib64/libaio.so.1 /lib64/libaio.so
|
|
||||||
/sbin/ldconfig
|
|
11
debian/rules
vendored
11
debian/rules
vendored
@ -1,11 +0,0 @@
|
|||||||
#!/usr/bin/make -f
|
|
||||||
%:
|
|
||||||
$(MAKE) ROOT_PATH=$(shell pwd) HOME="" clean
|
|
||||||
$(MAKE) ROOT_PATH=$(shell pwd) HOME="" depend
|
|
||||||
$(MAKE) ROOT_PATH=$(shell pwd) HOME=""
|
|
||||||
$(MAKE) DEST="$(shell pwd)/binaries" ROOT_PATH=$(shell pwd) HOME="" ERRMSG="/usr/share/mysql/english" EMBEDDED_LIB="$(mysql_config --variable=pkglibdir)" install
|
|
||||||
dh $@
|
|
||||||
override_dh_usrlocal:
|
|
||||||
override_dh_auto_clean:
|
|
||||||
override_dh_auto_build:
|
|
||||||
override_dh_auto_install:
|
|
@ -1,157 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# maxscale: The MariaDB Corporation MaxScale database proxy
|
|
||||||
#
|
|
||||||
# description: MaxScale provides database specific proxy functionality
|
|
||||||
#
|
|
||||||
# processname: maxscale
|
|
||||||
#
|
|
||||||
### BEGIN INIT INFO
|
|
||||||
# Provides: maxscale
|
|
||||||
# Required-Start: $syslog $local_fs
|
|
||||||
# Required-Stop: $syslog $local_fs
|
|
||||||
# Default-Start: 2 3 4 5
|
|
||||||
# Default-Stop: 0 1 6
|
|
||||||
# Short-Description: The maxscale database proxy
|
|
||||||
# Description: MaxScale is a database proxy server that can be used to front end
|
|
||||||
# database clusters offering different routing, filtering and protocol choices
|
|
||||||
### END INIT INFO
|
|
||||||
|
|
||||||
#############################################
|
|
||||||
# MaxScale HOME, PIDFILE, LIB
|
|
||||||
#############################################
|
|
||||||
|
|
||||||
export MAXSCALE_HOME=/usr/local/skysql/maxscale
|
|
||||||
export MAXSCALE_PIDFILE=$MAXSCALE_HOME/log/maxscale.pid
|
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MAXSCALE_HOME/lib
|
|
||||||
|
|
||||||
###############################
|
|
||||||
# LSB Exit codes (non-Status)
|
|
||||||
###############################
|
|
||||||
_RETVAL_GENERIC=1
|
|
||||||
_RETVAL_NOT_INSTALLED=5
|
|
||||||
_RETVAL_NOT_RUNNING=7
|
|
||||||
|
|
||||||
###############################
|
|
||||||
# LSB Status action Exit codes
|
|
||||||
###############################
|
|
||||||
_RETVAL_STATUS_OK=0
|
|
||||||
_RETVAL_STATUS_NOT_RUNNING=3
|
|
||||||
|
|
||||||
# Sanity checks.
|
|
||||||
[ -x $MAXSCALE_HOME/bin/maxscale ] || exit $_RETVAL_NOT_INSTALLED
|
|
||||||
|
|
||||||
# Source function library.
|
|
||||||
. /etc/rc.d/init.d/functions
|
|
||||||
|
|
||||||
# we can rearrange this easily
|
|
||||||
processname=maxscale
|
|
||||||
servicename=maxscale
|
|
||||||
|
|
||||||
RETVAL=0
|
|
||||||
|
|
||||||
start() {
|
|
||||||
echo -n $"Starting MaxScale: "
|
|
||||||
my_check=`status -p $MAXSCALE_PIDFILE $MAXSCALE_HOME/bin/maxscale`
|
|
||||||
CHECK_RET=$?
|
|
||||||
[ $CHECK_RET -eq 0 ] && echo -n " found $my_check" && success && CHECK_RET=0
|
|
||||||
|
|
||||||
daemon --pidfile $MAXSCALE_PIDFILE $MAXSCALE_HOME/bin/maxscale >& /dev/null
|
|
||||||
|
|
||||||
RETVAL=$?
|
|
||||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
|
|
||||||
|
|
||||||
if [ $CHECK_RET -ne 0 ]; then
|
|
||||||
sleep 2
|
|
||||||
my_check=`status -p $MAXSCALE_PIDFILE $MAXSCALE_HOME/bin/maxscale`
|
|
||||||
CHECK_RET=$?
|
|
||||||
[ $CHECK_RET -eq 0 ] && echo -n $my_check && success || failure
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Return rigth code
|
|
||||||
if [ $RETVAL -ne 0 ]; then
|
|
||||||
failure
|
|
||||||
RETVAL=$_RETVAL_NOT_RUNNING
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo
|
|
||||||
|
|
||||||
return $RETVAL
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
echo -n $"Stopping MaxScale: "
|
|
||||||
killproc -p $MAXSCALE_PIDFILE -TERM
|
|
||||||
|
|
||||||
RETVAL=$?
|
|
||||||
|
|
||||||
echo
|
|
||||||
|
|
||||||
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
|
|
||||||
|
|
||||||
# Return rigth code
|
|
||||||
if [ $RETVAL -ne 0 ]; then
|
|
||||||
RETVAL=$_RETVAL_NOT_RUNNING
|
|
||||||
fi
|
|
||||||
|
|
||||||
return $RETVAL
|
|
||||||
}
|
|
||||||
|
|
||||||
reload() {
|
|
||||||
echo -n $"Reloading MaxScale: "
|
|
||||||
|
|
||||||
killproc -p $MAXSCALE_PIDFILE $MAXSCALE_HOME/bin/maxscale -HUP
|
|
||||||
RETVAL=$?
|
|
||||||
echo
|
|
||||||
}
|
|
||||||
|
|
||||||
# See how we were called.
|
|
||||||
case "$1" in
|
|
||||||
start)
|
|
||||||
start
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
stop
|
|
||||||
;;
|
|
||||||
status)
|
|
||||||
# return 0 on success
|
|
||||||
# return 3 on any error
|
|
||||||
|
|
||||||
echo -n $"Checking MaxScale status: "
|
|
||||||
status -p $MAXSCALE_PIDFILE 'MaxScale'
|
|
||||||
RETVAL=$?
|
|
||||||
|
|
||||||
if [ $RETVAL -ne 0 ]; then
|
|
||||||
echo -ne "\033[1A"
|
|
||||||
[ $RETVAL -eq 1 ] && warning || failure
|
|
||||||
echo -ne "\033[1B"
|
|
||||||
|
|
||||||
RETVAL=$_RETVAL_STATUS_NOT_RUNNING
|
|
||||||
else
|
|
||||||
echo -ne "\033[1A"
|
|
||||||
success
|
|
||||||
echo -ne "\033[1B"
|
|
||||||
RETVAL=$_RETVAL_STATUS_OK
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit $RETVAL
|
|
||||||
;;
|
|
||||||
restart)
|
|
||||||
stop
|
|
||||||
start
|
|
||||||
;;
|
|
||||||
condrestart)
|
|
||||||
if [ -f /var/lock/subsys/$servicename ]; then
|
|
||||||
stop
|
|
||||||
start
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
reload)
|
|
||||||
reload
|
|
||||||
RETVAL=$?
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
exit $RETVAL
|
|
@ -1,145 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# maxscale: The MariaDB Corporation MaxScale database proxy
|
|
||||||
#
|
|
||||||
# description: MaxScale provides database specific proxy functionality
|
|
||||||
#
|
|
||||||
# processname: maxscale
|
|
||||||
#
|
|
||||||
### BEGIN INIT INFO
|
|
||||||
# Provides: maxscale
|
|
||||||
# Required-Start: $syslog $local_fs
|
|
||||||
# Required-Stop: $syslog $local_fs
|
|
||||||
# Default-Start: 2 3 4 5
|
|
||||||
# Default-Stop: 0 1 6
|
|
||||||
# Short-Description: The maxscale database proxy
|
|
||||||
# Description: MaxScale is a database proxy server that can be used to front end
|
|
||||||
# database clusters offering different routing, filtering and protocol choices
|
|
||||||
### END INIT INFO
|
|
||||||
|
|
||||||
#############################################
|
|
||||||
# MaxScale HOME, PIDFILE, LIB
|
|
||||||
#############################################
|
|
||||||
|
|
||||||
export MAXSCALE_HOME=/usr/local/skysql/maxscale
|
|
||||||
export MAXSCALE_PIDFILE=$MAXSCALE_HOME/log/maxscale.pid
|
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MAXSCALE_HOME/lib
|
|
||||||
|
|
||||||
###############################
|
|
||||||
# LSB Exit codes (non-Status)
|
|
||||||
###############################
|
|
||||||
_RETVAL_GENERIC=1
|
|
||||||
_RETVAL_NOT_INSTALLED=5
|
|
||||||
_RETVAL_NOT_RUNNING=7
|
|
||||||
|
|
||||||
###############################
|
|
||||||
# LSB Status action Exit codes
|
|
||||||
###############################
|
|
||||||
_RETVAL_STATUS_OK=0
|
|
||||||
_RETVAL_STATUS_NOT_RUNNING=3
|
|
||||||
|
|
||||||
# Sanity checks.
|
|
||||||
[ -x $MAXSCALE_HOME/bin/maxscale ] || exit $_RETVAL_NOT_INSTALLED
|
|
||||||
|
|
||||||
#################################
|
|
||||||
# stop/start/status related vars
|
|
||||||
#################################
|
|
||||||
NAME=maxscale
|
|
||||||
DAEMON=$MAXSCALE_HOME/bin/maxscale
|
|
||||||
|
|
||||||
# Source function library.
|
|
||||||
. /lib/lsb/init-functions
|
|
||||||
|
|
||||||
# we can rearrange this easily
|
|
||||||
processname=maxscale
|
|
||||||
servicename=maxscale
|
|
||||||
|
|
||||||
RETVAL=0
|
|
||||||
|
|
||||||
start() {
|
|
||||||
log_daemon_msg "Starting MaxScale"
|
|
||||||
start_daemon -p $MAXSCALE_PIDFILE $DAEMON 2> /dev/null
|
|
||||||
|
|
||||||
sleep 2
|
|
||||||
|
|
||||||
status_of_proc -p $MAXSCALE_PIDFILE $DAEMON $NAME
|
|
||||||
|
|
||||||
log_end_msg $?
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
log_daemon_msg "Stopping MaxScale"
|
|
||||||
killproc -p $PIDFILE $DAEMON 2>&1 /dev/null
|
|
||||||
|
|
||||||
maxscale_wait_stop
|
|
||||||
|
|
||||||
log_end_msg $?
|
|
||||||
}
|
|
||||||
|
|
||||||
reload() {
|
|
||||||
log_daemon_msg "Reloading MaxScale"
|
|
||||||
|
|
||||||
killproc -p $MAXSCALE_PIDFILE $DAEMON 1
|
|
||||||
|
|
||||||
log_end_msg $?
|
|
||||||
}
|
|
||||||
|
|
||||||
maxscale_wait_stop() {
|
|
||||||
PIDTMP=$(pidofproc -p $MAXSCALE_PIDFILE $MAXSCALE_HOME/bin/maxscale)
|
|
||||||
kill -TERM "${PIDTMP:-}" 2> /dev/null;
|
|
||||||
if [ -n "${PIDTMP:-}" ] && kill -0 "${PIDTMP:-}" 2> /dev/null; then
|
|
||||||
local i=0
|
|
||||||
while kill -0 "${PIDTMP:-}" 2> /dev/null; do
|
|
||||||
if [ $i = '60' ]; then
|
|
||||||
break
|
|
||||||
STATUS=2
|
|
||||||
fi
|
|
||||||
[ "$VERBOSE" != no ] && log_progress_msg "."
|
|
||||||
sleep 1
|
|
||||||
i=$(($i+1))
|
|
||||||
done
|
|
||||||
return $STATUS
|
|
||||||
else
|
|
||||||
return $STATUS
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# See how we were called.
|
|
||||||
case "$1" in
|
|
||||||
start)
|
|
||||||
start
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
stop
|
|
||||||
;;
|
|
||||||
status)
|
|
||||||
# return 0 on success
|
|
||||||
# return 3 on any error
|
|
||||||
|
|
||||||
log_daemon_msg "Checking MaxScale"
|
|
||||||
status_of_proc -p $MAXSCALE_PIDFILE $DAEMON $NAME
|
|
||||||
RETVAL=$?
|
|
||||||
|
|
||||||
if [ $RETVAL -ne 0 ]; then
|
|
||||||
[ $RETVAL -eq 1 ]
|
|
||||||
|
|
||||||
RETVAL=$_RETVAL_STATUS_NOT_RUNNING
|
|
||||||
else
|
|
||||||
RETVAL=$_RETVAL_STATUS_OK
|
|
||||||
fi
|
|
||||||
|
|
||||||
log_end_msg $RETVAL
|
|
||||||
;;
|
|
||||||
restart)
|
|
||||||
stop
|
|
||||||
start
|
|
||||||
;;
|
|
||||||
reload)
|
|
||||||
reload
|
|
||||||
RETVAL=$?
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo $"Usage: $0 {start|stop|status|restart|reload}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
exit $RETVAL
|
|
0
etc/ubuntu/init.d/maxscale.in
Normal file → Executable file
0
etc/ubuntu/init.d/maxscale.in
Normal file → Executable file
@ -1,72 +0,0 @@
|
|||||||
include ../build_gateway.inc
|
|
||||||
include ../makefile.inc
|
|
||||||
|
|
||||||
CC = gcc
|
|
||||||
CPP = g++
|
|
||||||
|
|
||||||
SRCS := log_manager.cc
|
|
||||||
UTILS_PATH := $(ROOT_PATH)/utils
|
|
||||||
CUR_DIR := $(shell pwd)
|
|
||||||
|
|
||||||
ifeq ($(ADD_DEBUG_TAGS),Y)
|
|
||||||
CFLAGS += -DSS_LOG_DEBUG
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
makeall: clean all
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(MAKE) -C $(UTILS_PATH) clean
|
|
||||||
- $(DEL) *.o
|
|
||||||
- $(DEL) *.so
|
|
||||||
- $(DEL) *.so.1.0.1
|
|
||||||
- $(DEL) *~
|
|
||||||
- $(DEL) depend
|
|
||||||
|
|
||||||
all: utils lib
|
|
||||||
|
|
||||||
|
|
||||||
utils:
|
|
||||||
$(MAKE) -C $(UTILS_PATH) clean all
|
|
||||||
|
|
||||||
lib: libcomp liblink
|
|
||||||
|
|
||||||
libcomp:
|
|
||||||
$(CPP) -c $(CFLAGS) \
|
|
||||||
$(MYSQL_HEADERS) \
|
|
||||||
-I$(UTILS_PATH) -I./ \
|
|
||||||
-fPIC ./log_manager.cc -o log_manager.o $(LDLIBS)
|
|
||||||
|
|
||||||
liblink:
|
|
||||||
$(CPP) -shared \
|
|
||||||
-Wl,-soname,liblog_manager.so \
|
|
||||||
-o liblog_manager.so.1.0.1 log_manager.o \
|
|
||||||
$(LDLIBS) $(CPP_LDLIBS)
|
|
||||||
$(DEL) ./liblog_manager.so
|
|
||||||
$(LINK) ./liblog_manager.so.1.0.1 ./liblog_manager.so
|
|
||||||
|
|
||||||
install: liblink
|
|
||||||
install liblog_manager.so.1.0.1 liblog_manager.so $(DEST)/lib
|
|
||||||
|
|
||||||
depend:
|
|
||||||
@$(DEL) depend
|
|
||||||
$(CPP) -M $(CFLAGS) \
|
|
||||||
$(MYSQL_HEADERS) \
|
|
||||||
-I$(UTILS_PATH) -I./ \
|
|
||||||
$(SRCS) > depend
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
$(MAKE) -C test cleantests
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
$(MAKE) -C test DEBUG=Y buildtests
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
$(MAKE) -C test runtests
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) -C test testall
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
include depend
|
|
@ -1,85 +0,0 @@
|
|||||||
# cleantests - clean local and subdirectories' tests
|
|
||||||
# buildtests - build all local and subdirectories' tests
|
|
||||||
# runtests - run all local tests
|
|
||||||
# testall - clean, build and run local and subdirectories' tests
|
|
||||||
|
|
||||||
include ../../build_gateway.inc
|
|
||||||
include ../../makefile.inc
|
|
||||||
include ../../test.inc
|
|
||||||
|
|
||||||
CC = gcc
|
|
||||||
CPP = g++
|
|
||||||
|
|
||||||
TESTPATH := $(shell pwd)
|
|
||||||
TESTLOG := $(TESTPATH)/testlog.log
|
|
||||||
LOG_MANAGER_PATH:= $(ROOT_PATH)/log_manager
|
|
||||||
TESTAPP := $(TESTPATH)/testlog
|
|
||||||
UTILS_PATH := $(ROOT_PATH)/utils
|
|
||||||
|
|
||||||
# Use two threads by default
|
|
||||||
ifndef NTHR
|
|
||||||
NTHR=2
|
|
||||||
endif
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) cleantests
|
|
||||||
$(MAKE) DEBUG=Y buildtests
|
|
||||||
$(MAKE) runtests
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
- $(DEL) *.o
|
|
||||||
- $(DEL) *.log
|
|
||||||
- $(DEL) testlog
|
|
||||||
- $(DEL) testorder
|
|
||||||
- $(DEL) *~
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
$(MAKE) -C $(LOG_MANAGER_PATH) ADD_DEBUG_TAGS=Y
|
|
||||||
$(CC) $(CFLAGS) \
|
|
||||||
-L$(LOG_MANAGER_PATH) \
|
|
||||||
-Wl,-rpath,$(DEST)/lib \
|
|
||||||
-Wl,-rpath,$(LOG_MANAGER_PATH)/ \
|
|
||||||
-o testlog \
|
|
||||||
-I$(MARIADB_SRC_PATH)/include \
|
|
||||||
-I$(LOG_MANAGER_PATH) -I$(UTILS_PATH) testlog.c \
|
|
||||||
-lstdc++ -llog_manager $(LDLIBS) \
|
|
||||||
$(UTILS_PATH)/skygw_utils.o
|
|
||||||
$(CC) $(CFLAGS) \
|
|
||||||
-L$(LOG_MANAGER_PATH) \
|
|
||||||
-Wl,-rpath,$(DEST)/lib \
|
|
||||||
-Wl,-rpath,$(LOG_MANAGER_PATH)/ \
|
|
||||||
-o testorder \
|
|
||||||
-I$(MARIADB_SRC_PATH)/include \
|
|
||||||
-I$(LOG_MANAGER_PATH) -I$(UTILS_PATH) testorder.c \
|
|
||||||
-lstdc++ -llog_manager $(LDLIBS) \
|
|
||||||
$(UTILS_PATH)/skygw_utils.o
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
@echo "" > $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test Log Manager" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@echo "Use 1 thread" >> $(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@-$(LAUNCH_DEBUGGER) $(TESTAPP) "-t 1" 2>>$(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@echo "Use 8 threads" >> $(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@-$(LAUNCH_DEBUGGER) $(TESTAPP) "-t 8" 2>>$(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@echo "Use 16 threads" >> $(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@-$(LAUNCH_DEBUGGER) $(TESTAPP) "-t 16" 2>>$(TESTLOG)
|
|
||||||
@echo "" >> $(TEST_MAXSCALE_LOG)
|
|
||||||
@echo "Test Message Order" >> $(TEST_MAXSCALE_LOG)
|
|
||||||
@echo "" >> $(TEST_MAXSCALE_LOG)
|
|
||||||
./logorder.sh 500 0 500 $(TEST_MAXSCALE_LOG)
|
|
||||||
@echo "Log Manager PASSED" >> $(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
|
|
||||||
# @cat $(TESTLOG) >> $(TEST_MAXSCALE_LOG)
|
|
53
makefile.inc
53
makefile.inc
@ -1,53 +0,0 @@
|
|||||||
#
|
|
||||||
# This file is static. It handles the dynamic content of build.inc,
|
|
||||||
# for example, by setting compiler flags etc.
|
|
||||||
|
|
||||||
# Changes to environment, such as building directories etc. are made to
|
|
||||||
# build_gateway.inc.
|
|
||||||
# A template file build_gateway_l2x64.inc is stored in directory 'config'.
|
|
||||||
# Template can't be used as such, but hopefully only little modifications are
|
|
||||||
# needed, such as setting build directory etc.
|
|
||||||
#
|
|
||||||
|
|
||||||
#ifdef UNIX
|
|
||||||
DEL := rm -fr
|
|
||||||
LINK := ln -s
|
|
||||||
COPY := cp
|
|
||||||
NOHUP := nohup
|
|
||||||
#endif
|
|
||||||
|
|
||||||
LIB := libmysqld.a
|
|
||||||
|
|
||||||
ifdef DYNLIB
|
|
||||||
LIB := libmysqld.so.18
|
|
||||||
endif
|
|
||||||
|
|
||||||
# -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC
|
|
||||||
|
|
||||||
CFLAGS := $(CFLAGS) -Wall
|
|
||||||
LDLIBS := $(LDLIBS) -pthread -lm
|
|
||||||
LDMYSQL := -lmysqld
|
|
||||||
CPP_LDLIBS := -lstdc++
|
|
||||||
|
|
||||||
#
|
|
||||||
# Compiler flags, httpd arguments and debugger options
|
|
||||||
#
|
|
||||||
ifdef DEBUG
|
|
||||||
DEBUG_FLAGS := -DSS_DEBUG -pipe -Wformat -Werror=format-security -fstack-protector --param=ssp-buffer-size=4 -fPIC
|
|
||||||
CFLAGS := $(CFLAGS) -ggdb -O0 -pthread $(DEBUG_FLAGS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
ifdef PROF
|
|
||||||
CFLAGS := $(CFLAGS) -DSS_PROF
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq "$(PROFILE)" "Y"
|
|
||||||
CFLAGS += -pg
|
|
||||||
LDFLAGS += -pg
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq "$(GCOV)" "Y"
|
|
||||||
CFLAGS += -fprofile-arcs -ftest-coverage
|
|
||||||
LIBS += -lgcov
|
|
||||||
endif
|
|
@ -1,2 +0,0 @@
|
|||||||
/usr/local/skysql/maxscale/modules
|
|
||||||
/usr/local/skysql/maxscale/lib
|
|
@ -1,66 +0,0 @@
|
|||||||
%define _topdir %(echo $PWD)/
|
|
||||||
%define name maxscale
|
|
||||||
%define release beta
|
|
||||||
%define version 1.0
|
|
||||||
%define install_path /usr/local/skysql/maxscale/
|
|
||||||
|
|
||||||
BuildRoot: %{buildroot}
|
|
||||||
Summary: maxscale
|
|
||||||
License: GPL
|
|
||||||
Name: %{name}
|
|
||||||
Version: %{version}
|
|
||||||
Release: %{release}
|
|
||||||
Source: %{name}-%{version}-%{release}.tar.gz
|
|
||||||
Prefix: /
|
|
||||||
Group: Development/Tools
|
|
||||||
#Requires:
|
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
BuildRequires: gcc gcc-c++ ncurses-devel bison glibc-devel cmake libgcc_s1 perl make libtool libopenssl-devel libaio libaio-devel mariadb libedit-devel librabbitmq-devel
|
|
||||||
%else
|
|
||||||
BuildRequires: gcc gcc-c++ ncurses-devel bison glibc-devel cmake libgcc perl make libtool openssl-devel libaio libaio-devel librabbitmq-devel
|
|
||||||
%if 0%{?rhel} == 6
|
|
||||||
BuildRequires: libedit-devel
|
|
||||||
%endif
|
|
||||||
%if 0%{?rhel} == 7
|
|
||||||
BuildRequires: mariadb-devel mariadb-embedded-devel libedit-devel
|
|
||||||
%else
|
|
||||||
BuildRequires: MariaDB-devel MariaDB-server
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
|
||||||
MaxScale
|
|
||||||
|
|
||||||
%prep
|
|
||||||
|
|
||||||
%setup -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
#ln -s /lib64/libaio.so.1 /lib64/libaio.so
|
|
||||||
make ROOT_PATH=`pwd` HOME="" $DEBUG_FLAG1 $DEBUG_FLAG2 clean
|
|
||||||
make ROOT_PATH=`pwd` HOME="" $DEBUG_FLAG1 $DEBUG_FLAG2 depend
|
|
||||||
make ROOT_PATH=`pwd` HOME="" $DEBUG_FLAG1 $DEBUG_FLAG2
|
|
||||||
make DEST=`pwd`/binaries ROOT_PATH=`pwd` HOME="" ERRMSG="/usr/share/mysql/english" $DEBUG_FLAG1 $DEBUG_FLAG2 install
|
|
||||||
|
|
||||||
%post
|
|
||||||
ln -s /lib64/libaio.so.1 /lib64/libaio.so
|
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%install
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d/
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/init.d/
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{install_path}
|
|
||||||
cp -r binaries/* $RPM_BUILD_ROOT%{install_path}
|
|
||||||
cp maxscale.conf $RPM_BUILD_ROOT/etc/ld.so.conf.d/
|
|
||||||
cp etc/init.d/maxscale $RPM_BUILD_ROOT/etc/init.d/
|
|
||||||
|
|
||||||
%clean
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{install_path}
|
|
||||||
/etc/ld.so.conf.d/maxscale.conf
|
|
||||||
/etc/init.d/maxscale
|
|
||||||
|
|
||||||
%changelog
|
|
@ -1,79 +0,0 @@
|
|||||||
include ../build_gateway.inc
|
|
||||||
include ../makefile.inc
|
|
||||||
|
|
||||||
CC = gcc
|
|
||||||
CPP = g++
|
|
||||||
|
|
||||||
SRCS := query_classifier.cc
|
|
||||||
UTILS_PATH := $(ROOT_PATH)/utils
|
|
||||||
QUERY_CLASSIFIER_PATH := $(ROOT_PATH)/query_classifier
|
|
||||||
LOG_MANAGER_PATH := $(ROOT_PATH)/log_manager
|
|
||||||
SERVER_INC_PATH := $(ROOT_PATH)/server/include
|
|
||||||
MODULE_INC_PATH := $(ROOT_PATH)/server/modules/include
|
|
||||||
|
|
||||||
makeall: clean all
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(MAKE) -C $(UTILS_PATH) clean
|
|
||||||
- $(DEL) query_classifier.o
|
|
||||||
- $(DEL) libquery_classifier.so
|
|
||||||
- $(DEL) libquery_classifier.so.1.0.1
|
|
||||||
- $(DEL) *~
|
|
||||||
- $(DEL) depend
|
|
||||||
|
|
||||||
all: utils lib
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
$(MAKE) -C test cleantests
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
$(MAKE) -C test DEBUG=Y DYNLIB=Y buildtests
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
$(MAKE) -C test runtests
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) -C test testall
|
|
||||||
|
|
||||||
utils:
|
|
||||||
$(MAKE) -C $(UTILS_PATH) clean all
|
|
||||||
|
|
||||||
lib: libcomp liblink
|
|
||||||
|
|
||||||
libcomp:
|
|
||||||
$(CPP) -c $(CFLAGS) \
|
|
||||||
$(MYSQL_HEADERS) \
|
|
||||||
-I$(LOG_MANAGER_PATH) \
|
|
||||||
-I$(SERVER_INC_PATH) \
|
|
||||||
-I$(MODULE_INC_PATH) \
|
|
||||||
-I$(UTILS_PATH) \
|
|
||||||
-I./ \
|
|
||||||
-fPIC ./query_classifier.cc -o query_classifier.o
|
|
||||||
|
|
||||||
liblink:
|
|
||||||
$(CPP) -shared \
|
|
||||||
-L$(EMBEDDED_LIB) \
|
|
||||||
-Wl,-soname,libquery_classifier.so \
|
|
||||||
-Wl,-rpath,$(DEST)/lib \
|
|
||||||
-Wl,-rpath,$(EMBEDDED_LIB) \
|
|
||||||
-o libquery_classifier.so.1.0.1 ./query_classifier.o \
|
|
||||||
$(LDLIBS) $(LDMYSQL) $(CPP_LDLIBS)
|
|
||||||
$(DEL) ./libquery_classifier.so
|
|
||||||
$(LINK) ./libquery_classifier.so.1.0.1 ./libquery_classifier.so
|
|
||||||
|
|
||||||
|
|
||||||
install: liblink
|
|
||||||
install ./libquery_classifier.so.1.0.1 ./libquery_classifier.so $(DEST)/lib
|
|
||||||
|
|
||||||
depend:
|
|
||||||
@$(DEL) depend
|
|
||||||
$(CPP) -M $(CFLAGS) \
|
|
||||||
$(MYSQL_HEADERS) \
|
|
||||||
-I$(LOG_MANAGER_PATH) \
|
|
||||||
-I$(SERVER_INC_PATH) \
|
|
||||||
-I$(MODULE_INC_PATH) \
|
|
||||||
-I$(UTILS_PATH) \
|
|
||||||
-I./ \
|
|
||||||
$(SRCS) > depend
|
|
||||||
|
|
||||||
include depend
|
|
@ -1,62 +0,0 @@
|
|||||||
# cleantests - clean local and subdirectories' tests
|
|
||||||
# buildtests - build all local and subdirectories' tests
|
|
||||||
# runtests - run all local tests
|
|
||||||
# testall - clean, build and run local and subdirectories' tests
|
|
||||||
|
|
||||||
include ../../../build_gateway.inc
|
|
||||||
include ../../../makefile.inc
|
|
||||||
include ../../../test.inc
|
|
||||||
|
|
||||||
CC = gcc
|
|
||||||
CPP = g++
|
|
||||||
|
|
||||||
TESTPATH := $(shell pwd)
|
|
||||||
TESTLOG := $(TESTPATH)/testqclass.log
|
|
||||||
QUERY_CLASSIFIER_PATH := $(ROOT_PATH)/query_classifier
|
|
||||||
LOG_MANAGER_PATH := $(ROOT_PATH)/log_manager
|
|
||||||
UTILS_PATH := $(ROOT_PATH)/utils
|
|
||||||
CORE_PATH := $(ROOT_PATH)/server/core
|
|
||||||
TESTAPP = $(TESTPATH)/canonizer
|
|
||||||
|
|
||||||
LDFLAGS=-L$(QUERY_CLASSIFIER_PATH) \
|
|
||||||
-L$(LOG_MANAGER_PATH) \
|
|
||||||
-L$(EMBEDDED_LIB) \
|
|
||||||
-Wl,-rpath,$(DEST)/lib \
|
|
||||||
-Wl,-rpath,$(EMBEDDED_LIB) \
|
|
||||||
-Wl,-rpath,$(LOG_MANAGER_PATH) \
|
|
||||||
-Wl,-rpath,$(QUERY_CLASSIFIER_PATH)
|
|
||||||
|
|
||||||
LIBS=-lstdc++ -lpthread -lquery_classifier -lz -ldl -lssl -laio -lcrypt -lcrypto -lrt -lm \
|
|
||||||
-llog_manager $(UTILS_PATH)/skygw_utils.o $(CORE_PATH)/buffer.o $(CORE_PATH)/atomic.o $(CORE_PATH)/spinlock.o $(CORE_PATH)/hint.o
|
|
||||||
|
|
||||||
CFLAGS=-g $(MYSQL_HEADERS) \
|
|
||||||
-I$(QUERY_CLASSIFIER_PATH) \
|
|
||||||
$(MYSQL_HEADERS) \
|
|
||||||
-I$(ROOT_PATH)/server/include \
|
|
||||||
-I$(UTILS_PATH)
|
|
||||||
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) cleantests
|
|
||||||
$(MAKE) buildtests
|
|
||||||
$(MAKE) runtests
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
- $(DEL) *.o
|
|
||||||
- $(DEL) *~
|
|
||||||
- $(DEL) canonizer
|
|
||||||
- $(DEL) aria_log*
|
|
||||||
- $(DEL) ib*
|
|
||||||
|
|
||||||
buildtests: $(OBJS)
|
|
||||||
cp $(ERRMSG)/errmsg.sys .
|
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) canonizer.c -o $(TESTAPP) $(LDLIBS) $(LDMYSQL)
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
@echo "" > $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Canonical Query Tests" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
./canontest.sh $(TESTLOG) input.sql output.sql expected.sql
|
|
0
query_classifier/test/canonical_tests/expected.sql
Executable file → Normal file
0
query_classifier/test/canonical_tests/expected.sql
Executable file → Normal file
0
query_classifier/test/canonical_tests/input.sql
Executable file → Normal file
0
query_classifier/test/canonical_tests/input.sql
Executable file → Normal file
@ -1,83 +0,0 @@
|
|||||||
# cleantests - clean local and subdirectories' tests
|
|
||||||
# buildtests - build all local and subdirectories' tests
|
|
||||||
# runtests - run all local tests
|
|
||||||
# testall - clean, build and run local and subdirectories' tests
|
|
||||||
|
|
||||||
include ../../build_gateway.inc
|
|
||||||
include ../../makefile.inc
|
|
||||||
include ../../test.inc
|
|
||||||
|
|
||||||
CC = gcc
|
|
||||||
CPP = g++
|
|
||||||
|
|
||||||
TESTPATH := $(shell pwd)
|
|
||||||
TESTLOG := $(TESTPATH)/testqclass.log
|
|
||||||
QUERY_CLASSIFIER_PATH := $(ROOT_PATH)/query_classifier
|
|
||||||
LOG_MANAGER_PATH := $(ROOT_PATH)/log_manager
|
|
||||||
UTILS_PATH := $(ROOT_PATH)/utils
|
|
||||||
TESTAPP = $(TESTPATH)/testmain
|
|
||||||
|
|
||||||
testall:buildtests
|
|
||||||
$(MAKE) -C canonical_tests testall
|
|
||||||
testalllaters:
|
|
||||||
$(MAKE) cleantests
|
|
||||||
$(MAKE) DEBUG=Y DYNLIB=Y buildtests
|
|
||||||
$(MAKE) runtests
|
|
||||||
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
- $(DEL) testmain.o
|
|
||||||
- $(DEL) testmain
|
|
||||||
- $(DEL) data
|
|
||||||
- $(DEL) *~
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
@echo ""
|
|
||||||
@echo "*********************************************************"
|
|
||||||
@echo "Query classifier test disabled for now. vraa 4.7.2014"
|
|
||||||
@echo "*********************************************************"
|
|
||||||
@echo ""
|
|
||||||
|
|
||||||
buildtestslaters:
|
|
||||||
$(CC) $(CFLAGS) \
|
|
||||||
-L$(QUERY_CLASSIFIER_PATH) \
|
|
||||||
-L$(LOG_MANAGER_PATH) \
|
|
||||||
-L$(EMBEDDED_LIB) \
|
|
||||||
-Wl,-rpath,$(DEST)/lib \
|
|
||||||
-Wl,-rpath,$(EMBEDDED_LIB) \
|
|
||||||
-Wl,-rpath,$(LOG_MANAGER_PATH) \
|
|
||||||
-Wl,-rpath,$(QUERY_CLASSIFIER_PATH) \
|
|
||||||
-o testmain -DSS_DEBUG \
|
|
||||||
$(MYSQL_HEADERS) \
|
|
||||||
-I$(QUERY_CLASSIFIER_PATH) \
|
|
||||||
-I./ \
|
|
||||||
-I$(UTILS_PATH) \
|
|
||||||
testmain.c \
|
|
||||||
$(UTILS_PATH)/skygw_utils.o \
|
|
||||||
-lquery_classifier -lz -ldl -lssl -laio -lcrypt -lrt \
|
|
||||||
-llog_manager \
|
|
||||||
$(LDLIBS) $(LDMYSQL)
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
@echo "" > $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test Query Classifier" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo "Query Classifier NOT TESTED due deprecated tests. vraa 4.7.2014" >> $(TESTLOG)
|
|
||||||
@cat $(TESTLOG) >> $(TEST_MAXSCALE_LOG)
|
|
||||||
|
|
||||||
|
|
||||||
runtestslaters:
|
|
||||||
@echo "" > $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test Query Classifier" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@ -$(LAUNCH_DEBUGGER) $(TESTAPP) $(BACKGR) 2>> $(TESTLOG)
|
|
||||||
ifeq ($?, 0)
|
|
||||||
@echo "Query Classifier PASSED" >> $(TESTLOG)
|
|
||||||
else
|
|
||||||
@echo "Query Classifier FAILED" >> $(TESTLOG)
|
|
||||||
endif
|
|
||||||
@cat $(TESTLOG) >> $(TEST_MAXSCALE_LOG)
|
|
@ -1,15 +0,0 @@
|
|||||||
include buildconfig.inc
|
|
||||||
|
|
||||||
CC=gcc
|
|
||||||
CFLAGS=-c -Wall -g -Iinih $(INCLUDE_DIRS)
|
|
||||||
LDFLAGS= $(LIBRARY_DIRS) -lrabbitmq -lmysqlclient
|
|
||||||
SRCS= inih/ini.c consumer.c
|
|
||||||
OBJ=$(SRCS:.c=.o)
|
|
||||||
all:$(OBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(OBJ) -o consumer `mysql_config --cflags --libs`
|
|
||||||
%.o:%.c
|
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
clean:
|
|
||||||
-rm *.o
|
|
||||||
-rm *~
|
|
0
rabbitmq_consumer/inih/LICENSE.txt
Executable file → Normal file
0
rabbitmq_consumer/inih/LICENSE.txt
Executable file → Normal file
0
rabbitmq_consumer/inih/README.txt
Executable file → Normal file
0
rabbitmq_consumer/inih/README.txt
Executable file → Normal file
0
rabbitmq_consumer/inih/cpp/INIReader.cpp
Executable file → Normal file
0
rabbitmq_consumer/inih/cpp/INIReader.cpp
Executable file → Normal file
0
rabbitmq_consumer/inih/cpp/INIReader.h
Executable file → Normal file
0
rabbitmq_consumer/inih/cpp/INIReader.h
Executable file → Normal file
0
rabbitmq_consumer/inih/cpp/INIReaderTest.cpp
Executable file → Normal file
0
rabbitmq_consumer/inih/cpp/INIReaderTest.cpp
Executable file → Normal file
0
rabbitmq_consumer/inih/examples/config.def
Executable file → Normal file
0
rabbitmq_consumer/inih/examples/config.def
Executable file → Normal file
0
rabbitmq_consumer/inih/examples/ini_dump.c
Executable file → Normal file
0
rabbitmq_consumer/inih/examples/ini_dump.c
Executable file → Normal file
0
rabbitmq_consumer/inih/examples/ini_example.c
Executable file → Normal file
0
rabbitmq_consumer/inih/examples/ini_example.c
Executable file → Normal file
0
rabbitmq_consumer/inih/examples/ini_xmacros.c
Executable file → Normal file
0
rabbitmq_consumer/inih/examples/ini_xmacros.c
Executable file → Normal file
0
rabbitmq_consumer/inih/examples/test.ini
Executable file → Normal file
0
rabbitmq_consumer/inih/examples/test.ini
Executable file → Normal file
@ -1,19 +0,0 @@
|
|||||||
# Simple makefile to build inih as a static library using g++
|
|
||||||
|
|
||||||
SRC = ../ini.c
|
|
||||||
OBJ = $(SRC:.c=.o)
|
|
||||||
OUT = libinih.a
|
|
||||||
INCLUDES = -I..
|
|
||||||
CCFLAGS = -g -O2
|
|
||||||
CC = g++
|
|
||||||
|
|
||||||
default: $(OUT)
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(INCLUDES) $(CCFLAGS) $(EXTRACCFLAGS) -c $< -o $@
|
|
||||||
|
|
||||||
$(OUT): $(OBJ)
|
|
||||||
ar rcs $(OUT) $(OBJ) $(EXTRAARFLAGS)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f $(OBJ) $(OUT)
|
|
0
rabbitmq_consumer/inih/ini.c
Executable file → Normal file
0
rabbitmq_consumer/inih/ini.c
Executable file → Normal file
0
rabbitmq_consumer/inih/ini.h
Executable file → Normal file
0
rabbitmq_consumer/inih/ini.h
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/bad_comment.ini
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/bad_comment.ini
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/bad_multi.ini
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/bad_multi.ini
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/bad_section.ini
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/bad_section.ini
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/baseline_multi.txt
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/baseline_multi.txt
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/baseline_single.txt
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/baseline_single.txt
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/bom.ini
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/bom.ini
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/multi_line.ini
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/multi_line.ini
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/normal.ini
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/normal.ini
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/unittest.c
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/unittest.c
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/user_error.ini
Executable file → Normal file
0
rabbitmq_consumer/inih/tests/user_error.ini
Executable file → Normal file
@ -1,80 +0,0 @@
|
|||||||
# This file is distributed as part of the MariaDB Corporation MaxScale. It is free
|
|
||||||
# software: you can redistribute it and/or modify it under the terms of the
|
|
||||||
# GNU General Public License as published by the Free Software Foundation,
|
|
||||||
# version 2.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
# details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc., 51
|
|
||||||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
|
||||||
# Copyright MariaDB Corporation Ab 2013
|
|
||||||
#
|
|
||||||
# Revision History
|
|
||||||
# Date Who Description
|
|
||||||
# 14/06/13 Mark Riddoch Initial implementation
|
|
||||||
# 17/06/13 Mark Riddoch Addition of documentation and depend
|
|
||||||
# targets
|
|
||||||
# 18/06/13 Mark Riddoch Addition of install target
|
|
||||||
# 21/06/13 Mark Riddoch Addition of inih
|
|
||||||
# 08/07/13 Mark Riddoch Addition of monitor modules
|
|
||||||
# 16/07/13 Mark Riddoch Renamed things to match the new naming
|
|
||||||
|
|
||||||
include ../build_gateway.inc
|
|
||||||
include ../makefile.inc
|
|
||||||
|
|
||||||
DEST=$(HOME)/usr/local/skysql
|
|
||||||
|
|
||||||
all:
|
|
||||||
(cd inih/extra ; make -f Makefile.static)
|
|
||||||
(cd core ; touch depend.mk ; make)
|
|
||||||
(cd modules/routing; touch depend.mk ;make)
|
|
||||||
(cd modules/routing/readwritesplit; touch depend.mk ;make)
|
|
||||||
(cd modules/protocol; touch depend.mk ;make)
|
|
||||||
(cd modules/monitor; touch depend.mk ;make)
|
|
||||||
(cd modules/filter; touch depend.mk ;make)
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
$(MAKE) -C test cleantests
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
$(MAKE) -C test HAVE_SRV=$(HAVE_SRV) buildtests
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) -C test HAVE_SRV=$(HAVE_SRV) testall
|
|
||||||
|
|
||||||
clean:
|
|
||||||
(cd Documentation; $(DEL) html)
|
|
||||||
(cd core; touch depend.mk ; make clean)
|
|
||||||
(cd modules/routing; touch depend.mk ; make clean)
|
|
||||||
(cd modules/protocol; touch depend.mk ; make clean)
|
|
||||||
(cd modules/monitor; touch depend.mk ; make clean)
|
|
||||||
(cd modules/filter; touch depend.mk ; make clean)
|
|
||||||
|
|
||||||
depend:
|
|
||||||
(cd core; touch depend.mk ; make depend)
|
|
||||||
(cd modules/routing; touch depend.mk ; make depend)
|
|
||||||
(cd modules/protocol; touch depend.mk ; make depend)
|
|
||||||
(cd modules/monitor; touch depend.mk ; make depend)
|
|
||||||
(cd modules/filter; touch depend.mk ; make depend)
|
|
||||||
|
|
||||||
install:
|
|
||||||
@mkdir -p $(DEST)
|
|
||||||
@mkdir -p $(DEST)
|
|
||||||
@mkdir -p $(DEST)/modules
|
|
||||||
@mkdir -p $(DEST)/log
|
|
||||||
@mkdir -p $(DEST)/etc
|
|
||||||
@mkdir -p $(DEST)/mysql
|
|
||||||
@mkdir -p $(DEST)/lib
|
|
||||||
@mkdir -p $(DEST)/Documentation
|
|
||||||
install -b MaxScale_template.cnf $(DEST)/etc
|
|
||||||
install ../Documentation/*.pdf $(DEST)/Documentation
|
|
||||||
(cd core; make DEST=$(DEST) install)
|
|
||||||
(cd modules/routing; make DEST=$(DEST) install)
|
|
||||||
(cd modules/protocol; make DEST=$(DEST) install)
|
|
||||||
(cd modules/monitor; make DEST=$(DEST) install)
|
|
||||||
(cd modules/filter; make DEST=$(DEST) install)
|
|
@ -1,132 +0,0 @@
|
|||||||
# This file is distributed as part of the MariaDB Corporation MaxScale. It is free
|
|
||||||
# software: you can redistribute it and/or modify it under the terms of the
|
|
||||||
# GNU General Public License as published by the Free Software Foundation,
|
|
||||||
# version 2.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
# details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc., 51
|
|
||||||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
|
||||||
# Copyright MariaDB Corporation Ab 2013
|
|
||||||
#
|
|
||||||
# Revision History
|
|
||||||
# Date Who Description
|
|
||||||
# 13/06/13 Mark Riddoch Addition of -rdynamic to allow libraries
|
|
||||||
# to resolve symbols in the main executable
|
|
||||||
# 17/06/13 Mark Riddoch Addition of dependency generation
|
|
||||||
# 24/06/13 Massimiliano Pinto Addition of libmysqlclient and its
|
|
||||||
# includes do this for launching the
|
|
||||||
# gateway: export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH:/packages/mariadb-5.5.25/libmysql
|
|
||||||
# 27/06/13 Vilho Raatikka Added logmanager-related libs and
|
|
||||||
# headers so that liblog_manager.so can
|
|
||||||
# be linked in.
|
|
||||||
# 28/06/13 Vilho Raatikka Added query classifier-related libs and
|
|
||||||
# commented out mysql client headers and
|
|
||||||
# lib to avoid conflicts. MARIADB_SRC_PATH
|
|
||||||
# is set in build_gateway.inc. Examples
|
|
||||||
# are behind SS_DEBUG macros.
|
|
||||||
# 29/06/13 Vilho Raatikka Reverted Query classifier changes because
|
|
||||||
# gateway needs mysql client lib, not qc.
|
|
||||||
# 24/07/13 Mark Ridoch Addition of encryption routines
|
|
||||||
# 30/05/14 Mark Riddoch Filter API added
|
|
||||||
# 25/07/14 Mark Riddoch Addition of hints
|
|
||||||
# 29/08/14 Mark Riddoch Added housekeeper
|
|
||||||
|
|
||||||
include ../../build_gateway.inc
|
|
||||||
|
|
||||||
LOGPATH := $(ROOT_PATH)/log_manager
|
|
||||||
UTILSPATH := $(ROOT_PATH)/utils
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
|
|
||||||
CFLAGS=-c -I/usr/include -I../include -I../modules/include -I../inih \
|
|
||||||
$(MYSQL_HEADERS) \
|
|
||||||
-I$(LOGPATH) -I$(UTILSPATH) \
|
|
||||||
-Wall -pedantic -g
|
|
||||||
|
|
||||||
LDFLAGS=-rdynamic -L$(LOGPATH) \
|
|
||||||
-Wl,-rpath,$(DEST)/lib \
|
|
||||||
-Wl,-rpath,$(LOGPATH) -Wl,-rpath,$(UTILSPATH) \
|
|
||||||
-Wl,-rpath,$(EMBEDDED_LIB)
|
|
||||||
|
|
||||||
|
|
||||||
LIBS=-L$(EMBEDDED_LIB) \
|
|
||||||
-lmysqld \
|
|
||||||
-lz -lm -lcrypt -lcrypto -ldl -laio -lrt -pthread -llog_manager \
|
|
||||||
-L../inih/extra -linih -lssl -lstdc++
|
|
||||||
|
|
||||||
include ../../makefile.inc
|
|
||||||
|
|
||||||
SRCS= atomic.c buffer.c spinlock.c gateway.c \
|
|
||||||
gw_utils.c utils.c dcb.c load_utils.c session.c service.c server.c \
|
|
||||||
poll.c config.c users.c hashtable.c dbusers.c thread.c gwbitmask.c \
|
|
||||||
monitor.c adminusers.c secrets.c filter.c modutil.c hint.c \
|
|
||||||
housekeeper.c memlog.c
|
|
||||||
|
|
||||||
HDRS= ../include/atomic.h ../include/buffer.h ../include/dcb.h \
|
|
||||||
../include/gw.h ../modules/include/mysql_client_server_protocol.h \
|
|
||||||
../include/session.h ../include/spinlock.h ../include/thread.h \
|
|
||||||
../include/modules.h ../include/poll.h ../include/config.h \
|
|
||||||
../include/users.h ../include/hashtable.h ../include/gwbitmask.h \
|
|
||||||
../include/adminusers.h ../include/version.h ../include/maxscale.h \
|
|
||||||
../include/filter.h ../include/modutil.h ../hint.h \
|
|
||||||
../include/housekeeper.h ../include/memlog.h
|
|
||||||
|
|
||||||
OBJ=$(SRCS:.c=.o)
|
|
||||||
|
|
||||||
KOBJS=maxkeys.o secrets.o utils.o
|
|
||||||
POBJS=maxpasswd.o secrets.o utils.o
|
|
||||||
|
|
||||||
all: maxscale maxkeys maxpasswd
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
$(MAKE) -C test cleantests
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
$(MAKE) -C test buildtests
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
$(MAKE) -C test runtests
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) -C test testall
|
|
||||||
|
|
||||||
maxscale: $(OBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(OBJ) $(UTILSPATH)/skygw_utils.o $(LIBS) -o $@
|
|
||||||
|
|
||||||
maxkeys: $(KOBJS)
|
|
||||||
$(CC) $(LDFLAGS) $(KOBJS) $(UTILSPATH)/skygw_utils.o $(LIBS) -o $@
|
|
||||||
|
|
||||||
maxpasswd: $(POBJS)
|
|
||||||
$(CC) $(LDFLAGS) $(POBJS) $(UTILSPATH)/skygw_utils.o $(LIBS) -o $@
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
|
|
||||||
../include/version.h: ../../VERSION
|
|
||||||
echo '#define MAXSCALE_VERSION "'`cat ../../VERSION`'"' > ../include/version.h
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(DEL) $(OBJ) maxscale
|
|
||||||
$(DEL) *.so
|
|
||||||
|
|
||||||
tags:
|
|
||||||
ctags $(SRCS) $(HDRS)
|
|
||||||
|
|
||||||
depend: ../include/version.h
|
|
||||||
@$(DEL) depend.mk
|
|
||||||
cc -M $(CFLAGS) $(SRCS) > depend.mk
|
|
||||||
|
|
||||||
install: maxscale maxkeys maxpasswd
|
|
||||||
@mkdir -p $(DEST)/bin
|
|
||||||
install -D maxscale maxkeys maxpasswd $(DEST)/bin
|
|
||||||
install -D $(EMBEDDED_LIB)/$(LIB) $(DEST)/lib
|
|
||||||
install -D $(ERRMSG)/errmsg.sys $(DEST)/mysql
|
|
||||||
|
|
||||||
include depend.mk
|
|
@ -1,121 +0,0 @@
|
|||||||
# cleantests - clean local and subdirectories' tests
|
|
||||||
# buildtests - build all local and subdirectories' tests
|
|
||||||
# runtests - run all local tests
|
|
||||||
# testall - clean, build and run local and subdirectories' tests
|
|
||||||
|
|
||||||
include ../../../build_gateway.inc
|
|
||||||
include ../../../makefile.inc
|
|
||||||
include ../../../test.inc
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
TESTLOG := $(shell pwd)/testcore.log
|
|
||||||
|
|
||||||
LOGPATH := $(ROOT_PATH)/log_manager
|
|
||||||
UTILSPATH := $(ROOT_PATH)/utils
|
|
||||||
|
|
||||||
LDFLAGS=-rdynamic -L$(LOGPATH) -L$(EMBEDDED_LIB) \
|
|
||||||
-Wl,-rpath,$(DEST)/lib \
|
|
||||||
-Wl,-rpath,$(LOGPATH) -Wl,-rpath,$(UTILSPATH) \
|
|
||||||
-Wl,-rpath,$(EMBEDDED_LIB)
|
|
||||||
|
|
||||||
LIBS= -L$(EMBEDDED_LIB) -lmysqld \
|
|
||||||
-lz -lm -lcrypt -lcrypto -ldl -laio -lrt -pthread -llog_manager \
|
|
||||||
-L../../inih/extra -linih -lssl -lstdc++
|
|
||||||
|
|
||||||
TESTS=testhash testspinlock testbuffer testmodutil testpoll testservice testdcb testfilter testadminusers testmemlog
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
- $(DEL) *.o
|
|
||||||
- $(DEL) testhash
|
|
||||||
- $(DEL) *~
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) cleantests
|
|
||||||
$(MAKE) DEBUG=Y buildtests
|
|
||||||
$(MAKE) runtests
|
|
||||||
|
|
||||||
buildtests : $(TESTS)
|
|
||||||
|
|
||||||
testhash: testhash.c
|
|
||||||
$(CC) $(CFLAGS) \
|
|
||||||
-I$(ROOT_PATH)/server/include \
|
|
||||||
-I$(ROOT_PATH)/utils \
|
|
||||||
testhash.c ../hashtable.o ../atomic.o ../spinlock.o -o testhash
|
|
||||||
|
|
||||||
testmysqlusers: test_mysql_users.c
|
|
||||||
$(CC) $(CFLAGS) \
|
|
||||||
-I$(ROOT_PATH)/server/include \
|
|
||||||
-I$(ROOT_PATH)/utils \
|
|
||||||
test_mysql_users.c ../hashtable.o ../atomic.o ../modutil.o ../spinlock.o -o testmysqlusers
|
|
||||||
|
|
||||||
|
|
||||||
testspinlock: testspinlock.c
|
|
||||||
$(CC) $(CFLAGS) \
|
|
||||||
-I$(ROOT_PATH)/server/include \
|
|
||||||
-I$(ROOT_PATH)/utils \
|
|
||||||
testspinlock.c ../spinlock.o ../atomic.o ../thread.o -o testspinlock
|
|
||||||
|
|
||||||
testmodutil: testmodutil.c
|
|
||||||
$(CC) $(CFLAGS) \
|
|
||||||
-I$(ROOT_PATH)/server/include \
|
|
||||||
-I$(ROOT_PATH)/utils \
|
|
||||||
testmodutil.c ../modutil.o ../buffer.o ../atomic.o -o testmodutil
|
|
||||||
|
|
||||||
testbuffer: testbuffer.c
|
|
||||||
$(CC) $(CFLAGS) \
|
|
||||||
-I$(ROOT_PATH)/server/include \
|
|
||||||
-I$(ROOT_PATH)/utils \
|
|
||||||
testbuffer.c ../buffer.o ../atomic.o -o testbuffer
|
|
||||||
|
|
||||||
testpoll: testpoll.c
|
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) \
|
|
||||||
-I$(ROOT_PATH)/server/include \
|
|
||||||
-I$(ROOT_PATH)/utils \
|
|
||||||
-I$(ROOT_PATH)/log_manager \
|
|
||||||
testpoll.c libcore.a $(UTILSPATH)/skygw_utils.o $(LIBS) -o testpoll
|
|
||||||
|
|
||||||
testservice: testservice.c
|
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) \
|
|
||||||
-I$(ROOT_PATH)/server/include \
|
|
||||||
-I$(ROOT_PATH)/utils \
|
|
||||||
-I$(ROOT_PATH)/log_manager \
|
|
||||||
testservice.c libcore.a $(UTILSPATH)/skygw_utils.o $(LIBS) -o testservice
|
|
||||||
|
|
||||||
testdcb: testdcb.c
|
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) \
|
|
||||||
-I$(ROOT_PATH)/server/include \
|
|
||||||
-I$(ROOT_PATH)/utils \
|
|
||||||
-I$(ROOT_PATH)/log_manager \
|
|
||||||
testdcb.c libcore.a $(UTILSPATH)/skygw_utils.o $(LIBS) -o testdcb
|
|
||||||
|
|
||||||
testfilter: testfilter.c libcore.a
|
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) \
|
|
||||||
-I$(ROOT_PATH)/server/include \
|
|
||||||
-I$(ROOT_PATH)/utils \
|
|
||||||
testfilter.c libcore.a $(UTILSPATH)/skygw_utils.o $(LIBS) -o testfilter
|
|
||||||
|
|
||||||
testadminusers: testadminusers.c libcore.a
|
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) \
|
|
||||||
-I$(ROOT_PATH)/server/include \
|
|
||||||
-I$(ROOT_PATH)/utils \
|
|
||||||
testadminusers.c libcore.a $(UTILSPATH)/skygw_utils.o $(LIBS) -o testadminusers
|
|
||||||
|
|
||||||
testmemlog: testmemlog.c libcore.a
|
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) \
|
|
||||||
-I$(ROOT_PATH)/server/include \
|
|
||||||
-I$(ROOT_PATH)/utils \
|
|
||||||
testmemlog.c libcore.a $(UTILSPATH)/skygw_utils.o $(LIBS) -o testmemlog
|
|
||||||
|
|
||||||
|
|
||||||
libcore.a: ../*.o
|
|
||||||
ar rv libcore.a ../*.o
|
|
||||||
|
|
||||||
runtests: $(TESTS)
|
|
||||||
@echo "" > $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test MaxScale core" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
$(foreach var,$(TESTS),./runtest.sh $(var) $(TESTLOG);)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@cat $(TESTLOG) >> $(TEST_MAXSCALE_LOG)
|
|
0
server/inih/LICENSE.txt
Executable file → Normal file
0
server/inih/LICENSE.txt
Executable file → Normal file
0
server/inih/README.txt
Executable file → Normal file
0
server/inih/README.txt
Executable file → Normal file
0
server/inih/cpp/INIReader.cpp
Executable file → Normal file
0
server/inih/cpp/INIReader.cpp
Executable file → Normal file
0
server/inih/cpp/INIReader.h
Executable file → Normal file
0
server/inih/cpp/INIReader.h
Executable file → Normal file
0
server/inih/cpp/INIReaderTest.cpp
Executable file → Normal file
0
server/inih/cpp/INIReaderTest.cpp
Executable file → Normal file
0
server/inih/examples/config.def
Executable file → Normal file
0
server/inih/examples/config.def
Executable file → Normal file
0
server/inih/examples/ini_dump.c
Executable file → Normal file
0
server/inih/examples/ini_dump.c
Executable file → Normal file
0
server/inih/examples/ini_example.c
Executable file → Normal file
0
server/inih/examples/ini_example.c
Executable file → Normal file
0
server/inih/examples/ini_xmacros.c
Executable file → Normal file
0
server/inih/examples/ini_xmacros.c
Executable file → Normal file
0
server/inih/examples/test.ini
Executable file → Normal file
0
server/inih/examples/test.ini
Executable file → Normal file
@ -1,19 +0,0 @@
|
|||||||
# Simple makefile to build inih as a static library using g++
|
|
||||||
|
|
||||||
SRC = ../ini.c
|
|
||||||
OBJ = $(SRC:.c=.o)
|
|
||||||
OUT = libinih.a
|
|
||||||
INCLUDES = -I..
|
|
||||||
CCFLAGS = -g -O2
|
|
||||||
CC = g++
|
|
||||||
|
|
||||||
default: $(OUT)
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(INCLUDES) $(CCFLAGS) $(EXTRACCFLAGS) -c $< -o $@
|
|
||||||
|
|
||||||
$(OUT): $(OBJ)
|
|
||||||
ar rcs $(OUT) $(OBJ) $(EXTRAARFLAGS)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f $(OBJ) $(OUT)
|
|
0
server/inih/ini.c
Executable file → Normal file
0
server/inih/ini.c
Executable file → Normal file
0
server/inih/ini.h
Executable file → Normal file
0
server/inih/ini.h
Executable file → Normal file
0
server/inih/tests/bad_comment.ini
Executable file → Normal file
0
server/inih/tests/bad_comment.ini
Executable file → Normal file
0
server/inih/tests/bad_multi.ini
Executable file → Normal file
0
server/inih/tests/bad_multi.ini
Executable file → Normal file
0
server/inih/tests/bad_section.ini
Executable file → Normal file
0
server/inih/tests/bad_section.ini
Executable file → Normal file
0
server/inih/tests/baseline_multi.txt
Executable file → Normal file
0
server/inih/tests/baseline_multi.txt
Executable file → Normal file
0
server/inih/tests/baseline_single.txt
Executable file → Normal file
0
server/inih/tests/baseline_single.txt
Executable file → Normal file
0
server/inih/tests/bom.ini
Executable file → Normal file
0
server/inih/tests/bom.ini
Executable file → Normal file
0
server/inih/tests/multi_line.ini
Executable file → Normal file
0
server/inih/tests/multi_line.ini
Executable file → Normal file
0
server/inih/tests/normal.ini
Executable file → Normal file
0
server/inih/tests/normal.ini
Executable file → Normal file
0
server/inih/tests/unittest.bat
Executable file → Normal file
0
server/inih/tests/unittest.bat
Executable file → Normal file
0
server/inih/tests/unittest.c
Executable file → Normal file
0
server/inih/tests/unittest.c
Executable file → Normal file
0
server/inih/tests/user_error.ini
Executable file → Normal file
0
server/inih/tests/user_error.ini
Executable file → Normal file
@ -1,117 +0,0 @@
|
|||||||
# This file is distributed as part of MaxScale form MariaDB Corporation. It is free
|
|
||||||
# software: you can redistribute it and/or modify it under the terms of the
|
|
||||||
# GNU General Public License as published by the Free Software Foundation,
|
|
||||||
# version 2.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
# details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc., 51
|
|
||||||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
|
||||||
# Copyright MariaDB Corporation Ab 2014
|
|
||||||
#
|
|
||||||
# Revision History
|
|
||||||
# Date Who Description
|
|
||||||
# 29/05/14 Mark Riddoch Initial module development
|
|
||||||
|
|
||||||
include ../../../build_gateway.inc
|
|
||||||
|
|
||||||
LOGPATH := $(ROOT_PATH)/log_manager
|
|
||||||
QCLASSPATH := $(ROOT_PATH)/query_classifier
|
|
||||||
UTILSPATH := $(ROOT_PATH)/utils
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
CFLAGS=-c -fPIC -I/usr/include -I../include -I../../include -I$(LOGPATH) -I$(QCLASSPATH) \
|
|
||||||
-I$(UTILSPATH) -I$(MYSQL_ROOT) -Wall -g
|
|
||||||
|
|
||||||
include ../../../makefile.inc
|
|
||||||
|
|
||||||
LDFLAGS=-shared -L$(LOGPATH) -L$(EMBEDDED_LIB) -L$(QCLASSPATH) -Wl,-rpath,$(DEST)/lib \
|
|
||||||
-Wl,-rpath,$(LOGPATH) -Wl,-rpath,$(UTILSPATH)
|
|
||||||
|
|
||||||
TESTSRCS=testfilter.c
|
|
||||||
TESTOBJ=$(TESTSRCS:.c=.o)
|
|
||||||
QLASRCS=qlafilter.c
|
|
||||||
QLAOBJ=$(QLASRCS:.c=.o)
|
|
||||||
REGEXSRCS=regexfilter.c
|
|
||||||
REGEXOBJ=$(REGEXSRCS:.c=.o)
|
|
||||||
TOPNSRCS=topfilter.c
|
|
||||||
TOPNOBJ=$(TOPNSRCS:.c=.o)
|
|
||||||
TEESRCS=tee.c
|
|
||||||
TEEOBJ=$(TEESRCS:.c=.o)
|
|
||||||
MQSRCS=mqfilter.c
|
|
||||||
MQOBJ=$(MQSRCS:.c=.o)
|
|
||||||
SRCS=$(TESTSRCS) $(QLASRCS) $(REGEXSRCS) $(TOPNSRCS) $(TEESRCS)
|
|
||||||
OBJ=$(SRCS:.c=.o)
|
|
||||||
LIBS=$(UTILSPATH)/skygw_utils.o -lssl -llog_manager
|
|
||||||
MODULES= libtestfilter.so libqlafilter.so libregexfilter.so libtopfilter.so libhintfilter.so libtee.so
|
|
||||||
|
|
||||||
ifndef BUILD_RABBITMQ
|
|
||||||
BUILD_RABBITMQ=N
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BUILD_RABBITMQ),Y)
|
|
||||||
SRCS += $(MQSRCS)
|
|
||||||
MODULES += libmqfilter.so
|
|
||||||
LIBS += -lrabbitmq -lquery_classifier
|
|
||||||
endif
|
|
||||||
|
|
||||||
all: $(MODULES)
|
|
||||||
|
|
||||||
libtestfilter.so: $(TESTOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(TESTOBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
libmqfilter.so: $(MQOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(MQOBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
libqlafilter.so: $(QLAOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(QLAOBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
libregexfilter.so: $(REGEXOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(REGEXOBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
libtopfilter.so: $(TOPNOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(TOPNOBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
libtee.so: $(TEEOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(TEEOBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
libhintfilter.so:
|
|
||||||
(cd hint; touch depend.mk ; make; cp $@ ..)
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f $(OBJ) $(MODULES)
|
|
||||||
(cd hint; touch depend.mk; make clean)
|
|
||||||
|
|
||||||
tags:
|
|
||||||
ctags $(SRCS) $(HDRS)
|
|
||||||
(cd hint; touch depend.mk; make tags)
|
|
||||||
|
|
||||||
depend:
|
|
||||||
@rm -f depend.mk
|
|
||||||
cc -M $(CFLAGS) $(SRCS) > depend.mk
|
|
||||||
(cd hint; touch depend.mk; make depend)
|
|
||||||
|
|
||||||
install: $(MODULES)
|
|
||||||
install -D $(MODULES) $(DEST)/modules
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
$(MAKE) -C test cleantests
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
$(MAKE) -C test DEBUG=Y buildtests
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
$(MAKE) -C test runtests
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) -C test testall
|
|
||||||
|
|
||||||
include depend.mk
|
|
@ -1,70 +0,0 @@
|
|||||||
# This file is distributed as part of MaxScale form MariaDB Corporation. It is free
|
|
||||||
# software: you can redistribute it and/or modify it under the terms of the
|
|
||||||
# GNU General Public License as published by the Free Software Foundation,
|
|
||||||
# version 2.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
# details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc., 51
|
|
||||||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
|
||||||
# Copyright MariaDB Corporation Ab 2014
|
|
||||||
#
|
|
||||||
# Revision History
|
|
||||||
# Date Who Description
|
|
||||||
# 21/07/14 Mark Riddoch Initial module development
|
|
||||||
|
|
||||||
include ../../../../build_gateway.inc
|
|
||||||
|
|
||||||
LOGPATH := $(ROOT_PATH)/log_manager
|
|
||||||
UTILSPATH := $(ROOT_PATH)/utils
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
CFLAGS=-c -fPIC -I/usr/include -I../../include -I../../../include -I$(LOGPATH) \
|
|
||||||
-I$(UTILSPATH) -Wall -g
|
|
||||||
|
|
||||||
include ../../../../makefile.inc
|
|
||||||
|
|
||||||
LDFLAGS=-shared -L$(LOGPATH) -Wl,-rpath,$(DEST)/lib \
|
|
||||||
-Wl,-rpath,$(LOGPATH) -Wl,-rpath,$(UTILSPATH)
|
|
||||||
|
|
||||||
SRCS= hintfilter.c hintparser.c
|
|
||||||
OBJ=$(SRCS:.c=.o)
|
|
||||||
LIBS=$(UTILSPATH)/skygw_utils.o -lssl -llog_manager
|
|
||||||
|
|
||||||
libhintfilter.so: $(OBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(OBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f $(OBJ) libhintfilter.so
|
|
||||||
|
|
||||||
tags:
|
|
||||||
ctags $(SRCS) $(HDRS)
|
|
||||||
|
|
||||||
depend:
|
|
||||||
@rm -f depend.mk
|
|
||||||
cc -M $(CFLAGS) $(SRCS) > depend.mk
|
|
||||||
|
|
||||||
install: $(MODULES)
|
|
||||||
install -D $(MODULES) $(DEST)/modules
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
$(MAKE) -C test cleantests
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
$(MAKE) -C test DEBUG=Y buildtests
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
$(MAKE) -C test runtests
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) -C test testall
|
|
||||||
|
|
||||||
include depend.mk
|
|
@ -1,80 +0,0 @@
|
|||||||
# This file is distributed as part of MaxScale form MariaDB Corporation. It is free
|
|
||||||
# software: you can redistribute it and/or modify it under the terms of the
|
|
||||||
# GNU General Public License as published by the Free Software Foundation,
|
|
||||||
# version 2.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
# details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc., 51
|
|
||||||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
|
||||||
# Copyright MariaDB Corporation Ab 2014
|
|
||||||
|
|
||||||
include ../../../../build_gateway.inc
|
|
||||||
|
|
||||||
LOGPATH := $(ROOT_PATH)/log_manager
|
|
||||||
UTILSPATH := $(ROOT_PATH)/utils
|
|
||||||
QCLASSPATH := $(ROOT_PATH)/query_classifier
|
|
||||||
COREPATH := $(ROOT_PATH)/server/core
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
CFLAGS=-c -fPIC -I/usr/include -I../../include -I../../../include \
|
|
||||||
-I$(LOGPATH) -I$(UTILSPATH) -I./ -I$(ROOT_PATH)/server/inih -I$(QCLASSPATH) \
|
|
||||||
$(MYSQL_HEADERS) -Wall -g
|
|
||||||
|
|
||||||
include ../../../../makefile.inc
|
|
||||||
|
|
||||||
LDFLAGS=-rdynamic -L$(LOGPATH) -L$(UTILSPATH) -L$(EMBEDDED_LIB) \
|
|
||||||
-Wl,-rpath,$(DEST)/lib \
|
|
||||||
-Wl,-rpath,$(LOGPATH) -Wl,-rpath,$(UTILSPATH) \
|
|
||||||
-Wl,-rpath,$(EMBEDDED_LIB)
|
|
||||||
|
|
||||||
SRCS=harness_util.c harness_common.c
|
|
||||||
OBJ=$(SRCS:.c=.o)
|
|
||||||
COREOBJ=$(COREPATH)/load_utils.o $(COREPATH)/dcb.o $(COREPATH)/utils.o \
|
|
||||||
$(COREPATH)/gw_utils.o $(COREPATH)/buffer.o $(COREPATH)/poll.o \
|
|
||||||
$(COREPATH)/spinlock.o $(COREPATH)/gwbitmask.o $(COREPATH)/session.o \
|
|
||||||
$(COREPATH)/atomic.o $(COREPATH)/hashtable.o $(COREPATH)/filter.o $(COREPATH)/modutil.o $(ROOT_PATH)/server/inih/ini.o \
|
|
||||||
$(COREPATH)/hint.o $(COREPATH)/config.o $(COREPATH)/service.o $(COREPATH)/server.o $(COREPATH)/monitor.o $(COREPATH)/housekeeper.o $(COREPATH)/adminusers.o $(COREPATH)/dbusers.o $(COREPATH)/thread.o $(COREPATH)/users.o $(COREPATH)/secrets.o
|
|
||||||
LIBS= $(UTILSPATH)/skygw_utils.o -lssl -pthread -llog_manager -lmysqld -ldl -lcrypto -lcrypt -lm
|
|
||||||
MODULES := $(wildcard ../*.so)
|
|
||||||
|
|
||||||
all: build
|
|
||||||
|
|
||||||
build:$(OBJ)
|
|
||||||
$(CC) $(OBJ) $(COREOBJ) $(LDFLAGS) $(LIBS) -o harness
|
|
||||||
$(MAKE) -C ../
|
|
||||||
cp ../*.so ./
|
|
||||||
|
|
||||||
%.o: %.c
|
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f *.o
|
|
||||||
rm -f *.so
|
|
||||||
rm -f harness
|
|
||||||
cleantests:clean
|
|
||||||
rm *.output
|
|
||||||
buildtests:build
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) cleantests
|
|
||||||
$(MAKE) buildtests
|
|
||||||
$(MAKE) runtests
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
@echo ""
|
|
||||||
@echo "-------------------------------"
|
|
||||||
@echo "$(shell date)"
|
|
||||||
@echo "Test Filter harness"
|
|
||||||
@echo "-------------------------------"
|
|
||||||
@echo "Testing hints... "
|
|
||||||
@./hint_tests.sh
|
|
||||||
@echo ""
|
|
||||||
|
|
||||||
documentation:
|
|
||||||
doxygen doxygen.conf
|
|
0
server/modules/filter/test/fwfilter/fwtest.cnf.in
Executable file → Normal file
0
server/modules/filter/test/fwfilter/fwtest.cnf.in
Executable file → Normal file
0
server/modules/filter/test/fwfilter/fwtest.expected
Executable file → Normal file
0
server/modules/filter/test/fwfilter/fwtest.expected
Executable file → Normal file
0
server/modules/filter/test/fwfilter/fwtest.input
Executable file → Normal file
0
server/modules/filter/test/fwfilter/fwtest.input
Executable file → Normal file
0
server/modules/filter/test/fwfilter/fwtest.output
Executable file → Normal file
0
server/modules/filter/test/fwfilter/fwtest.output
Executable file → Normal file
0
server/modules/filter/test/fwfilter/fwtest2.expected
Executable file → Normal file
0
server/modules/filter/test/fwfilter/fwtest2.expected
Executable file → Normal file
0
server/modules/filter/test/fwfilter/fwtest2.input
Executable file → Normal file
0
server/modules/filter/test/fwfilter/fwtest2.input
Executable file → Normal file
0
server/modules/filter/test/harness_ui.c
Executable file → Normal file
0
server/modules/filter/test/harness_ui.c
Executable file → Normal file
0
server/modules/filter/test/hintfilter/hint_testing.cnf
Executable file → Normal file
0
server/modules/filter/test/hintfilter/hint_testing.cnf
Executable file → Normal file
0
server/modules/filter/test/hintfilter/hint_testing.expected
Executable file → Normal file
0
server/modules/filter/test/hintfilter/hint_testing.expected
Executable file → Normal file
0
server/modules/filter/test/regexfilter/regextest.expected
Executable file → Normal file
0
server/modules/filter/test/regexfilter/regextest.expected
Executable file → Normal file
@ -1,78 +0,0 @@
|
|||||||
# This file is distributed as part of the MariaDB Corporation MaxScale. It is free
|
|
||||||
# software: you can redistribute it and/or modify it under the terms of the
|
|
||||||
# GNU General Public License as published by the Free Software Foundation,
|
|
||||||
# version 2.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
# details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc., 51
|
|
||||||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
|
||||||
# Copyright MariaDB Corporation Ab 2013
|
|
||||||
#
|
|
||||||
# Revision History
|
|
||||||
# Date Who Description
|
|
||||||
# 08/07/13 Mark Riddoch Initial implementation
|
|
||||||
# 28/07/14 Massimiliano Pinto new monitor ndbcluster added
|
|
||||||
|
|
||||||
include ../../../build_gateway.inc
|
|
||||||
include ../../../makefile.inc
|
|
||||||
|
|
||||||
LOGPATH := $(ROOT_PATH)/log_manager
|
|
||||||
UTILSPATH := $(ROOT_PATH)/utils
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
CFLAGS=-c -fPIC -I. -I/usr/include -I../include -I../../include -I$(LOGPATH) \
|
|
||||||
-I$(UTILSPATH) $(MYSQL_HEADERS) -Wall -g
|
|
||||||
|
|
||||||
LDFLAGS=-shared -L$(LOGPATH) -Wl,-rpath,$(DEST)/lib \
|
|
||||||
-Wl,-rpath,$(LOGPATH) -Wl,-rpath,$(UTILSPATH) \
|
|
||||||
-Wl,-rpath,$(EMBEDDED_LIB)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
MYSQLSRCS=mysql_mon.c
|
|
||||||
MYSQLOBJ=$(MYSQLSRCS:.c=.o)
|
|
||||||
GALERASRCS=galera_mon.c
|
|
||||||
GALERAOBJ=$(GALERASRCS:.c=.o)
|
|
||||||
NDBCLUSTERSRCS=ndbcluster_mon.c
|
|
||||||
NDBCLUSTEROBJ=$(NDBCLUSTERSRCS:.c=.o)
|
|
||||||
SRCS=$(MYSQLSRCS) $(GALERASRCS) $(NDBCLUSTERSRCS)
|
|
||||||
OBJ=$(SRCS:.c=.o)
|
|
||||||
LIBS=$(UTILSPATH)/skygw_utils.o -llog_manager \
|
|
||||||
-L$(EMBEDDED_LIB) -lmysqld
|
|
||||||
MODULES=libmysqlmon.so libgaleramon.so libndbclustermon.so
|
|
||||||
|
|
||||||
|
|
||||||
all: $(MODULES)
|
|
||||||
|
|
||||||
libmysqlmon.so: $(MYSQLOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(MYSQLOBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
libgaleramon.so: $(GALERAOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(GALERAOBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
libndbclustermon.so: $(NDBCLUSTEROBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(NDBCLUSTEROBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(DEL) $(OBJ) $(MODULES)
|
|
||||||
|
|
||||||
tags:
|
|
||||||
ctags $(SRCS) $(HDRS)
|
|
||||||
|
|
||||||
depend:
|
|
||||||
@$(DEL) depend.mk
|
|
||||||
cc -M $(CFLAGS) $(SRCS) > depend.mk
|
|
||||||
|
|
||||||
install: $(MODULES)
|
|
||||||
install -D $(MODULES) $(DEST)/modules
|
|
||||||
|
|
||||||
include depend.mk
|
|
@ -1,91 +0,0 @@
|
|||||||
# This file is distributed as part of the MariaDB Corporation MaxScale. It is free
|
|
||||||
# software: you can redistribute it and/or modify it under the terms of the
|
|
||||||
# GNU General Public License as published by the Free Software Foundation,
|
|
||||||
# version 2.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
# details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc., 51
|
|
||||||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
|
||||||
# Copyright MariaDB Corporation Ab 2013
|
|
||||||
#
|
|
||||||
# Revision History
|
|
||||||
# Date Who Description
|
|
||||||
# 13/06/2013 Mark Riddoch Initial protocol module development
|
|
||||||
# 17/06/2013 Massimiliano Pinto Added mysql_common top both libraries
|
|
||||||
# 27/06/2013 Vilho Raatikka Added logmanager-related libs and
|
|
||||||
# headers so that liblog_manager.so can
|
|
||||||
# be linked in.
|
|
||||||
# 09/07/2013 Massimiliano Pinto Added the HTTPD protocol module
|
|
||||||
# 13/06/2014 Mark Riddoch Added thr MaxScale protocol module
|
|
||||||
#
|
|
||||||
include ../../../build_gateway.inc
|
|
||||||
|
|
||||||
LOGPATH := $(ROOT_PATH)/log_manager
|
|
||||||
UTILSPATH := $(ROOT_PATH)/utils
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
CFLAGS=-c -fPIC -I/usr/include -I../include -I../../include -I$(LOGPATH) \
|
|
||||||
-I$(UTILSPATH) -Wall -g
|
|
||||||
|
|
||||||
include ../../../makefile.inc
|
|
||||||
|
|
||||||
LDFLAGS=-shared -L$(LOGPATH) -Wl,-rpath,$(DEST)/lib \
|
|
||||||
-Wl,-rpath,$(LOGPATH) -Wl,-rpath,$(UTILSPATH)
|
|
||||||
|
|
||||||
MYSQLCLIENTSRCS=mysql_client.c mysql_common.c
|
|
||||||
MYSQLCLIENTOBJ=$(MYSQLCLIENTSRCS:.c=.o)
|
|
||||||
MYSQLBACKENDSRCS=mysql_backend.c mysql_common.c
|
|
||||||
MYSQLBACKENDOBJ=$(MYSQLBACKENDSRCS:.c=.o)
|
|
||||||
TELNETDSRCS=telnetd.c
|
|
||||||
TELNETDOBJ=$(TELNETDSRCS:.c=.o)
|
|
||||||
HTTPDSRCS=httpd.c
|
|
||||||
HTTPDOBJ=$(HTTPDSRCS:.c=.o)
|
|
||||||
MAXSCALEDSRCS=maxscaled.c
|
|
||||||
MAXSCALEDOBJ=$(MAXSCALEDSRCS:.c=.o)
|
|
||||||
SRCS=$(MYSQLCLIENTSRCS) $(MYSQLBACKENDSRCS) $(TELNETDSRCS) $(HTTPDSRCS) \
|
|
||||||
$(MAXSCALEDSRCS)
|
|
||||||
OBJ=$(SRCS:.c=.o)
|
|
||||||
LIBS=$(UTILSPATH)/skygw_utils.o
|
|
||||||
MODULES=libMySQLClient.so libMySQLBackend.so libtelnetd.so libHTTPD.so \
|
|
||||||
libmaxscaled.so
|
|
||||||
|
|
||||||
all: $(MODULES)
|
|
||||||
|
|
||||||
libMySQLClient.so: $(MYSQLCLIENTOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(MYSQLCLIENTOBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
libMySQLBackend.so: $(MYSQLBACKENDOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(MYSQLBACKENDOBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
libtelnetd.so: $(TELNETDOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(TELNETDOBJ) $(LIBS) -lcrypt -o $@
|
|
||||||
|
|
||||||
libHTTPD.so: $(HTTPDOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(HTTPDOBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
libmaxscaled.so: $(MAXSCALEDOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(MAXSCALEDOBJ) $(LIBS) -lcrypt -o $@
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(DEL) $(OBJ) $(MODULES)
|
|
||||||
|
|
||||||
tags:
|
|
||||||
ctags $(SRCS) $(HDRS)
|
|
||||||
|
|
||||||
install: $(MODULES)
|
|
||||||
install -D $(MODULES) $(DEST)/modules
|
|
||||||
|
|
||||||
depend:
|
|
||||||
@$(DEL) depend.mk
|
|
||||||
cc -M $(CFLAGS) $(SRCS) > depend.mk
|
|
||||||
|
|
||||||
include depend.mk
|
|
@ -1,109 +0,0 @@
|
|||||||
# This file is distributed as part of the MariaDB Corporation MaxScale. It is free
|
|
||||||
# software: you can redistribute it and/or modify it under the terms of the
|
|
||||||
# GNU General Public License as published by the Free Software Foundation,
|
|
||||||
# version 2.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
# details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc., 51
|
|
||||||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
|
||||||
# Copyright MariaDB Corporation Ab 2013
|
|
||||||
#
|
|
||||||
# Revision History
|
|
||||||
# Date Who Description
|
|
||||||
# 13/06/13 Mark Riddoch Initial routing module development
|
|
||||||
# 27/06/13 Vilho Raatikka Added logmanager-related libs and
|
|
||||||
# headers so that liblog_manager.so can
|
|
||||||
# be linked in.
|
|
||||||
# 27/06/13 Mark Riddoch Addition of read write splitter
|
|
||||||
|
|
||||||
include ../../../build_gateway.inc
|
|
||||||
|
|
||||||
LOGPATH := $(ROOT_PATH)/log_manager
|
|
||||||
UTILSPATH := $(ROOT_PATH)/utils
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
CFLAGS=-c -fPIC -I/usr/include -I../include -I../../include -I$(LOGPATH) \
|
|
||||||
-I$(UTILSPATH) -I$(MYSQL_HEADERS) -Wall -g
|
|
||||||
|
|
||||||
include ../../../makefile.inc
|
|
||||||
|
|
||||||
LDFLAGS=-shared -L$(LOGPATH) -Wl,-rpath,$(DEST)/lib \
|
|
||||||
-Wl,-rpath,$(LOGPATH) -Wl,-rpath,$(UTILSPATH)
|
|
||||||
|
|
||||||
TESTSRCS=testroute.c
|
|
||||||
TESTOBJ=$(TESTSRCS:.c=.o)
|
|
||||||
READCONSRCS=readconnroute.c
|
|
||||||
READCONOBJ=$(READCONSRCS:.c=.o)
|
|
||||||
DEBUGCLISRCS=debugcli.c debugcmd.c
|
|
||||||
DEBUGCLIOBJ=$(DEBUGCLISRCS:.c=.o)
|
|
||||||
CLISRCS=cli.c debugcmd.c
|
|
||||||
CLIOBJ=$(CLISRCS:.c=.o)
|
|
||||||
SRCS=$(TESTSRCS) $(READCONSRCS) $(DEBUGCLISRCS) cli.c
|
|
||||||
OBJ=$(SRCS:.c=.o)
|
|
||||||
LIBS=$(UTILSPATH)/skygw_utils.o -lssl -llog_manager
|
|
||||||
MODULES= libdebugcli.so libreadconnroute.so libtestroute.so libcli.so libbinlogrouter.so
|
|
||||||
|
|
||||||
|
|
||||||
all: $(MODULES)
|
|
||||||
(cd readwritesplit; make)
|
|
||||||
|
|
||||||
libtestroute.so: $(TESTOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(TESTOBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
libreadconnroute.so: $(READCONOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(READCONOBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
libdebugcli.so: $(DEBUGCLIOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(DEBUGCLIOBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
libcli.so: $(CLIOBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(CLIOBJ) $(LIBS) -o $@
|
|
||||||
|
|
||||||
libreadwritesplit.so:
|
|
||||||
(cd readwritesplit; touch depend.mk ; make; cp $@ ..)
|
|
||||||
|
|
||||||
libbinlogrouter.so:
|
|
||||||
(cd binlog; touch depend.mk ; make; cp $@ ..)
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(DEL) $(OBJ) $(MODULES)
|
|
||||||
(cd readwritesplit; touch depend.mk; make clean)
|
|
||||||
(cd binlog; touch depend.mk; make clean)
|
|
||||||
|
|
||||||
tags:
|
|
||||||
ctags $(SRCS) $(HDRS)
|
|
||||||
(cd readwritesplit; make tags)
|
|
||||||
|
|
||||||
depend:
|
|
||||||
@$(DEL) depend.mk
|
|
||||||
cc -M $(CFLAGS) $(SRCS) > depend.mk
|
|
||||||
(cd readwritesplit; touch depend.mk ; make depend)
|
|
||||||
(cd binlog; touch depend.mk ; make depend)
|
|
||||||
|
|
||||||
install: $(MODULES)
|
|
||||||
install -D $(MODULES) $(DEST)/modules
|
|
||||||
(cd readwritesplit; make DEST=$(DEST) install)
|
|
||||||
(cd binlog; make DEST=$(DEST) install)
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
$(MAKE) -C test cleantests
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
$(MAKE) -C test DEBUG=Y buildtests
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
$(MAKE) -C test runtests
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) -C test testall
|
|
||||||
|
|
||||||
include depend.mk
|
|
@ -1,69 +0,0 @@
|
|||||||
# This file is distributed as part of the MariaDB Corporation MaxScale. It is free
|
|
||||||
# software: you can redistribute it and/or modify it under the terms of the
|
|
||||||
# GNU General Public License as published by the Free Software Foundation,
|
|
||||||
# version 2.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
# details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc., 51
|
|
||||||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
|
||||||
# Copyright MariaDB Corporation Ab 2013
|
|
||||||
#
|
|
||||||
# Revision History
|
|
||||||
# Date Who Description
|
|
||||||
# 2/04/14 Mark Riddoch Initial framework put in place
|
|
||||||
|
|
||||||
include ../../../../build_gateway.inc
|
|
||||||
|
|
||||||
LOGPATH := $(ROOT_PATH)/log_manager
|
|
||||||
UTILSPATH := $(ROOT_PATH)/utils
|
|
||||||
QCLASSPATH := $(ROOT_PATH)/query_classifier
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
CFLAGS=-c -fPIC -I/usr/include -I../../include -I../../../include \
|
|
||||||
-I$(LOGPATH) -I$(UTILSPATH) -I$(QCLASSPATH) \
|
|
||||||
$(MYSQL_HEADERS) -Wall -g
|
|
||||||
|
|
||||||
include ../../../../makefile.inc
|
|
||||||
|
|
||||||
#LDFLAGS=-shared -L$(LOGPATH) -L$(QCLASSPATH) -L$(EMBEDDED_LIB) \
|
|
||||||
# -Wl,-rpath,$(DEST)/lib \
|
|
||||||
# -Wl,-rpath,$(LOGPATH) -Wl,-rpath,$(UTILSPATH) -Wl,-rpath,$(QCLASSPATH) \
|
|
||||||
# -Wl,-rpath,$(EMBEDDED_LIB)
|
|
||||||
LDFLAGS=-shared -L$(LOGPATH) -L$(QCLASSPATH) -L$(EMBEDDED_LIB) \
|
|
||||||
-Wl,-rpath,$(DEST)/lib \
|
|
||||||
-Wl,-rpath,$(LOGPATH) -Wl,-rpath,$(UTILSPATH)
|
|
||||||
|
|
||||||
|
|
||||||
SRCS=blr.c blr_master.c blr_cache.c blr_slave.c blr_file.c
|
|
||||||
OBJ=$(SRCS:.c=.o)
|
|
||||||
LIBS=-lssl -pthread -llog_manager -lmysqld
|
|
||||||
MODULES=libbinlogrouter.so
|
|
||||||
|
|
||||||
all: $(MODULES)
|
|
||||||
|
|
||||||
$(MODULES): $(OBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(OBJ) $(UTILSPATH)/skygw_utils.o $(LIBS) -o $@
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f $(OBJ) $(MODULES)
|
|
||||||
|
|
||||||
tags:
|
|
||||||
ctags $(SRCS) $(HDRS)
|
|
||||||
|
|
||||||
depend:
|
|
||||||
@rm -f depend.mk
|
|
||||||
cc -M $(CFLAGS) $(SRCS) > depend.mk
|
|
||||||
|
|
||||||
install: $(MODULES)
|
|
||||||
install -D $(MODULES) $(DEST)/MaxScale/modules
|
|
||||||
|
|
||||||
include depend.mk
|
|
@ -1,78 +0,0 @@
|
|||||||
# This file is distributed as part of the MariaDB Corporation MaxScale. It is free
|
|
||||||
# software: you can redistribute it and/or modify it under the terms of the
|
|
||||||
# GNU General Public License as published by the Free Software Foundation,
|
|
||||||
# version 2.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
# details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along with
|
|
||||||
# this program; if not, write to the Free Software Foundation, Inc., 51
|
|
||||||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
|
||||||
# Copyright MariaDB Corporation Ab 2013
|
|
||||||
#
|
|
||||||
# Revision History
|
|
||||||
# Date Who Description
|
|
||||||
# 27/06/13 Mark Riddoch Initial framework put in place
|
|
||||||
|
|
||||||
include ../../../../build_gateway.inc
|
|
||||||
|
|
||||||
LOGPATH := $(ROOT_PATH)/log_manager
|
|
||||||
UTILSPATH := $(ROOT_PATH)/utils
|
|
||||||
QCLASSPATH := $(ROOT_PATH)/query_classifier
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
CFLAGS=-c -fPIC -I/usr/include -I../../include -I../../../include \
|
|
||||||
-I$(LOGPATH) -I$(UTILSPATH) -I$(QCLASSPATH) \
|
|
||||||
$(MYSQL_HEADERS) -Wall -g
|
|
||||||
|
|
||||||
include ../../../../makefile.inc
|
|
||||||
|
|
||||||
LDFLAGS=-shared -L$(LOGPATH) -L$(QCLASSPATH) -L$(EMBEDDED_LIB) \
|
|
||||||
-Wl,-rpath,$(DEST)/lib \
|
|
||||||
-Wl,-rpath,$(LOGPATH) -Wl,-rpath,$(UTILSPATH) -Wl,-rpath,$(QCLASSPATH) \
|
|
||||||
-Wl,-rpath,$(EMBEDDED_LIB)
|
|
||||||
|
|
||||||
SRCS=readwritesplit.c
|
|
||||||
OBJ=$(SRCS:.c=.o)
|
|
||||||
LIBS=-lssl -pthread -llog_manager -lquery_classifier -lmysqld
|
|
||||||
MODULES=libreadwritesplit.so
|
|
||||||
|
|
||||||
all: $(MODULES)
|
|
||||||
|
|
||||||
libreadwritesplit.so: $(OBJ)
|
|
||||||
$(CC) $(LDFLAGS) $(OBJ) $(UTILSPATH)/skygw_utils.o $(LIBS) -o $@
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(DEL) $(OBJ) $(MODULES)
|
|
||||||
|
|
||||||
tags:
|
|
||||||
ctags $(SRCS) $(HDRS)
|
|
||||||
|
|
||||||
depend:
|
|
||||||
@$(DEL) depend.mk
|
|
||||||
cc -M $(CFLAGS) $(SRCS) > depend.mk
|
|
||||||
|
|
||||||
install: $(MODULES)
|
|
||||||
install -D $(MODULES) $(DEST)/modules
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
$(MAKE) -C test cleantest
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) -C test testall
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
$(MAKE) -C test buildtests
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
$(MAKE) -C runtests
|
|
||||||
|
|
||||||
|
|
||||||
include depend.mk
|
|
@ -1,36 +0,0 @@
|
|||||||
# cleantests - clean local and subdirectories' tests
|
|
||||||
# buildtests - build all local and subdirectories' tests
|
|
||||||
# runtests - run all local tests
|
|
||||||
# testall - clean, build and run local and subdirectories' tests
|
|
||||||
|
|
||||||
include ../../../../../build_gateway.inc
|
|
||||||
include $(ROOT_PATH)/makefile.inc
|
|
||||||
include $(ROOT_PATH)/test.inc
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
TESTLOG := $(shell pwd)/testrwsplit.log
|
|
||||||
RET := -1
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
- $(DEL) *.o
|
|
||||||
- $(DEL) *~
|
|
||||||
|
|
||||||
|
|
||||||
testall:
|
|
||||||
-$(MAKE) cleantests
|
|
||||||
-$(MAKE) DEBUG=Y buildtests
|
|
||||||
-$(MAKE) runtests
|
|
||||||
-$(MAKE) -C test_hints testall
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
@echo "" > $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test Read/Write split router" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
./rwsplit.sh $(TESTLOG) $(THOST) $(TPORT_RW) $(TMASTER_ID) $(TUSER) $(TPWD)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@cat $(TESTLOG) >> $(TEST_MAXSCALE_LOG)
|
|
@ -1,53 +0,0 @@
|
|||||||
# cleantests - clean local and subdirectories' tests
|
|
||||||
# buildtests - build all local and subdirectories' tests
|
|
||||||
# runtests - run all local tests
|
|
||||||
# testall - clean, build and run local and subdirectories' tests
|
|
||||||
|
|
||||||
include ../../../../../../build_gateway.inc
|
|
||||||
include $(ROOT_PATH)/makefile.inc
|
|
||||||
include $(ROOT_PATH)/test.inc
|
|
||||||
|
|
||||||
ARGS=6
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
TESTLOG := $(shell pwd)/testrwsplit_hints.log
|
|
||||||
RET := -1
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
- $(DEL) *.o
|
|
||||||
- $(DEL) *~
|
|
||||||
- $(DEL) *.sql
|
|
||||||
- $(DEL) *.output
|
|
||||||
- $(DEL) *.log
|
|
||||||
|
|
||||||
testall:
|
|
||||||
-$(MAKE) cleantests
|
|
||||||
-$(MAKE) DEBUG=Y buildtests
|
|
||||||
-$(MAKE) runtests
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test Read/Write split router - hint routing" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo "Running simple tests" >> $(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
./rwsplit_hints.sh $(TESTLOG) $(THOST) $(TPORT_RW_HINT) $(TMASTER_ID) $(TUSER) $(TPWD) simple_tests
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@echo "Running syntax error tests" >> $(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
./syntax_check.sh $(TESTLOG) $(THOST) $(TPORT_RW_HINT) $(TMASTER_ID) $(TUSER) $(TPWD) error_tests
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@echo "Running complex tests" >> $(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
./rwsplit_hints.sh $(TESTLOG) $(THOST) $(TPORT_RW_HINT) $(TMASTER_ID) $(TUSER) $(TPWD) complex_tests
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@echo "Running stack tests" >> $(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
./rwsplit_hints.sh $(TESTLOG) $(THOST) $(TPORT_RW_HINT) $(TMASTER_ID) $(TUSER) $(TPWD) stack_tests
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@cat $(TESTLOG) >> $(TEST_MAXSCALE_LOG)
|
|
@ -1,41 +0,0 @@
|
|||||||
# cleantests - clean local and subdirectories' tests
|
|
||||||
# buildtests - build all local and subdirectories' tests
|
|
||||||
# runtests - run all local tests
|
|
||||||
# testall - clean, build and run local and subdirectories' tests
|
|
||||||
|
|
||||||
include ../../../../build_gateway.inc
|
|
||||||
include $(ROOT_PATH)/makefile.inc
|
|
||||||
include $(ROOT_PATH)/test.inc
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
TESTLOG := $(shell pwd)/testrouting.log
|
|
||||||
RET := -1
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
- $(DEL) *.o
|
|
||||||
- $(DEL) *~
|
|
||||||
|
|
||||||
|
|
||||||
testall:
|
|
||||||
-$(MAKE) cleantests
|
|
||||||
-$(MAKE) DEBUG=Y buildtests
|
|
||||||
-$(MAKE) runtests
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test Read/Write Split Router" >> $(TESTLOG)
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/server/modules/routing/readwritesplit testall
|
|
||||||
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/server/modules/routing/readwritesplit buildtests
|
|
||||||
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
@echo "" > $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test routing" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo "Nothing to run here so far" >> $(TESTLOG)
|
|
||||||
@cat $(TESTLOG) >> $(TEST_MAXSCALE_LOG)
|
|
@ -1,74 +0,0 @@
|
|||||||
# cleantests - clean local and subdirectories' tests
|
|
||||||
# buildtests - build all local and subdirectories' tests
|
|
||||||
# runtests - run all local tests
|
|
||||||
# testall - clean, build and run local and subdirectories' tests
|
|
||||||
|
|
||||||
include ../../build_gateway.inc
|
|
||||||
include ../../makefile.inc
|
|
||||||
include ../../test.inc
|
|
||||||
|
|
||||||
TEST_ROOT := $(ROOT_PATH)/test
|
|
||||||
PARENT_DIR := $(ROOT_PATH)/server
|
|
||||||
CUR_DIR := $(PARENT_DIR)/test
|
|
||||||
export MAXSCALE_HOME=$(CUR_DIR)
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
TESTLOG := $(CUR_DIR)/testserver.log
|
|
||||||
|
|
||||||
ifndef $(HAVE_SRV)
|
|
||||||
HAVE_SRV := N
|
|
||||||
endif
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
- $(DEL) *.o
|
|
||||||
- $(DEL) *~
|
|
||||||
ifeq ($(HAVE_SRV), N)
|
|
||||||
- $(DEL) Documentation
|
|
||||||
- $(DEL) bin
|
|
||||||
- $(DEL) lib
|
|
||||||
- $(DEL) MaxScale/etc
|
|
||||||
- $(DEL) MaxScale/modules
|
|
||||||
- $(DEL) MaxScale/mysql
|
|
||||||
endif
|
|
||||||
$(MAKE) -C $(PARENT_DIR)/core cleantests
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) HAVE_SRV=$(HAVE_SRV) cleantests
|
|
||||||
$(MAKE) HAVE_SRV=$(HAVE_SRV) buildtests
|
|
||||||
$(MAKE) runtests
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test Server Core" >> $(TESTLOG)
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/server/core testall
|
|
||||||
@echo "Core PASSED" >> $(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test Modules" >> $(TESTLOG)
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/server/modules/routing testall
|
|
||||||
@killall maxscale
|
|
||||||
@echo "Routing modules PASSED" >> $(TESTLOG)
|
|
||||||
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
ifeq ($(HAVE_SRV), Y)
|
|
||||||
@echo "Test server already built"
|
|
||||||
else
|
|
||||||
$(MAKE) -C $(ROOT_PATH) buildtestserver
|
|
||||||
endif
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
@echo "" > $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test MaxScale server" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo "MAXSCALE_HOME="$(MAXSCALE_HOME) >> $(TESTLOG)
|
|
||||||
cp $(CUR_DIR)/MaxScale_test.cnf $(MAXSCALE_HOME)/etc/MaxScale.cnf
|
|
||||||
bin/maxscale 2>> $(TESTLOG)
|
|
||||||
@echo "Put your tests here"
|
|
||||||
@sleep 5
|
|
||||||
@echo "MaxScale server PASSED" >> $(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@cat $(TESTLOG) >> $(TEST_MAXSCALE_LOG)
|
|
47
test.inc
47
test.inc
@ -1,47 +0,0 @@
|
|||||||
#
|
|
||||||
# This file includes parameters needed for running tests and may be included
|
|
||||||
# in makefiles in test directories if seen useful.
|
|
||||||
#
|
|
||||||
# hostname or IP address of MaxScale's host, for example:
|
|
||||||
#
|
|
||||||
# THOST := 127.0.0.1
|
|
||||||
#
|
|
||||||
THOST :=
|
|
||||||
|
|
||||||
#
|
|
||||||
# port of read connection router module, for example:
|
|
||||||
# TPORT_RCONN := 4008
|
|
||||||
#
|
|
||||||
TPORT_RCONN :=
|
|
||||||
#
|
|
||||||
# port of read/write split router module, for example:
|
|
||||||
# TPORT_RW := 4006
|
|
||||||
#
|
|
||||||
TPORT_RW :=
|
|
||||||
#
|
|
||||||
# port of read/write split router module with hints, for example:
|
|
||||||
# TPORT_RW_HINT := 4009
|
|
||||||
#
|
|
||||||
TPORT_RW_HINT :=
|
|
||||||
#
|
|
||||||
# username of MaxScale user, for example:
|
|
||||||
# TUSER := maxuser
|
|
||||||
#
|
|
||||||
TUSER :=
|
|
||||||
#
|
|
||||||
# password of MaxScale user, for example:
|
|
||||||
# TPWD := maxpwd
|
|
||||||
#
|
|
||||||
TPWD :=
|
|
||||||
#
|
|
||||||
# master's server_id, for example:
|
|
||||||
# TMASTER_ID := 2
|
|
||||||
#
|
|
||||||
TMASTER_ID :=
|
|
||||||
|
|
||||||
#
|
|
||||||
# Global test log where all log is gathered
|
|
||||||
# TEST_MAXSCALE_LOG := $(ROOT_PATH)/test/test_maxscale.log
|
|
||||||
#
|
|
||||||
TEST_MAXSCALE_LOG :=
|
|
||||||
|
|
66
test/README
66
test/README
@ -1,66 +0,0 @@
|
|||||||
Source tree structure and test targets for make. In a given source directory,
|
|
||||||
MAXSCALE_HOME/server, for example, there is a test directory which includes
|
|
||||||
tests for that directory ('local tests') and targets for every subdirectory
|
|
||||||
of MAXSCALE_HOME/server.
|
|
||||||
|
|
||||||
In the outline below, target, such as 'cleantest' includes instructions for
|
|
||||||
executing tests or make command pointing to subdirectories. If target is
|
|
||||||
followed by colon and a list of directory names ('cleantest:log_manager,
|
|
||||||
query_classifier'), the target is executed locally and in the listed
|
|
||||||
directories.
|
|
||||||
|
|
||||||
Note : add new tests for any component as close to the actual implementation
|
|
||||||
as possible. For example, DCB tests in MAXSCALE_HOME/server/core/test instead
|
|
||||||
of MAXSCALE_HOME/server/test etc.
|
|
||||||
|
|
||||||
MAXSCALE_HOME
|
|
||||||
|
|
|
||||||
|- log_manager cleantests, buildtests, runtests, testall
|
|
||||||
| |
|
|
||||||
| |- test cleantests, buildtests, runtests, testall
|
|
||||||
|
|
|
||||||
|- query_classifier cleantests, buildtests, runtests, testall
|
|
||||||
| |
|
|
||||||
| |- test cleantests, buildtests, runtests, testall
|
|
||||||
|
|
|
||||||
|- server cleantests, buildtests, testall
|
|
||||||
| |
|
|
||||||
| |- core cleantests, buildtests, runtests, testall
|
|
||||||
| | |
|
|
||||||
| | |- test cleantests, buildtests, runtests, testall
|
|
||||||
| |
|
|
||||||
| |- inih
|
|
||||||
| | |
|
|
||||||
| | |- test
|
|
||||||
| |
|
|
||||||
| |- modules
|
|
||||||
| | |
|
|
||||||
| | |- monitor
|
|
||||||
| | |
|
|
||||||
| | |- protocol
|
|
||||||
| | |
|
|
||||||
| | |- routing
|
|
||||||
| | | |
|
|
||||||
| | | |- readwritesplit
|
|
||||||
| |
|
|
||||||
| |- test cleantests:server/core,
|
|
||||||
| | buildtests,
|
|
||||||
| | runtests,
|
|
||||||
| | testall:server/core
|
|
||||||
|
|
|
||||||
|- test cleantests:log_manager, query_classifier, server, utils
|
|
||||||
buildtests:buildtestserver, log_manager, query_classifier, server, utils
|
|
||||||
runtests:<empty>
|
|
||||||
testall:cleantests,
|
|
||||||
buildtests,
|
|
||||||
runtests,
|
|
||||||
log_manager,
|
|
||||||
query_classifier,
|
|
||||||
server,
|
|
||||||
utils,
|
|
||||||
modules
|
|
||||||
|
|
|
||||||
|- utils cleantests, buildtests, runtests, testall
|
|
||||||
| |
|
|
||||||
| |- test cleantests, buildtests, runtests, testall
|
|
||||||
|
|
|
@ -1,65 +0,0 @@
|
|||||||
# cleantests - clean local and subdirectories' tests
|
|
||||||
# buildtests - build all local and subdirectories' tests
|
|
||||||
# runtests - run all local tests
|
|
||||||
# testall - clean, build and run local and subdirectories' tests
|
|
||||||
|
|
||||||
include ../build_gateway.inc
|
|
||||||
include ../makefile.inc
|
|
||||||
include ../test.inc
|
|
||||||
|
|
||||||
export MAXSCALE_HOME=$(shell pwd)/MaxScale
|
|
||||||
|
|
||||||
CC=cc
|
|
||||||
TESTLOG := $(TEST_MAXSCALE_LOG)
|
|
||||||
|
|
||||||
testall:
|
|
||||||
$(MAKE) cleantests
|
|
||||||
$(MAKE) buildtests
|
|
||||||
$(MAKE) runtests
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test Log Manager" >> $(TESTLOG)
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/log_manager testall
|
|
||||||
@echo "Log Manager PASSED" >> $(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test Query Classifier" >> $(TESTLOG)
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/query_classifier testall
|
|
||||||
@echo "Query Classifier PASSED" >> $(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test MaxScale server" >> $(TESTLOG)
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/server HAVE_SRV=$(HAVE_SRV) testall
|
|
||||||
@echo "MaxScale server PASSED" >> $(TESTLOG)
|
|
||||||
@echo "" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test utils" >> $(TESTLOG)
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/utils testall
|
|
||||||
@echo "Utils PASSED" >> $(TESTLOG)
|
|
||||||
|
|
||||||
cleantests:
|
|
||||||
$(DEL) *~
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/log_manager cleantests
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/query_classifier cleantests
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/server cleantests
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/utils cleantests
|
|
||||||
|
|
||||||
buildtests:
|
|
||||||
$(MAKE) -C $(ROOT_PATH) buildtestserver
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/log_manager buildtests
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/query_classifier buildtests
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/server HAVE_SRV=$(HAVE_SRV) buildtests
|
|
||||||
$(MAKE) -C $(ROOT_PATH)/utils buildtests
|
|
||||||
|
|
||||||
runtests:
|
|
||||||
@echo "" > $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo $(shell date) >> $(TESTLOG)
|
|
||||||
@echo "Test MaxScale root" >> $(TESTLOG)
|
|
||||||
@echo "-------------------------------" >> $(TESTLOG)
|
|
||||||
@echo "Nothing to run here so far" >> $(TESTLOG)
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user