aboutsummaryrefslogtreecommitdiff
path: root/common/transaction/callback/testscript
blob: 7229ecdef934214b28a8b76f18b93bd6ec89064f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# file      : common/transaction/callback/testscript
# license   : GNU GPL v2; see accompanying LICENSE file

.include ../../../database-options.testscript

+cat <<EOI >=output
  test 1/001
    callback 1 commit
    callback 1 rollback
    callback 1 rollback
    unregister callback 1
    unregister callback 1
    callback 2 commit
  test 1/002
    unregister callback 2
    callback 1 commit
    callback 3 commit
    unregister callback 2
    callback 1 commit
    callback 4 commit
    callback 3 commit
  test 1/003
    callback 1 commit
    callback 2 commit
  test 2/001
    callback 1 commit
    callback 1 rollback
    callback 1 rollback
    unregister callback 1
    unregister callback 1
    callback 2 commit
  test 2/002
    unregister callback 2
    callback 1 commit
    callback 3 commit
    unregister callback 2
    callback 1 commit
    callback 4 commit
    callback 3 commit
  test 2/003
    callback 1 commit
    callback 2 commit
  EOI

test.redirects += >>>../output

: mysql
:
if $mysql
{
  .include ../../../mysql.testscript

  $*
}

: sqlite
:
if $sqlite
{
  .include ../../../sqlite.testscript

  $*
}

: pgsql
:
if $pgsql
{
  .include ../../../pgsql.testscript

  $*
}