Project: lixa
Code Location: https://lixa.svn.sourceforge.net/svnroot/lixa/tests//tests
Browse
/
Download File
atlocal.in
#
# Copyright (c) 2009-2012, Christian Ferrari <tiian@users.sourceforge.net>
# All rights reserved.
#
# This file is part of LIXA.
#
# LIXA is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as published
# by the Free Software Foundation.
#
# LIXA 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 LIXA.  If not, see <http://www.gnu.org/licenses/>.
#

PATH=@abs_top_builddir@/tests/src/:@abs_top_builddir@/src/server:@abs_top_builddir@/src/client:$PATH
export PATH

CLIENT_DIR=@abs_top_builddir@/src/client
export CLIENT_DIR

SERVER_DIR=@abs_top_builddir@/src/server
export SERVER_DIR

TESTS_DIR=@abs_top_builddir@/tests
export TESTS_DIR

TESTS_SRC_DIR=@abs_top_builddir@/tests/src
export TESTS_SRC_DIR

TESTS_ETC_DIR=@abs_top_builddir@/tests/etc
export TESTS_ETC_DIR

TESTS_VAR_DIR=@abs_top_builddir@/tests/var
export TESTS_VAR_DIR

TESTS_TMP_DIR=@abs_top_builddir@/tests/tmp
export TESTS_TMP_DIR
if test ! -d $TESTS_TMP_DIR
then
	mkdir $TESTS_TMP_DIR
fi
TESTS_TMP_FILE1=$TESTS_TMP_DIR/file1
export TESTS_TMP_FILE1
TESTS_TMP_FILE2=$TESTS_TMP_DIR/file2
export TESTS_TMP_FILE2

LIXA_CONFIG_FILE=@abs_top_builddir@/tests/etc/lixac_conf.xml
export LIXA_CONFIG_FILE

LIXAD_CONFIG_FILE=@abs_top_builddir@/tests/etc/lixad_conf.xml
export LIXAD_CONFIG_FILE

SAMPLE_SWITCH_FILE=@abs_top_builddir@/src/client/switch/lixa/.libs/switch_lixa_monkeyrm_stareg.so
export SAMPLE_SWITCH_FILE

LIXA_CRASH=@LIXA_CRASH@
export LIXA_CRASH

VALGRIND=@VALGRIND@
export VALGRIND

GDB=@GDB@
export GDB

HAVE_MYSQL=@HAVE_MYSQL@
export HAVE_MYSQL

HAVE_POSTGRESQL=@HAVE_POSTGRESQL@
export HAVE_POSTGRESQL

HAVE_ORACLE=@HAVE_ORACLE@
export HAVE_ORACLE

HAVE_IBMDB2=@HAVE_IBMDB2@
export HAVE_IBMDB2

HAVE_WEBSPHEREMQ=@HAVE_WEBSPHEREMQ@
export HAVE_WEBSPHEREMQ

WEBSPHEREMQ_SWITCH_TYPE=@WEBSPHEREMQ_SWITCH_TYPE@
export WEBSPHEREMQ_SWITCH_TYPE

if test "$HAVE_ORACLE" = "yes"
then
. @ORACLE_ENV_SH@
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
fi

if test "$HAVE_IBMDB2" = "yes"
then
. /home/db2inst1/sqllib/db2profile
fi

if test "$HAVE_WEBSPHEREMQ" = "yes"
then 
    export WEBSPHEREMQ_PATH=@WEBSPHEREMQ_PATH@
    if test "$WEBSPHEREMQ_SWITCH_TYPE" = "ETC"
    then
        AMQSGET=amqsgetc
        AMQSPUT=amqsputc
        MQSERVER=LIXA.CHANNEL/TCP/'127.0.0.1(1414)'
        LIXA_PROF1_DYN=CASE_PROF_0030
        LIXA_PROF1_STA=CASE_PROF_0031
        LIXA_PROF2_DYN=CASE_PROF_0034
        LIXA_PROF2_STA=CASE_PROF_0035
    else
        AMQSGET=amqsget
        AMQSPUT=amqsput
        MQSERVER=""
        LIXA_PROF1_DYN=CASE_PROF_0028
        LIXA_PROF1_STA=CASE_PROF_0029
        LIXA_PROF2_DYN=CASE_PROF_0032
        LIXA_PROF2_STA=CASE_PROF_0033
    fi
    export AMQSGET
    export AMQSPUT
    export MQSERVER
    export LIXA_PROF_DYN
    export LIXA_PROF_STA
fi