Project: lixa
Code Location: https://lixa.svn.sourceforge.net/svnroot/lixa/tests//tests
Browse
/
Download File
webspheremq.at
#
# WARNING
# This file must be manually kept synchronized with the content of 
# "oracle.at", "ibmdb2.at", etc...
#
AT_BANNER([WebSphere MQ])

# check the current user has PUT & GET privilege on table authors
AT_SETUP([PQ/0.0/0.0 PUT & GET on LIXA.QLOCAL])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_CHECK([echo "Case test message" | $WEBSPHEREMQ_PATH/samp/bin/$AMQSPUT LIXA.QLOCAL LIXA], [0], [ignore], [ignore])
AT_CHECK([$WEBSPHEREMQ_PATH/samp/bin/$AMQSGET LIXA.QLOCAL LIXA >$TESTS_TMP_FILE1 && grep "Case test message" $TESTS_TMP_FILE1], [0], [ignore], [ignore])
AT_CLEANUP

# try one phase commit (dynamic registration)
AT_SETUP([MQ/0.1/1.0 One phase commit (dynamic reg.)])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF1_DYN ; lixa_test_exec.sh reset start case0044 1 1 0], [0], [ignore], [ignore])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF1_DYN ; lixa_test_exec.sh noreset none case0044 1 0 0 >$TESTS_TMP_FILE1], [0], [ignore], [ignore])
AT_CHECK([grep 'Test message for LIXA' $TESTS_TMP_FILE1], [0], [ignore], [ignore])
AT_CLEANUP

# try one phase commit (static registration)
AT_SETUP([MQ/0.1/1.1 One phase commit (static reg.)])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF1_STA ; lixa_test_exec.sh noreset none case0044 1 1 0], [0], [ignore], [ignore])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF1_STA ; lixa_test_exec.sh noreset none case0044 1 0 0 >$TESTS_TMP_FILE1], [0], [ignore], [ignore])
AT_CHECK([grep 'Test message for LIXA' $TESTS_TMP_FILE1], [0], [ignore], [ignore])
AT_CLEANUP

# try two phase commit (dynamic registration)
AT_SETUP([MQ/0.1/2.0 Two phase commit (dynamic reg.)])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
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_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; lixa_test_exec.sh noreset none case0044 1 1 0], [0], [ignore], [ignore])
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_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; lixa_test_exec.sh noreset none case0044 1 0 0 >$TESTS_TMP_FILE1], [0], [ignore], [ignore])
AT_CHECK([grep 'Test message for LIXA' $TESTS_TMP_FILE1], [0], [ignore], [ignore])
AT_CLEANUP

# try two phase commit (static registration)
AT_SETUP([MQ/0.1/2.1 Two phase commit (static reg.)])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
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_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; lixa_test_exec.sh noreset none case0044 1 1 0], [0], [ignore], [ignore])
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_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; lixa_test_exec.sh noreset none case0044 1 0 0 >$TESTS_TMP_FILE1], [0], [ignore], [ignore])
AT_CHECK([grep 'Test message for LIXA' $TESTS_TMP_FILE1], [0], [ignore], [ignore])
AT_CLEANUP

# try rollback after prepare (dynamic registration)
AT_SETUP([MQ/0.1/3.0 Rollback after prepare (dyn. reg.)])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
xa_prepare/-3
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; lixa_test_exec.sh noreset none case0044 1 1 -2], [0], [ignore], [ignore])
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_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; lixa_test_exec.sh noreset none case0044 1 0 0 >$TESTS_TMP_FILE1], [0], [ignore], [ignore])
AT_CHECK([grep 'Test message for LIXA' $TESTS_TMP_FILE1], [1], [ignore], [ignore])
AT_CLEANUP

