aboutsummaryrefslogtreecommitdiff
path: root/common/threads/testscript
blob: 87e03e064d2367466f6e3f826a7f90293c632dc4 (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
# file      : common/threads/testscript
# license   : GNU GPL v2; see accompanying LICENSE file

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

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

  $create_schema;
  $*
}

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

  # Note: this is quite slow:
  #
  # $ time ./driver --database ~/odb-test.db
  # real 3m5.593s
  # user 1m1.244s
  # sys	 0m26.793s
  #
  # $ time ./driver --database /tmp/odb-test.db
  # real 0m13.909s
  # user 0m16.724s
  # sys  0m4.874s
  #
  # $ time ./driver --database "file::memory:"
  # real	0m12.406s
  # user	0m15.694s
  # sys	0m4.207s
  #
  $*
}

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

  $create_schema;
  $*
}