![]() |
|
|||
0001 #!/bin/bash 0002 ## 0003 ## @file testenv.sh 0004 ## 0005 ## ----------------------------------------------------------------------------- 0006 ## Enduro/X Middleware Platform for Distributed Transaction Processing 0007 ## Copyright (C) 2009-2016, ATR Baltic, Ltd. All Rights Reserved. 0008 ## Copyright (C) 2017-2023, Mavimax, Ltd. All Rights Reserved. 0009 ## This software is released under one of the following licenses: 0010 ## AGPL (with Java and Go exceptions) or Mavimax's license for commercial use. 0011 ## See LICENSE file for full text. 0012 ## ----------------------------------------------------------------------------- 0013 ## AGPL license: 0014 ## 0015 ## This program is free software; you can redistribute it and/or modify it under 0016 ## the terms of the GNU Affero General Public License, version 3 as published 0017 ## by the Free Software Foundation; 0018 ## 0019 ## This program is distributed in the hope that it will be useful, but WITHOUT ANY 0020 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 0021 ## PARTICULAR PURPOSE. See the GNU Affero General Public License, version 3 0022 ## for more details. 0023 ## 0024 ## You should have received a copy of the GNU Affero General Public License along 0025 ## with this program; if not, write to the Free Software Foundation, Inc., 0026 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 0027 ## 0028 ## ----------------------------------------------------------------------------- 0029 ## A commercial use license is available from Mavimax, Ltd 0030 ## contact@mavimax.com 0031 ## ----------------------------------------------------------------------------- 0032 ## 0033 export NDRX_QPREFIX=/mccp 0034 0035 # Load UBF, we assume that we are inside of test dir! 0036 . ../../sampleconfig/setndrx 0037 . ../../ubftest/setenv 0038 unset NDRX_DEBUG_CONF 0039 export FLDTBLDIR=../../ubftest/ubftab 0040 export PATH=$PATH:../../xadmin 0041 0042 export PSCMD="ps -efww" 0043 if [ "$(uname)" == "FreeBSD" ]; then 0044 export PSCMD="ps -auwwx" 0045 elif [ "$(uname)" == "SunOS" ]; then 0046 export PSCMD="ps -ef" 0047 elif [ "$(uname)" == "AIX" ]; then 0048 export PSCMD="ps -ef" 0049 fi 0050 0051 # this is due to fact that for SystemV reasons we 0052 # open the shared memory segments by clients too. 0053 xadmin down -y >/dev/null 2>&1 0054 0055 # Clean up q Space (remove all queues matching the symbol) 0056 xadmin qrmall , > /dev/null 2>&1 0057 0058 # any left overs from previous tests... 0059 xadmin killall ndrxd > /dev/null 2>&1 0060 0061 if [[ `xadmin poller 2>/dev/null` == "SystemV" ]]; then 0062 xadmin udown -y > /dev/null 2>&1 0063 fi 0064 0065 # vim: set ts=4 sw=4 et smartindent:
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |