Project: lixa
Code Location: https://lixa.svn.sourceforge.net/svnroot/lixa/tests//tests
Browse
/
Download File
tx_b_5_1.at
AT_BANNER([TX: B.5 ... Multiple RMs (xa_close)])

# Failure schema with 4 resource managers (2 static + 2 dynamic)
#
# S1
# D1
# S1 S2
# D1 D2
# S2 D2

AT_SETUP([TX/B.5/1.0])
# The TM closes the RM when the AP calls tx_close( ).
# xa_close( )     tx_close( )
# [XAER_RMERR] -> [TX_ERROR]
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-3
]])
AT_DATA([monkey2s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0002 ; lixa_test_exec.sh reset start case0022 0 -6], [0], [ignore], [ignore])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-3
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0002 ; lixa_test_exec.sh noreset none case0022 0 -6], [0], [ignore], [ignore])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-3
]])
AT_DATA([monkey2s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-3
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0002 ; lixa_test_exec.sh noreset none case0022 0 -6], [0], [ignore], [ignore])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-3
]])
AT_DATA([monkey2d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-3
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0002 ; lixa_test_exec.sh noreset none case0022 0 -6], [0], [ignore], [ignore])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-3
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-3
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0002 ; lixa_test_exec.sh noreset none case0022 0 -6], [0], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([TX/B.5/1.1])
# The TM closes the RM when the AP calls tx_close( ).
# xa_close( )     tx_close( )
# [XAER_INVAL] -> [TX_FAIL]
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-5
]])
AT_DATA([monkey2s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0002 ; lixa_test_exec.sh noreset none case0022 0 -7], [0], [ignore], [ignore])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-5
]])
AT_DATA([monkey2d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0002 ; lixa_test_exec.sh noreset none case0022 0 -7], [0], [ignore], [ignore])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-5
]])
AT_DATA([monkey2s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-5
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0002 ; lixa_test_exec.sh noreset none case0022 0 -7], [0], [ignore], [ignore])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-5
]])
AT_DATA([monkey2d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-5
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0002 ; lixa_test_exec.sh noreset none case0022 0 -7], [0], [ignore], [ignore])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-5
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-5
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0002 ; lixa_test_exec.sh noreset none case0022 0 -7], [0], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([TX/B.5/1.2])
# The TM closes the RM when the AP calls tx_close( ).
# xa_close( )     tx_close( )
# [XAER_PROTO] -> [TX_FAIL]
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-6
]])
AT_DATA([monkey2s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0002 ; lixa_test_exec.sh noreset none case0022 0 -7], [0], [ignore], [ignore])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-6
]])
AT_DATA([monkey2d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0002 ; lixa_test_exec.sh noreset none case0022 0 -7], [0], [ignore], [ignore])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-6
]])
AT_DATA([monkey2s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-6
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0002 ; lixa_test_exec.sh noreset none case0022 0 -7], [0], [ignore], [ignore])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-6
]])
AT_DATA([monkey2d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-6
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0002 ; lixa_test_exec.sh noreset none case0022 0 -7], [0], [ignore], [ignore])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2s.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-6
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/0
]])
AT_DATA([monkey2d.conf],
[[# monkey R.M. config
xa_open/0
xa_close/-6
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0002 ; lixa_test_exec.sh noreset stop case0022 0 -7], [0], [ignore], [ignore])
AT_CLEANUP