Project: lixa
Code Location: https://lixa.svn.sourceforge.net/svnroot/lixa/tests//tests
Browse
/
Download File
xa_5_37.at
AT_BANNER([XA: 5.37 xa_end])

# Checks return code result
AT_SETUP([XA/5.37/0.0 (return values, one phase commit)])
# XA_NOMIGRATE
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/9
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh reset start case0029 1 -7], [0], [ignore], [ignore])
# XA_OK
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/0
xa_commit/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset none case0029 1 0], [0], [ignore], [ignore])
# XA_RBROLLBACK
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/100
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset none case0029 1 -2], [0], [ignore], [ignore])
# XA_RBCOMMFAIL
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/101
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset none case0029 1 -2], [0], [ignore], [ignore])
# XA_RBDEADLOCK
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/102
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset none case0029 1 -2], [0], [ignore], [ignore])
# XA_RBINTEGRITY
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/103
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset none case0029 1 -2], [0], [ignore], [ignore])
# XA_RBOTHER
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/104
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset none case0029 1 -2], [0], [ignore], [ignore])
# XA_RBPROTO
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/105
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset none case0029 1 -2], [0], [ignore], [ignore])
# XA_RBTIMEOUT
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/106
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset none case0029 1 -2], [0], [ignore], [ignore])
# XA_RBTRANSIENT
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/107
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset none case0029 1 -2], [0], [ignore], [ignore])
# XAER_ASYNC
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/-2
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset none case0029 1 -7], [0], [ignore], [ignore])
# XAER_RMERR
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/-3
# I did not found in the specs some statement related to xa_rollback after an
# xa_end with XAER_RMERR return code; this might be a wrong behavior in the
# transaction manager logic
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset none case0029 1 -2], [0], [ignore], [ignore])
# XAER_RMFAIL
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/-7
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset none case0029 1 -7], [0], [ignore], [ignore])
# XAER_NOTA
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/-4
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset none case0029 1 -2], [0], [ignore], [ignore])
# XAER_INVAL
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/-5
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset none case0029 1 -7], [0], [ignore], [ignore])
# XAER_PROTO
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/-6
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset none case0029 1 -7], [0], [ignore], [ignore])
# Invalid XA return code
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/-20
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0007 ; lixa_test_exec.sh noreset stop case0029 1 -7], [0], [ignore], [ignore])
AT_CLEANUP

# Checks return code result
AT_SETUP([XA/5.37/1.0 (return values, two phase commit)])
# XA_NOMIGRATE
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/9
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/9
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh reset start case0021 1 0 -7], [0], [ignore], [ignore])
# XA_OK
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/0
xa_prepare/0
xa_commit/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/0
xa_prepare/0
xa_commit/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0021 1 0 0], [0], [ignore], [ignore])
# XA_RBROLLBACK
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/100
xa_rollback/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/100
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0021 1 0 -2], [0], [ignore], [ignore])
# XA_RBCOMMFAIL
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/101
xa_rollback/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/101
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0021 1 0 -2], [0], [ignore], [ignore])
# XA_RBDEADLOCK
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/102
xa_rollback/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/102
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0021 1 0 -2], [0], [ignore], [ignore])
# XA_RBINTEGRITY
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/103
xa_rollback/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/103
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0021 1 0 -2], [0], [ignore], [ignore])
# XA_RBOTHER
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/104
xa_rollback/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/104
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0021 1 0 -2], [0], [ignore], [ignore])
# XA_RBPROTO
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/105
xa_rollback/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/105
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0021 1 0 -2], [0], [ignore], [ignore])
# XA_RBTIMEOUT
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/106
xa_rollback/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/106
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0021 1 0 -2], [0], [ignore], [ignore])
# XA_RBTRANSIENT
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/107
xa_rollback/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/107
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0021 1 0 -2], [0], [ignore], [ignore])
# XAER_ASYNC
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/-2
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/-2
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0021 1 0 -7], [0], [ignore], [ignore])
# XAER_RMERR
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/-3
# I did not found in the specs some statement related to xa_rollback after an
# xa_end with XAER_RMERR return code; this might be a wrong behavior in the
# transaction manager logic
xa_rollback/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/-3
# I did not found in the specs some statement related to xa_rollback after an
# xa_end with XAER_RMERR return code; this might be a wrong behavior in the
# transaction manager logic
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0021 1 0 -2], [0], [ignore], [ignore])
# XAER_RMFAIL
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/-7
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/-7
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0021 1 0 -7], [0], [ignore], [ignore])
# XAER_NOTA
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/-4
xa_rollback/0
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/-4
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0021 1 0 -2], [0], [ignore], [ignore])
# XAER_INVAL
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/-5
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/-5
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0021 1 0 -7], [0], [ignore], [ignore])
# XAER_PROTO
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/-6
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/-6
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0021 1 0 -7], [0], [ignore], [ignore])
# Invalid XA return code
AT_DATA([monkey1s.conf],
[[# monkey R.M.config
xa_open/0
xa_start/0
xa_end/-20
]])
AT_DATA([monkey1d.conf],
[[# monkey R.M.config
xa_open/0
xa_end/-20
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset stop case0021 1 0 -7], [0], [ignore], [ignore])
AT_CLEANUP