Project: lixa
Code Location: https://lixa.svn.sourceforge.net/svnroot/lixa/tests//tests
Browse
/
Download File
bug_2944441.at
AT_BANNER([LIXA chained transactions (bug 2944441)])

AT_SETUP([Chained transactions commit (2 RMs)])
AT_DATA([monkey1s.conf],
[[# first monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
xa_prepare/0
xa_commit/0
xa_start/-3
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# second 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 reset start case0003 commit -100], [0], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([Chained transactions rollback (2 RMs)])
AT_DATA([monkey1s.conf],
[[# first monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
xa_rollback/0
xa_start/-3
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# second monkey R.M. config
xa_open/0
xa_end/0
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0003 rollback -100], [0], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([Chained transactions commit (2 RMs)])
AT_DATA([monkey1s.conf],
[[# first monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
xa_prepare/0
xa_commit/0
xa_start/-3
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# second monkey R.M. config
xa_open/0
xa_end/0
xa_prepare/0
xa_commit/5
xa_forget/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset none case0003 commit -103], [0], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([Chained transactions rollback (2 RMs)])
AT_DATA([monkey1s.conf],
[[# first monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
xa_prepare/0
xa_rollback/7
xa_forget/0
xa_start/-3
xa_close/0
]])
AT_DATA([monkey1d.conf],
[[# second monkey R.M. config
xa_open/0
xa_end/0
xa_prepare/102
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=CASE_PROF_0003 ; lixa_test_exec.sh noreset stop case0003 commit -103], [0], [ignore], [ignore])
AT_CLEANUP