Back to home page

Enduro/X

 
 

    


0001 #!/bin/bash
0002 ##
0003 ## @brief @(#) Test028 - Trnsactional Message Queue tests (with static & dynamic XA drivers)
0004 ##
0005 ## @file run.sh
0006 ##
0007 ## -----------------------------------------------------------------------------
0008 ## Enduro/X Middleware Platform for Distributed Transaction Processing
0009 ## Copyright (C) 2009-2016, ATR Baltic, Ltd. All Rights Reserved.
0010 ## Copyright (C) 2017-2023, Mavimax, Ltd. All Rights Reserved.
0011 ## This software is released under one of the following licenses:
0012 ## AGPL (with Java and Go exceptions) or Mavimax's license for commercial use.
0013 ## See LICENSE file for full text.
0014 ## -----------------------------------------------------------------------------
0015 ## AGPL license:
0016 ##
0017 ## This program is free software; you can redistribute it and/or modify it under
0018 ## the terms of the GNU Affero General Public License, version 3 as published
0019 ## by the Free Software Foundation;
0020 ##
0021 ## This program is distributed in the hope that it will be useful, but WITHOUT ANY
0022 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
0023 ## PARTICULAR PURPOSE. See the GNU Affero General Public License, version 3
0024 ## for more details.
0025 ##
0026 ## You should have received a copy of the GNU Affero General Public License along 
0027 ## with this program; if not, write to the Free Software Foundation, Inc.,
0028 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
0029 ##
0030 ## -----------------------------------------------------------------------------
0031 ## A commercial use license is available from Mavimax, Ltd
0032 ## contact@mavimax.com
0033 ## -----------------------------------------------------------------------------
0034 ##
0035 
0036 export TESTNO="028"
0037 export TESTNAME_SHORT="tmq"
0038 export TESTNAME="test${TESTNO}_${TESTNAME_SHORT}"
0039 export NDRX_SILENT=Y
0040 
0041 PWD=`pwd`
0042 if [ `echo $PWD | grep $TESTNAME ` ]; then
0043     # Do nothing 
0044     echo > /dev/null
0045 else
0046     # started from parent folder
0047     pushd .
0048     echo "Doing cd"
0049     cd $TESTNAME
0050 fi;
0051 
0052 rm ULOG* 2>/dev/null
0053 #
0054 # Dynamic tests
0055 #
0056 echo "Dynamic XA driver tests..."
0057 export NDRX_XA_DRIVERLIB_FILENAME=libndrxxaqdiskd.so
0058 
0059 if [ "$(uname)" == "Darwin" ]; then
0060     export NDRX_XA_DRIVERLIB_FILENAME=libndrxxaqdiskd.dylib
0061 fi
0062 
0063 ./run-dom.sh
0064 RET=$?
0065 
0066 if [[ "X$RET" != "X0" ]]; then
0067     exit 1
0068 fi
0069 
0070 
0071 #
0072 # Static tests
0073 #
0074 echo "Static XA driver tests..."
0075 export NDRX_XA_DRIVERLIB_FILENAME=libndrxxaqdisks.so
0076 
0077 if [ "$(uname)" == "Darwin" ]; then
0078     export NDRX_XA_DRIVERLIB_FILENAME=libndrxxaqdisks.dylib
0079 fi
0080 
0081 ./run-dom.sh
0082 RET=$?
0083 
0084 if [[ "X$RET" != "X0" ]]; then
0085     exit 1
0086 fi
0087 
0088 # vim: set ts=4 sw=4 et smartindent: