7 test "$DVERBOSE" == 1 && {
16 tmadmin << END_OF_TMADMIN
17 crdl -z $TLOGDEVICE -b 500
24 # Everything else is done in run/bin.
27 # The CFLAGS variable defines the pre-processor defines -- start with
28 # whatever the user set, and add our own stuff.
30 # For debugging output, add -DDVERBOSE
32 test "$DVERBOSE" == 1 && {
33 COMPILE_FLAGS="-DDVERBOSE"
36 COMPILE_FLAGS="$CFLAGS $COMPILE_FLAGS -g -I../../.."
37 UTILITY_FILES="-f ../../src1/htimestampxa.c -f ../../utilities/bdb_xa_util.c"
40 CFLAGS="$COMPILE_FLAGS"; export CFLAGS
41 buildclient -r BERKELEY-DB $DVERBOSE_FLAG -o client \
42 $UTILITY_FILES -f ../../src1/client.c
44 echo "FAIL: buildclient failed."
48 msg "BUILDING SERVER #1"
49 CFLAGS="$COMPILE_FLAGS -DSERVER1"; export CFLAGS
50 buildserver -r BERKELEY-DB $DVERBOSE_FLAG -o server1 \
51 -s TestTxn1:TestTxn1 \
52 $UTILITY_FILES -f ../../src1/server.c
54 echo "FAIL: buildserver failed."
58 msg "BUILDING SERVER #2"
59 CFLAGS="$COMPILE_FLAGS -DSERVER2"; export CFLAGS
60 buildserver $DVERBOSE_FLAG -r BERKELEY-DB -o server2 \
61 -s TestTxn2:TestTxn2 \
62 $UTILITY_FILES -f ../../src1/server.c
64 echo "FAIL: buildserver failed."
68 msg "BUILDING THE RESOURCE MANAGER."
69 buildtms -o DBRM -r BERKELEY-DB
74 # You should see something like:
76 # Booting admin processes ...
79 # process id=13845 ... Started.
81 # Booting server processes ...
84 # process id=13846 ... Started.
86 # process id=13847 ... Started.
88 # process id=13848 ... Started.
90 # process id=13849 ... Started.
91 # 5 processes started.
95 # Run the client with 10, 100 and 1000 transactions.
97 for i in 10 100 1000; do
98 msg "RUN THE CLIENT WITH $i TRANSACTIONS."
99 ./client $DVERBOSE_FLAG -n $i
101 echo "FAIL: client failed"
107 msg "SHUTTING DOWN THE TRANSACTION MANAGER."
108 echo 'y' | tmshutdown
110 # Copy out any server output.
114 # Copy out any server errors.echo "STDERR:"
119 echo "FAIL: stderr file not empty"
123 # We never checkpointed, run recovery to make sure it all works.
125 db_recover -h ../data -v
127 echo "FAIL: recovery failed"