aboutsummaryrefslogtreecommitdiff
path: root/common/callback/testscript
blob: c7d03ee4f537a15369210312d75e22af96fd16d4 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# file      : common/callback/testscript
# license   : GNU GPL v2; see accompanying LICENSE file

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

+cat <<EOI >=output
  persist
    pre_persist 1 const
    post_persist 1 const
    pre_persist 2 const
    post_persist 2 const
  ***
  load
    pre_load 0
    post_load 1
    pre_load 0
    post_load 2
  ***
  query
    pre_load 0
    post_load 1
    pre_load 0
    post_load 2
  ***
  update
    pre_load 0
    post_load 1
    pre_load 0
    post_load 2
    pre_update 1 const
    post_update 1 const
    pre_update 2 const
    post_update 2 const
  ***
  erase
    pre_load 0
    post_load 1
    pre_load 0
    post_load 2
    pre_erase 1 const
    post_erase 1 const
    pre_erase 2 const
    post_erase 2 const
  ***
  delayed load
    pre_persist 1 const
    post_persist 1 const
    pre_persist 2 const
    post_persist 2 const
    pre_persist 3 const
    post_persist 3 const
    pre_persist 4 const
    post_persist 4 const
    pre_load 0
    pre_load 0
    pre_load 0
    post_load 3
    post_load 2
    pre_load 0
    post_load 4
      2 4 4
    post_load 1
    pre_load 0
    post_load 4
      1 4 4
  1 4 4
  2 4 4
  ***
  EOI

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

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

  $create_schema;
  $*
}

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

  $*
}

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

  $create_schema;
  $*
}