# try rollback after prepare (static registration)
AT_SETUP([MQ/0.1/3.1 Rollback after prepare (sta. reg.)])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
xa_prepare/-3
xa_rollback/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; lixa_test_exec.sh noreset none case0044 1 1 -2], [0], [ignore], [ignore])
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_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; lixa_test_exec.sh noreset none case0044 1 0 0 >$TESTS_TMP_FILE1], [0], [ignore], [ignore])
AT_CHECK([grep 'Test message for LIXA' $TESTS_TMP_FILE1], [1], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/0.0 Crash after connect (dyn. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; export LIXA_CRASH_POINT=2 ; lixa_test_exec.sh noreset none case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/0.1 Crash after connect (sta. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; export LIXA_CRASH_POINT=2 ; lixa_test_exec.sh noreset none case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/1.0 Crash in the middle of xa_open (dyn)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; export LIXA_CRASH_POINT=3 ; lixa_test_exec.sh noreset none case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/1.1 Crash in the middle of xa_open (sta)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; export LIXA_CRASH_POINT=3 ; lixa_test_exec.sh noreset none case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/1.2 Crash in the middle of xa_open (2,dyn)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; export LIXA_CRASH_POINT=4 ; lixa_test_exec.sh noreset none case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/1.3 Crash in the middle of xa_open (2,sta)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; export LIXA_CRASH_POINT=4 ; lixa_test_exec.sh noreset none case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/1.4 Crash after xa_open (dyn. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; export LIXA_CRASH_POINT=5 ; lixa_test_exec.sh noreset none case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/1.5 Crash after xa_open (sta. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; export LIXA_CRASH_POINT=5 ; lixa_test_exec.sh noreset none case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/2.0 Crash in the middle of xa_end (dyn. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; export LIXA_CRASH_POINT=11 ; lixa_test_exec.sh noreset none case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/2.1 Automatic recovery (dyn. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_rollback/0
xa_start/0
xa_end/0
xa_prepare/0
xa_commit/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; lixa_test_exec.sh noreset none case0044 1 1 0], [0], [ignore], [ignore])
AT_CHECK([lixad --config-file=$TESTS_ETC_DIR/lixad_conf.xml --dump=u|tee $TESTS_TMP_FILE1 ; grep 'recovery failed: 1' $TESTS_TMP_FILE1], [1], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/2.2 Crash in the middle of xa_end (sta. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; export LIXA_CRASH_POINT=11 ; lixa_test_exec.sh noreset none case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/2.3 Automatic recovery (sta. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_rollback/0
xa_start/0
xa_end/0
xa_prepare/0
xa_commit/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; lixa_test_exec.sh noreset none case0044 1 1 0], [0], [ignore], [ignore])
AT_CHECK([lixad --config-file=$TESTS_ETC_DIR/lixad_conf.xml --dump=u|tee $TESTS_TMP_FILE1 ; grep 'recovery failed: 1' $TESTS_TMP_FILE1], [1], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/2.4 Crash after end (dyn. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; export LIXA_CRASH_POINT=12 ; lixa_test_exec.sh noreset none case0044 1 0 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/2.5 Automatic recovery (dyn. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_rollback/0
xa_start/0
xa_end/0
xa_prepare/0
xa_commit/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; lixa_test_exec.sh noreset none case0044 1 0 0], [0], [ignore], [ignore])
AT_CHECK([lixad --config-file=$TESTS_ETC_DIR/lixad_conf.xml --dump=u|tee $TESTS_TMP_FILE1 ; grep 'recovery failed: 1' $TESTS_TMP_FILE1], [1], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/2.6 Crash after end (sta. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; export LIXA_CRASH_POINT=12 ; lixa_test_exec.sh noreset none case0044 1 0 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/2.7 Automatic recovery (sta. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_rollback/0
xa_start/0
xa_end/0
xa_prepare/0
xa_commit/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; lixa_test_exec.sh noreset none case0044 1 0 0], [0], [ignore], [ignore])
AT_CHECK([lixad --config-file=$TESTS_ETC_DIR/lixad_conf.xml --dump=u|tee $TESTS_TMP_FILE1 ; grep 'recovery failed: 1' $TESTS_TMP_FILE1], [1], [ignore], [ignore])
AT_CLEANUP

# crash in the middle of prepare (dynamic registration)
AT_SETUP([MQ/0.2/3.0 Crash in the middle of prepare (dyn)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
xa_prepare/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; export LIXA_CRASH_POINT=14 ; lixa_test_exec.sh noreset none case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/3.1 Automatic recovery (dyn)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_commit/0
xa_start/0
xa_end/0
xa_prepare/0
xa_commit/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; lixa_test_exec.sh noreset none case0044 1 0 0], [0], [ignore], [ignore])
AT_CLEANUP

# crash in the middle of prepare (static registration)
AT_SETUP([MQ/0.2/3.2 Crash in the middle of prepare (sta)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
xa_prepare/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; export LIXA_CRASH_POINT=14 ; lixa_test_exec.sh noreset none case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/3.3 Automatic recovery (sta)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_commit/0
xa_start/0
xa_end/0
xa_prepare/0
xa_commit/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; lixa_test_exec.sh noreset none case0044 1 0 0], [0], [ignore], [ignore])
AT_CLEANUP

# crash after prepare (dynamic registration)
AT_SETUP([MQ/0.2/4.0 Crash after prepare (dyn. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
xa_prepare/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; export LIXA_CRASH_POINT=15 ; lixa_test_exec.sh noreset none case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/4.1 Automatic recovery (dyn. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_commit/0
xa_start/0
xa_end/0
xa_prepare/0
xa_commit/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; lixa_test_exec.sh noreset none case0044 1 0 0], [0], [ignore], [ignore])
AT_CLEANUP

# crash after prepare (static registration)
AT_SETUP([MQ/0.2/4.2 Crash after prepare (sta. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
xa_prepare/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; export LIXA_CRASH_POINT=15 ; lixa_test_exec.sh noreset none case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/4.3 Automatic recovery (sta. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_commit/0
xa_start/0
xa_end/0
xa_prepare/0
xa_commit/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; lixa_test_exec.sh noreset none case0044 1 0 0], [0], [ignore], [ignore])
AT_CLEANUP

# crash after prepare (dynamic registration)
AT_SETUP([MQ/0.2/5.0 Crash after prepare (dyn. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
xa_prepare/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; export LIXA_CRASH_POINT=15 ; lixa_test_exec.sh noreset stop case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/5.1 Manual recovery (dyn. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_recover/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; lixa_test_exec.sh reset start lixar -p >$TESTS_TMP_FILE1], [0], [ignore], [ignore])
AT_CHECK([grep '^xid=' $TESTS_TMP_FILE1 | cut -d "'" -f 2 > $TESTS_TMP_FILE2], [0], [ignore], [ignore])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_DYN ; lixa_test_exec.sh noreset none lixar -p -r -X $TESTS_TMP_FILE2], [0], [ignore], [ignore])
AT_CLEANUP

# crash after prepare (static registration)
AT_SETUP([MQ/0.2/5.2 Crash after prepare (sta. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_start/0
xa_end/0
xa_prepare/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; export LIXA_CRASH_POINT=15 ; lixa_test_exec.sh noreset stop case0044 1 1 0], [134], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([MQ/0.2/5.3 Manual recovery (sta. reg.)])
AT_CHECK([if test "$LIXA_CRASH" = "no"; then exit 77; fi])
AT_CHECK([if test "$HAVE_WEBSPHEREMQ" = "no"; then exit 77; fi])
AT_DATA([monkey1s.conf],
[[# monkey R.M. config
xa_open/0
xa_recover/0
xa_close/0
]])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; lixa_test_exec.sh reset start lixar -p >$TESTS_TMP_FILE1], [0], [ignore], [ignore])
AT_CHECK([grep '^xid=' $TESTS_TMP_FILE1 | cut -d "'" -f 2 > $TESTS_TMP_FILE2], [0], [ignore], [ignore])
AT_CHECK([export LIXA_PROFILE=$LIXA_PROF2_STA ; lixa_test_exec.sh noreset stop lixar -p -r -X $TESTS_TMP_FILE2], [0], [ignore], [ignore])
AT_CLEANUP