![]() |
|
|||
0001 #!/bin/bash 0002 ## 0003 ## @brief @(#) Test008, extension test (polling + timer) 0004 ## WARNING: THIS TEST REQUIRES THAT LOCALHOST:22 IS OPEN FOR SSH! 0005 ## Otherwise it might fail!?!? 0006 ## 0007 ## @file run.sh 0008 ## 0009 ## ----------------------------------------------------------------------------- 0010 ## Enduro/X Middleware Platform for Distributed Transaction Processing 0011 ## Copyright (C) 2009-2016, ATR Baltic, Ltd. All Rights Reserved. 0012 ## Copyright (C) 2017-2023, Mavimax, Ltd. All Rights Reserved. 0013 ## This software is released under one of the following licenses: 0014 ## AGPL (with Java and Go exceptions) or Mavimax's license for commercial use. 0015 ## See LICENSE file for full text. 0016 ## ----------------------------------------------------------------------------- 0017 ## AGPL license: 0018 ## 0019 ## This program is free software; you can redistribute it and/or modify it under 0020 ## the terms of the GNU Affero General Public License, version 3 as published 0021 ## by the Free Software Foundation; 0022 ## 0023 ## This program is distributed in the hope that it will be useful, but WITHOUT ANY 0024 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 0025 ## PARTICULAR PURPOSE. See the GNU Affero General Public License, version 3 0026 ## for more details. 0027 ## 0028 ## You should have received a copy of the GNU Affero General Public License along 0029 ## with this program; if not, write to the Free Software Foundation, Inc., 0030 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 0031 ## 0032 ## ----------------------------------------------------------------------------- 0033 ## A commercial use license is available from Mavimax, Ltd 0034 ## contact@mavimax.com 0035 ## ----------------------------------------------------------------------------- 0036 ## 0037 0038 export TESTNAME="test008_extensions" 0039 0040 PWD=`pwd` 0041 if [ `echo $PWD | grep $TESTNAME ` ]; then 0042 # Do nothing 0043 echo > /dev/null 0044 else 0045 # started from parent folder 0046 pushd . 0047 echo "Doing cd" 0048 cd $TESTNAME 0049 fi; 0050 0051 . ../testenv.sh 0052 0053 export TESTDIR="$NDRX_APPHOME/atmitest/$TESTNAME" 0054 export PATH=$PATH:$TESTDIR 0055 # Configure the runtime - override stuff here! 0056 export NDRX_CONFIG=$TESTDIR/ndrxconfig.xml 0057 export NDRX_DMNLOG=$TESTDIR/ndrxd.log 0058 export NDRX_LOG=$TESTDIR/ndrx.log 0059 export NDRX_DEBUG_CONF=$TESTDIR/debug.conf 0060 0061 0062 # 0063 # Generic exit function 0064 # 0065 function go_out { 0066 echo "Test exiting with: $1" 0067 xadmin stop -y 0068 xadmin down -y 0069 popd 2>/dev/null 0070 exit $1 0071 } 0072 0073 rm *.log 0074 0075 xadmin down -y 0076 xadmin start -y || go_out 1 0077 0078 # Have some wait for ndrxd goes in service 0079 sleep 7 0080 0081 # Should check logfiles, for following entries: 0082 # POLL1EXT_OK 0083 # PERIODCB_OK 0084 0085 if [ "X`grep PERIODCB_OK *.log`" == "X" ]; then 0086 echo "Test error detected - no entry of PERIODCB_OK!" 0087 go_out 2 0088 fi 0089 0090 if [ "X`grep POLL1EXT_OK *.log`" == "X" ]; then 0091 echo "Test error detected - no entry of POLL1EXT_OK!" 0092 go_out 3 0093 fi 0094 0095 # Catch is there is test error!!! 0096 if [ "X`grep TESTERROR *.log`" != "X" ]; then 0097 echo "Test error detected!" 0098 go_out 4 0099 fi 0100 0101 0102 if [ "X`grep B4POLL_CALLED *.log`" == "X" ]; then 0103 echo "Test error detected - no entry of B4POLL_CALLED!" 0104 go_out 3 0105 fi 0106 0107 #killall atmiclt 0108 0109 #xadmin stop -c -y || exit 2 0110 0111 go_out 0 0112 0113 # 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 |
![]() ![]() |