aboutsummaryrefslogtreecommitdiff
path: root/common/view/olv/testscript
blob: 160426d049a22d1c3bf594752b003285467c398f (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
# file      : common/view/olv/testscript
# license   : GNU GPL v2; see accompanying LICENSE file

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

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

  for s: $schemas
    cat $out_base/"$s"($multi ? '-mysql' : '').sql | $create_schema_cmd
  end;

  $* ($multi ? 'mysql' : ) $mysql_options
}

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

  $*
}

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

  for s: $schemas
    $create_schema_cmd -f $out_base/"$s"($multi ? '-pgsql' : '').sql
  end;

  $* ($multi ? 'pgsql' : ) $pgsql_options
}